agentlib-macros
Procedural macros for the AgentLib framework. These macros simplify the definition of tools and agents by automating boilerplate code.
Macros
- #[tool]: Transform a standard Rust function into an AgentLib-compatible
Tool. It automatically extracts the function signature to generate the corresponding JSON schema. - #[agent]: Simplify the creation of an
AgentInstancefrom a class-like structure.
Usage
Defining a tool is as simple as:
use tool;