Update Retell LLM
Updates a Retell LLM in Retell AI.
Query
Comma-separated response fields to include.
Body
Edges of the state define how and what state can be reached from this state.
A list of tools the model may call (to get external knowledge, call API, etc). You can select from some common predefined tools like end call, transfer call, etc; or you can create your own custom tool for the LLM to use. - Tools of LLM (with state) = general tools + state tools + state transitions - Tools of LLM (no state) = general tools
A list of knowledge base ids to use for this resource.
A list of MCPs to use for this LLM.
List of names of required property when generating this parameter. LLM will do its best to generate the required properties in its function arguments. Property must exist in properties.
States of the LLM. This is to help reduce prompt length and tool choices when the call can be broken into distinct states. With shorter prompts and less tools, the LLM can better focus and follow the rules, minimizing hallucination. If this field is not set, the agent would only have general prompt and general tools (essentially one state).
A list of tools specific to this state the model may call (to get external knowledge, call API, etc). You can select from some common predefined tools like end call, transfer call, etc; or you can create your own custom tool for the LLM to use. - Tools of LLM = general tools + state tools + state transitions
Available LLM models for agents.
Select the underlying speech to speech model. Can only set this or model, not both. Allowed values: gpt-4o-realtime, gpt-4o-mini-realtime, gpt-realtime, gpt-realtime-mini.
If set, will control the randomness of the response. Value ranging from [0,1]. Lower value means more deterministic, while higher value means more random. If unset, default value 0 will apply. Note that for tool calling, a lower value is recommended.
If set to true, will use high priority pool with more dedicated resource to ensure lower and more consistent latency, default to false. This feature usually comes with a higher cost.
Whether to use strict mode for tool calls. Only applicable when using certain supported models.
Max number of knowledge base chunks to retrieve
Similarity threshold for filtering search results
The speaker who starts the conversation. Required. Must be either 'user' or 'agent'. Allowed values: user, agent.
If set, the AI will begin the conversation after waiting for the user for the duration (in milliseconds) specified by this attribute. This only applies if the agent is configured to wait for the user to speak first. If not set, the agent will wait indefinitely for the user to speak.
First utterance said by the agent in the call. If not set, LLM will dynamically generate a message. If set to "", agent will wait for user to speak first.
General prompt appended to system prompt no matter what state the agent is in. - System prompt (with state) = general prompt + state prompt. - System prompt (no state) = general prompt.
Allowed values: end_call.
Name of the tool. Must be unique within all tools available to LLM at any given time (general tools + state tools + state transitions). Must be consisted of a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64 (no space allowed).
Describes what the tool does, sometimes can also include information about when to call the tool.
If true, will speak during execution.
Describes what to say to user when ending the call. Only applicable when speak_during_execution is true.
Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". Allowed values: prompt, static_text.
Name of the state, must be unique for each state. Must be consisted of a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64 (no space allowed).
Prompt of the state, will be appended to the system prompt of LLM. - System prompt = general prompt + state prompt.
The destination state name when going through transition of state via this edge. State transition internally is implemented as a tool call of LLM, and a tool call with name "transition_to_{destination_state_name}" will get created. Feel free to reference it inside the prompt.
Describes what's the transition and at what time / criteria should this transition happen.
The parameters the functions accepts, described as a JSON Schema object. See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.
Type must be "object" for a JSON Schema object. Allowed values: object.
The value of properties is an object, where each key is the name of a property and each value is a schema used to validate that property.
Allowed values: end_call.
Name of the tool. Must be unique within all tools available to LLM at any given time (general tools + state tools + state transitions). Must be consisted of a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64 (no space allowed).
Describes what the tool does, sometimes can also include information about when to call the tool.
If true, will speak during execution.
Describes what to say to user when ending the call. Only applicable when speak_during_execution is true.
Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". Allowed values: prompt, static_text.
Name of the starting state. Required if states is not empty.
Default dynamic variables represented as key-value pairs of strings. These are injected into your Retell LLM prompt and tool description when specific values are not provided in a request. Only applicable for Retell LLM.
The version of the LLM.
The URL of the MCP server.
Headers to add to the MCP connection request.
Query parameters to append to the MCP connection request URL.
Maximum time to wait for a connection to be established (in milliseconds). Default to 120,000 ms (2 minutes).