curl --request POST \
--url https://backend.nebuly.com/event-ingestion/api/v2/events/trace_interaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"interaction": {
"conversation_id": "<string>",
"input": "<string>",
"output": "<string>",
"time_start": "<string>",
"time_end": "<string>",
"end_user": "<string>",
"hide_content": true,
"tags": {
"country": "<string>",
"department": "<string>",
"age": "<string>"
}
},
"traces": [
{
"model": "<string>",
"messages": [
{}
],
"output": "<string>",
"source": "<string>",
"input": "<string>",
"outputs": [
"<string>"
],
"input_tokens": 123,
"output_tokens": 123
}
],
"feedback_actions": [
{
"slug": "<string>"
}
],
"anonymize": true
}
'curl --request POST \
--url https://backend.nebuly.com/event-ingestion/api/v2/events/trace_interaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"interaction": {
"conversation_id": "<string>",
"input": "<string>",
"output": "<string>",
"time_start": "<string>",
"time_end": "<string>",
"end_user": "<string>",
"hide_content": true,
"tags": {
"country": "<string>",
"department": "<string>",
"age": "<string>"
}
},
"traces": [
{
"model": "<string>",
"messages": [
{}
],
"output": "<string>",
"source": "<string>",
"input": "<string>",
"outputs": [
"<string>"
],
"input_tokens": 123,
"output_tokens": 123
}
],
"feedback_actions": [
{
"slug": "<string>"
}
],
"anonymize": true
}
'Hide properties
ISO 8601.Example: 2023-12-07T15:00:00.000ZISO 8601.Example: 2023-12-07T15:00:00.000Z{"version" => "v1.0.0"}. You have the flexibility to define custom tags, making them available as potential filters on the Nebuly platform.Hide properties
thumbs_upthumbs_downcopy_inputcopy_outputpastecommentregenerateeditratingrating action to capture a numerical score."feedback_actions": [
{
"slug": "thumbs_up",
"text": "Very helpful response!"
},
{
"slug": "comment",
"text": "Can you explain more about this?"
},
{
"slug": "rating",
"value": 4,
"text": "Pretty good!"
},
{
"slug": "regenerate"
}
]
Show properties
role: the role of who is sending the message. Possible values are: system, user, assistant, tool.content: the content of the message."messages": [
{
"role": "system",
"content": "This is a system prompt"
},
{
"role": "user",
"content": "What's the weather like in Turin?"
},
{
"role": "assistant",
"content": "The weather is currently rainy in Turin."
},
{
"role": "user",
"content": "What's the weather like in Rome?"
}
]