v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
Execute agent-efficiency evaluator
Evaluate agent efficiency - detect redundant calls, unnecessary follow-ups
Request Body:
- input.trajectory_prompts (string, required): JSON array of prompts in the agent trajectory
- input.trajectory_completions (string, required): JSON array of completions in the agent trajectory
post/v2/evaluators/agent-efficiency/execute
Request body
Example request
{
"input": {
"trajectory_completions": "[\"User found\", \"Email updated\", \"Changes saved\"]",
"trajectory_prompts": "[\"Find user info\", \"Update email\", \"Save changes\"]"
}
}Response
OK
Example response
{
"step_efficiency_reason": "Agent completed task with minimal redundant steps",
"step_efficiency_score": 0.85,
"task_completion_reason": "All required tasks were completed successfully",
"task_completion_score": 0.92
}