adorable-petabyte-73906
11/10/2025, 2:33 PMtall-airline-16756
11/10/2025, 2:33 PMtall-airline-16756
11/10/2025, 2:34 PMupdate_tools() method works! This method replaces the agent’s current tools with the new set you provide. Just a quick heads-up: it doesn’t keep the old tools unless you specifically include them in the new list.
If you want to keep your existing tools and just add or remove certain ones, here’s a friendly way to do that:
# Add a new tool while keeping existing ones
await agent.update_tools(agent.tools + [new_tool])
# Remove a specific tool
await agent.update_tools([t for t in agent.tools if t.name != "tool_to_remove"])
This way, you can make sure your agent holds on to the tools you want while still updating its capabilities. If you have any questions or need more help, feel free to ask!
Sources: Tool definition and use | LiveKit docs | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/experimental/realti... | Agent Session & Client Integration | livekit/livekit_composite | DeepWikiadorable-petabyte-73906
11/10/2025, 2:34 PMtall-airline-16756
11/10/2025, 2:35 PMupdate_tools() method with your new list of tools. This will gently overwrite the existing tools with the fresh set you provide. For example:
# Replace the entire set of tools
await agent.update_tools([new_tool1, new_tool2, new_tool3])
This way, you can be confident that only the tools you've specified in the new list will be available to the agent. If you have any questions along the way, I'm here to help!