Enhanced Tool Definitions with Complex Schemas
Complex Schema Support for Tool Arguments
You can now use complex Pydantic schemas to define arguments for tools, enabling better type safety and validation for your tool inputs.
Tool Creation from Function with Complex Schema
Use the args_schema parameter to specify a Pydantic model for tool arguments when creating tools from functions.
BaseTool Class Extension
For more complex tool implementations, you can also extend the BaseTool
class to create custom tools with full control over the implementation.