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\"]" }}'
Copy
Ask AI
{ "pass": true, "reason": "User intent remained consistent throughout the conversation", "score": 1}
Evaluators
Execute intent-change evaluator
Detect changes in user intent between prompts and completions
Request Body:
input.prompts (string, required): JSON array of prompts in the conversation
input.completions (string, required): JSON array of completions in the conversation
POST
/
v2
/
evaluators
/
execute
/
intent-change
Execute intent-change evaluator
Copy
Ask AI
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\"]" }}'
Copy
Ask AI
{ "pass": true, "reason": "User intent remained consistent throughout the conversation", "score": 1}