https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to fix this error
# ❓・ai-evy-support
e
@AI Evy how to fix this error ? tool name must be unique across general tools + tools of the state + state transition
a
### Answer This error occurs because you have duplicate tool names in your Retell LLM configuration. Each tool name must be unique across all tools in your agent. [(1) ]() [(2) ]() When configuring your Retell LLM, tools are combined from three sources: - General tools - tools available in all states - State-specific tools - tools available only in particular states - State transitions - edges between states that function as tools To fix this error, check your agent configuration and ensure no tool name appears more than once across these three categories. For example, if you have a tool called
transfer_call
in your general_tools, you cannot have another tool with the same name in any state's tools array or use
transfer_call
as a state transition name. Review your
general_tools
array and each state's
tools
array in your LLM configuration to identify and rename any duplicate tool names.
​ To learn more, see the sources I considered: [[1] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[2] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) ​
Thanks for tagging me @elcoder. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
Here I get this
Duplicate name found: applyShift
. But the apply shift is called by another agent but only once in my current agent
a
Thanks for the follow-up, @elcoder. I'll get back to you soon.
e
@AI Evy Here I get this Duplicate name found: applyShift. But the apply shift is called by another agent but only once in my current agent
a
### Answer The "Duplicate name found: applyShift" error occurs because tool names must be unique within a single agent, not across different agents. [(1) ]() Even though
applyShift
is used in another agent, if it appears more than once in your current agent's configuration, you'll get this error. The uniqueness requirement applies to: - General tools (available in all states) - State-specific tools (available in particular states) - State transition names (edges between states) To fix this, check your current agent's configuration for duplicate instances of
applyShift
. Common scenarios: 1.
applyShift
appears in both
general_tools
and a state's
tools
array 2.
applyShift
appears in multiple states'
tools
arrays 3.
applyShift
is used as both a tool name and a state transition name Review your LLM configuration and ensure
applyShift
appears only once across all these locations within your current agent.
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.