v1
latestOpenAPI 3.0.02026-07-1346146138.4 KBevaluators
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/intent-change/execute
Request body
Example request
{
"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\"]"
}
}Response
OK
Example response
{
"reason": "User intent remained consistent throughout the conversation",
"score": 1,
"success": true
}