v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
Execute agent-goal-accuracy evaluator
Evaluate agent goal accuracy
Request Body:
- input.question (string, required): The original question or goal
- input.completion (string, required): The agent's completion/response
- input.reference (string, required): The expected reference answer
post/v2/evaluators/agent-goal-accuracy/execute
Request body
Example request
{
"input": {
"completion": "I have booked your flight from New York to Los Angeles departing Monday at 9am.",
"question": "Book a flight from NYC to LA for next Monday",
"reference": "Flight booked: NYC to LA, Monday departure"
}
}Response
OK
Example response
{
"accuracy_score": 0.88
}