Skip to main content

tool

Attribute Macro tool 

Source
#[tool]
Expand description

Attribute macro for defining tools from async functions.

Generates a <PascalCaseFnName>Tool struct implementing the Tool trait. Use #[param(...)] on function parameters for schema metadata.