create_dataset_item
Create or update a dataset item in Langfuse, storing input and expected output as JSON strings. Use to add test cases or modify existing dataset entries.
Instructions
Create or upsert a dataset item. input/expected_output: JSON strings.
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": {
"dataset_name": "<dataset_name>",
"input": "<input>"
},
"name": "create_dataset_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| item_id | No | ||
| project | No | ||
| metadata | No | ||
| dataset_name | Yes | ||
| expected_output | No | ||
| source_trace_id | No | ||
| source_observation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||