curl -X POST "https://api.braintrust.dev/v1/insert" \
-d '{
"experiment": {
"property1": {
"events": [
{
"input": null,
"output": null,
"expected": null,
"error": null,
"scores": {
"property1": 1,
"property2": 1
},
"metadata": {
"property1": null,
"property2": null
},
"tags": [
"string"
],
"metrics": {
"start": 0,
"end": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tokens": 0,
"property1": null,
"property2": null
},
"context": {
"caller_functionname": "string",
"caller_filename": "string",
"caller_lineno": 0,
"property1": null,
"property2": null
},
"span_attributes": {
"name": "string",
"type": "llm",
"property1": null,
"property2": null
},
"id": "string",
"dataset_record_id": "string",
"created": "2019-08-24T14:15:22Z",
"_object_delete": true,
"_is_merge": false,
"_parent_id": "string"
}
],
"feedback": [
{
"id": "string",
"scores": {
"property1": 1,
"property2": 1
},
"expected": null,
"comment": "string",
"metadata": {
"property1": null,
"property2": null
},
"source": "app"
}
]
},
"property2": {
"events": [
{
"input": null,
"output": null,
"expected": null,
"error": null,
"scores": {
"property1": 1,
"property2": 1
},
"metadata": {
"property1": null,
"property2": null
},
"tags": [
"string"
],
"metrics": {
"start": 0,
"end": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tokens": 0,
"property1": null,
"property2": null
},
"context": {
"caller_functionname": "string",
"caller_filename": "string",
"caller_lineno": 0,
"property1": null,
"property2": null
},
"span_attributes": {
"name": "string",
"type": "llm",
"property1": null,
"property2": null
},
"id": "string",
"dataset_record_id": "string",
"created": "2019-08-24T14:15:22Z",
"_object_delete": true,
"_is_merge": false,
"_parent_id": "string"
}
],
"feedback": [
{
"id": "string",
"scores": {
"property1": 1,
"property2": 1
},
"expected": null,
"comment": "string",
"metadata": {
"property1": null,
"property2": null
},
"source": "app"
}
]
}
},
"dataset": {
"property1": {
"events": [
{
"input": null,
"expected": null,
"metadata": {
"property1": null,
"property2": null
},
"tags": [
"string"
],
"id": "string",
"created": "2019-08-24T14:15:22Z",
"_object_delete": true,
"_is_merge": false,
"_parent_id": "string"
}
],
"feedback": [
{
"id": "string",
"comment": "string",
"metadata": {
"property1": null,
"property2": null
},
"source": "app"
}
]
},
"property2": {
"events": [
{
"input": null,
"expected": null,
"metadata": {
"property1": null,
"property2": null
},
"tags": [
"string"
],
"id": "string",
"created": "2019-08-24T14:15:22Z",
"_object_delete": true,
"_is_merge": false,
"_parent_id": "string"
}
],
"feedback": [
{
"id": "string",
"comment": "string",
"metadata": {
"property1": null,
"property2": null
},
"source": "app"
}
]
}
},
"project_logs": {
"property1": {
"events": [
{
"input": null,
"output": null,
"expected": null,
"error": null,
"scores": {
"property1": 1,
"property2": 1
},
"metadata": {
"property1": null,
"property2": null
},
"tags": [
"string"
],
"metrics": {
"start": 0,
"end": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tokens": 0,
"property1": null,
"property2": null
},
"context": {
"caller_functionname": "string",
"caller_filename": "string",
"caller_lineno": 0,
"property1": null,
"property2": null
},
"span_attributes": {
"name": "string",
"type": "llm",
"property1": null,
"property2": null
},
"id": "string",
"created": "2019-08-24T14:15:22Z",
"_object_delete": true,
"_is_merge": false,
"_parent_id": "string"
}
],
"feedback": [
{
"id": "string",
"scores": {
"property1": 1,
"property2": 1
},
"expected": null,
"comment": "string",
"metadata": {
"property1": null,
"property2": null
},
"source": "app"
}
]
},
"property2": {
"events": [
{
"input": null,
"output": null,
"expected": null,
"error": null,
"scores": {
"property1": 1,
"property2": 1
},
"metadata": {
"property1": null,
"property2": null
},
"tags": [
"string"
],
"metrics": {
"start": 0,
"end": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tokens": 0,
"property1": null,
"property2": null
},
"context": {
"caller_functionname": "string",
"caller_filename": "string",
"caller_lineno": 0,
"property1": null,
"property2": null
},
"span_attributes": {
"name": "string",
"type": "llm",
"property1": null,
"property2": null
},
"id": "string",
"created": "2019-08-24T14:15:22Z",
"_object_delete": true,
"_is_merge": false,
"_parent_id": "string"
}
],
"feedback": [
{
"id": "string",
"scores": {
"property1": 1,
"property2": 1
},
"expected": null,
"comment": "string",
"metadata": {
"property1": null,
"property2": null
},
"source": "app"
}
]
}
}
}'