Recommend tests for a version
Asks for up to 3 suggested tests for one version of the agent, written from its configuration and up to 20 of its recent calls. Answers once the request is queued. The suggestions arrive as pending suggestions with origin: recommend; listAgentTestSuggestions returns the request's recommend status, which reads done or failed when it finishes. A request still queued after 3 minutes no longer blocks a new one.
Authorization
bearerAuth A Tandem bearer token. Requests are scoped to the organization the token belongs to; no organization header is required.
In: header
Path Parameters
The agent's unique ID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agent-media/agents/string/test-suggestions/recommend" \ -H "Content-Type: application/json" \ -d '{ "version": "string" }'{ "recommend": { "status": "queued", "version": "string", "requestedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z", "added": 0, "reason": "string" }}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}