tool

tool(name: str | None = None, description: str | None = None) -> Callable[[Callable[..., Any]], autogen.tools.Tool]

Decorator to create a Tool from a function.

Parameters:
NameDescription
nameThe name of the tool.

Type: str | None

Default: None
descriptionThe description of the tool.

Type: str | None

Default: None
Returns:
TypeDescription
Callable[[Callable[..., Any]], autogen.tools.Tool]Callable[[Callable[…, Any]], Tool]: A decorator that creates a Tool from a function.