Skip to main content
POST
/
v2
/
evaluators
/
execute
/
intent-change
Execute intent-change evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/intent-change \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "completions": "[\"Sure, I can help with hotel booking\", \"No problem, let me search for flights\"]",
    "prompts": "[\"I want to book a hotel\", \"Actually, I need a flight instead\"]"
  },
  "config": {
    "model": "gpt-4o"
  }
}
'
{
  "pass": true,
  "reason": "User intent remained consistent throughout the conversation",
  "score": 1
}

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

pass
boolean
Example:

true

reason
string
Example:

"User intent remained consistent throughout the conversation"

score
integer
Example:

1