v2

latestOpenAPI 3.1.02026-08-05100545344.4 KB

Generate test cases

Generate test cases for an agent. Supports both custom prompt and flow designer agents. You can optionally specify scenarios to ensure the generated tests cover specific situations. The response is streamed as NDJSON, providing progress and results incrementally.

post/simulation_cases/generate

Headers

Authorizationstring required

Bearer authentication

Request body

agent_idstring required

ID of the agent used to generate cases.

suite_idstring uuid

ID of the simulation suite to add generated cases to.

include_testsSimulationCaseGenerateInIncludeTestsItems[] required

Tests to include in the generated cases.

Response

200

string required