create_dataset_run_item
create_dataset_run_itemCreates a dataset run item for evaluating LLM applications, linking dataset items with traces and observations in Langfuse for performance tracking.
Instructions
Creates a dataset run item and creates or updates the dataset run if needed. runName and datasetItemId are required. traceId is strongly recommended and observationId is optional. metadataJson must be valid JSON when provided.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"runName": "<runName>",
"datasetItemId": "<datasetItemId>",
"traceId": "<traceId>",
"observationId": "<observationId>",
"runDescription": "<runDescription>",
"metadataJson": "<metadataJson>",
"datasetVersion": "<datasetVersion>",
"createdAt": "<createdAt>"
},
"name": "create_dataset_run_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runName | Yes | Run name. Required. | |
| datasetItemId | Yes | Dataset item ID to evaluate in this run. Required. | |
| traceId | Yes | Optional trace ID associated with the run item. | |
| observationId | Yes | Optional observation ID associated with the run item. | |
| runDescription | Yes | Optional run description. | |
| metadataJson | Yes | Optional run metadata as JSON. | |
| datasetVersion | Yes | Optional dataset version timestamp in ISO-8601 format. | |
| createdAt | Yes | Optional createdAt timestamp in ISO-8601 format. |