decorator
AI Agent Tool decorator for converting functions into tools. This module provides the @tool decorator for easily creating tools from functions. Usage:Import
Classes
FunctionTool
A BaseTool wrapper for plain functions.
Functions
is_injected_type()
Function definition.
get_injected_params()
Function definition.
inject_state_into_kwargs()
Function definition.
tool()
Decorator to convert a function into a tool.
is_tool()
Check if an object is a tool (BaseTool instance or decorated function).
get_tool_schema()
Get OpenAI-compatible schema for any tool-like object.

