Skip to main content
POST
/
v2
/
evaluators
/
execute
/
agent-flow-quality
Execute agent-flow-quality evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/agent-flow-quality \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "trajectory_completions": "[\"Found 5 flights\", \"Selected $299 flight\", \"Booking confirmed\"]",
    "trajectory_prompts": "[\"Search for flights\", \"Select the cheapest option\", \"Confirm booking\"]"
  },
  "config": {
    "conditions": [
      "no tools called",
      "agent completed task"
    ],
    "threshold": 0.5
  }
}
'
{
  "reason": "Agent followed the expected flow correctly",
  "result": "pass",
  "score": 0.89
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required
config
object

Response

OK

reason
string
Example:

"Agent followed the expected flow correctly"

result
string
Example:

"pass"

score
number
Example:

0.89