Skip to main content
Tasks can be equipped with various tools to extend their capabilities. Tools are added through the tools parameter and can include custom functions, built-in tools, or tool collections.

Single Tool

Multiple Tools

Tool Collections

Tool Configuration

Available Tool Configurations

Dynamic Tool Management

You can add or remove tools after task creation:

Accessing Registered Tools

After execution, access registered tools via the registered_task_tools attribute:

Best Practices

  • Tool Validation: All tools must have type hints and docstrings
  • Single Responsibility: Each tool should have a clear, focused purpose
  • Error Handling: Implement proper error handling within tool functions
  • Configuration: Use tool configurations appropriately for security and user experience
  • Documentation: Write clear docstrings that explain the tool’s purpose to the LLM