Create Agent Response Test
Creates a new agent response test.
Headers
Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.
Body
- CreateResponseUnitTestRequest
- CreateToolCallUnitTestRequest
- CreateSimulationTestRequest
Create Chat Response Test Request Information
Metadata of a conversation this test was created from (if applicable).
Dynamic variables to replace in the agent config during testing
200Simulate the test as if the conversation originated from this channel.
unknown, android_sdk, node_js_sdk, react_native_sdk, react_sdk, js_sdk, python_sdk, widget, sip_trunk, twilio, exotel, genesys, avaya, audiocodes, swift_sdk, whatsapp, twilio_sms, flutter_sdk, zendesk_integration, slack_integration, telegram_integration, intercom_integration, freshdesk_integration, salesforce_integration, template_preview, genesys_bot_connector, subagent_tool The environment to resolve environment-specific variable values against when running this test (URL, headers, auth connections). If not provided, defaults to 'production'. For simulation tests, simulation_environment takes precedence when set.
"llm"List of prompts that evaluate whether the agent's response is successful. If provided, all criteria are evaluated and merged into a final result. Capped at the maximum number of evaluation criteria.
30Non-empty list of example responses that should be considered successful
5Non-empty list of example responses that should be considered failures
5The ID of the parent folder. If not provided, the test will be created at the root level.
Response
Successful Response