Skip to main content

Crate strands_macros

Crate strands_macros 

Source
Expand description

Procedural macros for the Strands Agents Rust SDK: tool and tools.

Use them through the strands crate (strands::tool, strands::tools); the generated code names only strands paths, so a crate needs no serde or schemars dependency of its own.

Attribute Macrosยง

tool
Turns an async fn into a Strands tool.
tools
Generates tools from the #[tool] methods of an impl block, for tools with state.