simulate_agent
Start async simulated conversations to test how your agent performs against auto-generated or specified personas and scenarios. Returns a jobId immediately - use get_simulation_status to poll for results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | No | Provider run ID for the runtime context snapshot. Required with conversationId when runtimeContextId is not provided. | |
| prompt | No | The agent's system prompt content to test. If omitted, content is fetched from promptId. | |
| maxTurns | No | Maximum turns per conversation (default: 10) | |
| promptId | No | Agent ID. Used to fetch prompt content (if prompt is omitted) and LLM settings (temperature, maxTokens, etc.) | |
| customerId | No | (Converra superadmin only) Target customer ID to act on behalf of | |
| personaCount | No | Total number of personas to use (default: 3) | |
| scenarioCount | No | Total number of scenarios to use (default: 3) | |
| conversationId | No | Conversation ID containing the runtime context snapshot. Required with runId when runtimeContextId is not provided. | |
| simulationType | No | Simulation type: standard, context_grounded_probe (one-turn context probe), or context_grounded_dialogue (multi-turn context-grounded dialogue). Context-grounded types require promptId plus runtimeContextId or conversationId with runId. | |
| includePersonas | No | Optional specific personas to include (system will generate the rest) | |
| includeScenarios | No | Optional specific scenarios to include (system will generate the rest) | |
| runtimeContextId | No | Runtime context snapshot ID to bind for context-grounded simulations. Use this OR conversationId with runId. | |
| conversationsPerPersona | No | Conversations per persona (default: 1) |