| Name | Type | Description |
|---|---|---|
func* | Callable[..., Any] | None | The function to create the tool from. |
name* | str | The name of the tool. |
description* | str | The description of the tool. |
return_direct | bool | Default: False |
args_schema | ArgsSchema | None | Default: None |
coroutine | Callable[..., Awaitable[Any]] | None | Default: None |
**kwargs | Any | Default: {} |
Initialize tool from a function.
Whether to return the output directly.
The schema of the tool's input arguments.
The asynchronous version of the function.
Additional arguments to pass to the tool.