Stream simulate conversation

Deprecated
Deprecated. This endpoint will be removed on 31 Oct 2026. Use the `/v1/convai/agent-testing/create` and `/v1/convai/agents/:agent_id/run-tests` endpoints to create and run simulations. Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.

Parametry ścieżki

agent_idstringWymagany
The id of an agent. This is returned on agent creation.

Nagłówki

xi-api-keystringOpcjonalny

Żądanie

This endpoint expects an object.
simulation_specificationobjectWymagany
A specification detailing how the conversation should be simulated
extra_evaluation_criterialist of objectsOpcjonalny
A list of evaluation criteria to test
new_turns_limitintegerOpcjonalny<=100Domyślnie 100
Maximum number of new turns to generate in the conversation simulation

Błędy

422
Agents Simulate Conversation Stream Request Unprocessable Entity Error