tool
Parameters:
Returns:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
tool(name: str | None = None, description: str | None = None) -> Callable[[Callable[..., Any]], Tool]
| Name | Description |
|---|---|
name | The name of the tool. Type: str | None Default: None |
description | The description of the tool. Type: str | None Default: None |
| Type | Description |
|---|---|
| Callable[[Callable[…, Any]], Tool] | Callable[[Callable[…, Any]], Tool]: A decorator that creates a Tool from a function. |