Skip to main content

Removing Tools from Agent

By Name (String)

By Object Reference

Mixed (Name + Object)

Complete Agent Example

Removing Tools from Task

Removing tools from tasks requires the agent reference:

Task Removal Methods

Key Points

  • Remove by name: Works for all tool types
  • Remove by object: Removes entire container (ToolKit/Class/MCP/Agent) or single function
  • Mixed removal: Combine names and objects in one call
  • Agent tools: Removed from all future tasks
  • Task tools: Requires agent reference for removal