evaluators
Execute agent-efficiency evaluator
Changed onEvaluate 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
- Base URLhttps://api.traceloop.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking