Learn how to add/update tools on Agents and Teams after they have been created.
set_tools
call. Note that this will remove any other tools already assigned to your Agent or Team and override it with the list of tools provided to set_tools
.
get_weather
. Then call add_tool
to attach it to your Agent.
set_tools
add_tool
method allows you to dynamically extend an Agent’s or a Team’s capabilities. This is particularly useful when you want to add tools based on user input or other runtime conditions.
The set_tool
method allows you to override an Agent’s or a Team’s capabilities. Note that this will remove any existing tools previously assigned to your Agent or Team.