Agents
LLM configuration
The LLM configuration selects the model that generates the agent's replies, handles tool calling, and manages conversation flow.
Fields
All fields live under llm in the agent configuration object.
| Field | Type | Default | Allowed | Description |
|---|---|---|---|---|
provider | string | gemini | gemini, bedrock, openai, azure_openai, anthropic, openrouter, deepseek | The LLM provider identifier enabled for your workspace. |
model | string | gemini-3.5-flash-lite | A model ID offered for that provider (see the LLM tab in the console) | The model identifier used for conversation replies, call analysis, and hang-up evaluations. |
temperature | number | 0.4 | 0.0 to 2.0 | Sampling temperature. Lower values are more deterministic; higher values allow more variation. |
max_tokens | integer | 300 | 16 to 4096 | Maximum output tokens generated per turn. |
{
"llm": {
"provider": "gemini",
"model": "gemini-3.5-flash-lite",
"temperature": 0.4,
"max_tokens": 300
}
}
Model families and engines
| Engine | Identifier | Default model | Notes |
|---|---|---|---|
| Platform Standard | gemini | gemini-3.5-flash-lite | Default low-latency voice model. Fast time-to-first-token. |
| Enterprise Nova | bedrock | us.amazon.nova-lite-v1:0 | Inference profiles with native tool-calling support. |
| Core Conversational | openai | gpt-4.1-mini | General conversational and reasoning models. |
| Private Dedicated | azure_openai | gpt-4.1-mini | Enterprise dedicated deployments. The model field specifies your deployment name. |
| High Precision | anthropic | claude-haiku-4-5 | High-fidelity conversational flow models. |
| Extended Gateway | openrouter | openai/gpt-4.1-mini | Gateway engine supporting models with tool-calling capabilities. |
| Standard Voice | deepseek | deepseek-chat | Standard low-latency conversation model. |
Choosing a model
The LLM tab in the console lists the models available to your workspace for each provider, with the default marked. Use those IDs in llm.model when you create or update an agent through the API.
For live voice conversations, low latency is critical. Smaller, lightweight models generally answer significantly faster. Monitor first_audio_ms on your call timelines to evaluate response latency.
Turn execution
- Streaming: Responses are streamed chunk by chunk. As soon as the first sentence boundary is reached, text is synthesized to speech while the rest of the reply generates.
- Tool execution: The model has access to configured tools,
end_call, andsearch_knowledge_base(when knowledge bases are attached). - History tracking: Conversation context reflects the spoken turns. If a caller interrupts, previous turns reflect only the portions spoken before interruption.
- Reasoning models: Models supporting adjustable reasoning effort are configured with minimal reasoning effort to prioritize low initial speech latency.
- Failures: Temporary upstream errors or rate limits are retried automatically. Repeated consecutive generation failures terminate the call cleanly with
hangup_by: "error".
Recommendations
- Keep
max_tokensbetween 200 and 400 for concise, phone-friendly dialogue. - Use
temperaturebetween0.2and0.5for consistent procedural adherence.