Improve Evaluators with AI
Improve evaluators using AI by providing natural language feedback.
Authorizations
API Key Authentication. It should be included in the header of each request.
Body
Create or improve evaluator scenarios using AI by providing natural-language feedback. This endpoint does not improve the target AI agent itself.
Provide evaluator IDs and your improvement request, and the AI will suggest changes.
Evaluator-scenario request (e.g., 'Make these scenario instructions more detailed'). Do not use for agent prompt/config improvements.
Agent ID - optional, automatically inferred from evaluators if not provided
Project ID - optional, automatically inferred from evaluators if not provided
Session ID for tracking - automatically created if not provided
Conversation history for multi-turn improvements. Allows iterative refinement without sessions.
Example:
Number of scenarios to generate in clarify mode
x >= 1Knowledge Base file IDs for additional context in clarify mode
Evaluator IDs to improve. Pass as a list of integers [101, 102], a single integer 101, or the string "all" to improve all evaluators for the agent. Do not pass IDs as a JSON-stringified list — pass them as a native array.
Set to true to apply the AI-suggested changes to your evaluators
AI-suggested changes from previous response - use with apply_changes=true to apply them
Structured agent selections: maps scenario_id (as string key) to agent_id. Use this instead of agent_resolution_response.
Deprecated: use agent_selections instead
Evaluator IDs that required agent selection
Tool calls held from a previous agent-clarification response
Tools that will be enabled on the generated evaluators (validated up front)
Inbound numbers that will be attached to the generated evaluators (validated up front)