Stateless playground completion. Send the full conversation history (same shape as chat completion messages) and receive only the newly generated messages. Nothing is persisted server-side — the caller manages conversation state.
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Unique id of the agent.
Agent version to use. Defaults to latest.
Full conversation history, same shape as chat completion messages. message_id and created_timestamp are optional — server generates them if omitted.
Same shape as chat completion messages. message_id and created_timestamp are optional — server generates them if omitted.
Key-value pairs for dynamic variable substitution.
Optional mock responses for tools. When provided, the agent uses these instead of executing real tool calls.
Current state name for retell-llm agents. Used to resume from a specific state.
Current node id for conversation-flow agents. Used to resume from a specific node. Must be provided together with component_id when testing components.
Conversation flow component id. Required when current_node_id refers to a node within a component.
Successfully generated playground completion.
New messages generated by the agent. Same shape as chat completion response messages. Does not include the input messages.
Current state name (retell-llm agents).
Current node id (conversation-flow agents).
Updated dynamic variables after this turn.
Whether the agent ended the conversation.
Knowledge base chunks retrieved for this turn.