klieo-macros
Procedural macros for the klieo agent framework.
Part of the klieo Rust agent framework.
Features
#[tool]: derives aToolimpl from anasync fn— name, description, and JSON schema inferred automatically- Zero boilerplate: annotate a function, register the result
Quickstart
[]
= "3"
= "3"
= "3" # for ChainedInvoker
use Arc;
use tool;
use ;
use ChainedInvoker;
async
#
The macro generates a struct (AddTool for fn add) that implements
Tool. Pass the owned struct to either:
ChainedInvoker::with_tool_owned(AddTool)— Arc-wraps internally; noArc::new(...)at the call site (klieo-tools 2.0+).App::tool(AddTool)— the umbrella crate'sAppbuilder accepts ownedToolvalues and Arc-wraps as part of building the runtime.
If you do want to manage the Arc yourself (e.g. registering one tool
in multiple invokers), ChainedInvoker::with_tool(Arc::new(AddTool))
stays available.
Status
3.x — stable. See docs/SEMVER.md.
License
MIT — see LICENSE.