Start the auto-improve process for an agent
POSThttps://platform.docana.com/api/v1/agents/:agentId/auto-improve/
Runs the selected evals (or all of the agent when testCaseIds is omitted), analyzes results and iteratively improves the agent flow until targetScore is reached or maxIterations runs are done. When a process is already running, answers 200 with its id instead of starting another one.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The started (or already running) process
Invalid body or unusable eval selection
The API key or session is missing, expired, or malformed.
No write access to the application
Agent not found
Unexpected server error.