Skip to main content
POST
/
v2
/
evaluators
/
execute
/
agent-goal-completeness
Execute agent-goal-completeness evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/agent-goal-completeness \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "trajectory_completions": "[\"Account created\", \"Preferences saved\", \"Notifications enabled\"]",
    "trajectory_prompts": "[\"Create new account\", \"Set preferences\", \"Enable notifications\"]"
  },
  "config": {
    "threshold": 0.5
  }
}
'
{
  "reason": "All user goals were accomplished",
  "result": "complete",
  "score": 0.95
}

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:

"All user goals were accomplished"

result
string
Example:

"complete"

score
number
Example:

0.95