Skip to navigation

Run conversation evaluation

Rerun a specific evaluation for a conversation.

Path parameters

conversation_idstringRequired
ID of the conversation

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
evaluation_idstringRequired
ID of the single evaluation criterion to rerun.
scopeenumOptionalDefaults to conversation
Allowed values:
evaluated_agent_idstring or nullOptional

ID of the agent whose evaluation result to rerun, for conversations that transferred between agents. If omitted, a conversation-scoped evaluation reruns for the agent that started the conversation.

evaluated_branch_idstring or nullOptional

Branch of evaluated_agent_id whose evaluation result to rerun, for conversations that visited the agent on more than one branch. If omitted, the result reruns for every branch of that agent.

Response

Successful Response
agent_idstring
statusenum
Allowed values:
metadataobject
conversation_idstring
has_audioboolean
has_user_audioboolean
has_response_audioboolean
has_auxiliary_audioboolean
transcriptlist of objects
agent_namestring or nullOptional
conversation_productstringOptionalDefaults to agent
user_idstring or nullOptional
branch_idstring or nullOptional
version_idstring or nullOptional
The ID of the agent version used for this conversation
analysisobject or nullOptional
user_message_countinteger or nullOptional

Number of user transcript turns with text; tool-only turns are not counted. null for older conversations before this field whose transcript was deleted.

agent_message_countinteger or nullOptional

Number of agent transcript turns with text; tool-only turns are not counted. null for older conversations before this field whose transcript was deleted.

visited_agentslist of objectsOptional
conversation_initiation_client_dataobjectOptional
environmentstringOptionalDefaults to production
tag_idslist of stringsOptional
Conversation tag ids assigned to this conversation.
otlp_tracesmap from strings to any or nullOptional

OpenTelemetry trace payload when the request uses format=opentelemetry; otherwise omitted.

Errors

422
Unprocessable Entity Error