You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File format for exported data. `PARQUET` is a columnar binary format encoded and compressed by the storage engine; gzip compression does not apply to it. Note that the model-price columns (`input_price`, `output_price`, `total_price`) are not included in Parquet observation exports.
File type reported for an existing integration. Includes `PARQUET`, which a project may enable through the Langfuse UI but cannot yet be set via this API (the request `fileType` omits it).
"value": any, // Required (except for null type). Value to compare against. Type depends on filter type
197
-
"key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
198
+
"key": string // Required only for stringObject, numberObject, booleanObject, and categoryOptions types when filtering on nested fields like metadata or score names
198
199
}
199
200
]
200
201
```
@@ -237,6 +238,7 @@ def list(
237
238
### Scores (requires join with scores table)
238
239
- `scores_avg` (number) - Average of numeric scores (alias: `scores`)
- `score_booleans` (booleanObject) - Boolean score values. Use `key` for the score name and a boolean `value`, e.g. `{"type": "booleanObject", "column": "score_booleans", "key": "is_correct", "operator": "=", "value": true}`. The `<>` operator also matches traces without a score of that name.
"value": any, // Required (except for null type). Value to compare against. Type depends on filter type
563
-
"key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
566
+
"key": string // Required only for stringObject, numberObject, booleanObject, and categoryOptions types when filtering on nested fields like metadata or score names
564
567
}
565
568
]
566
569
```
@@ -603,6 +606,7 @@ async def list(
603
606
### Scores (requires join with scores table)
604
607
- `scores_avg` (number) - Average of numeric scores (alias: `scores`)
- `score_booleans` (booleanObject) - Boolean score values. Use `key` for the score name and a boolean `value`, e.g. `{"type": "booleanObject", "column": "score_booleans", "key": "is_correct", "operator": "=", "value": true}`. The `<>` operator also matches traces without a score of that name.
"value": any, // Required (except for null type). Value to compare against. Type depends on filter type
325
-
"key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
326
+
"key": string // Required only for stringObject, numberObject, booleanObject, and categoryOptions types when filtering on nested fields like metadata or score names
326
327
}
327
328
]
328
329
```
@@ -365,6 +366,7 @@ def list(
365
366
### Scores (requires join with scores table)
366
367
- `scores_avg` (number) - Average of numeric scores (alias: `scores`)
- `score_booleans` (booleanObject) - Boolean score values. Use `key` for the score name and a boolean `value`, e.g. `{"type": "booleanObject", "column": "score_booleans", "key": "is_correct", "operator": "=", "value": true}`. The `<>` operator also matches traces without a score of that name.
"value": any, // Required (except for null type). Value to compare against. Type depends on filter type
927
-
"key": string // Required only for stringObject, numberObject, and categoryOptions types when filtering on nested fields like metadata
930
+
"key": string // Required only for stringObject, numberObject, booleanObject, and categoryOptions types when filtering on nested fields like metadata or score names
928
931
}
929
932
]
930
933
```
@@ -967,6 +970,7 @@ async def list(
967
970
### Scores (requires join with scores table)
968
971
- `scores_avg` (number) - Average of numeric scores (alias: `scores`)
- `score_booleans` (booleanObject) - Boolean score values. Use `key` for the score name and a boolean `value`, e.g. `{"type": "booleanObject", "column": "score_booleans", "key": "is_correct", "operator": "=", "value": true}`. The `<>` operator also matches traces without a score of that name.
Copy file name to clipboardExpand all lines: langfuse/api/unstable/commons/types/evaluation_rule_mapping_source.py
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,22 @@ class EvaluationRuleMappingSource(enum.StrEnum):
14
14
Use these values when mapping evaluator prompt variables to live data.
15
15
16
16
Target-specific rules:
17
-
- `target=observation` supports `input`, `output`, and `metadata`
18
-
- `target=experiment` supports `input`, `output`, `metadata`, `expected_output`, and `experiment_item_metadata`
17
+
- `target=observation` supports `input`, `output`, `metadata`, and `tool_calls`
18
+
- `target=experiment` supports `input`, `output`, `metadata`, `tool_calls`, `expected_output`, and `experiment_item_metadata`
19
19
20
20
Source semantics:
21
21
- `input`: the observation or experiment input payload
22
22
- `output`: the observation or experiment output payload
23
23
- `metadata`: the metadata object for the target. Combine with `jsonPath` when you need one nested field instead of the whole object.
24
+
- `tool_calls`: the tool calls recorded on the observation, as an array of `{id, name, arguments, type, index}` objects in the order the model emitted them. Combine with `jsonPath` (for example `$[*].name`) to select parts of each call.
24
25
- `expected_output`: the experiment item's expected output. Only valid for `target=experiment`.
25
26
- `experiment_item_metadata`: the experiment item's metadata object. Only valid for `target=experiment`.
0 commit comments