klieo-macros
Procedural macros for the klieo agent framework: #[tool] derives
a Tool impl from an async fn.
Part of the klieo Rust agent framework.
The #[tool] macro
use ToolCtx;
use ToolError;
use tool;
/// Return current UTC time as an RFC 3339 timestamp string.
async
The macro generates a CurrentTime struct implementing
klieo_core::Tool with the function body as the invoke impl
and a JSON schema derived from the function's argument types.
Path resolution
The #[tool] macro emits absolute paths through the klieo
umbrella's hidden __private re-export module
(::klieo::__private::klieo_core::__macro_support::…), so the only
dependency a downstream crate needs is klieo itself:
[]
= { = "0.16", = ["macros", "tools"] }
klieo-macros and klieo-core come in transitively. The
cargo-machete.ignored workaround required in 0.15 and earlier is
no longer necessary.
Status
0.9.x — public API stable. See docs/SEMVER.md.
License
MIT — see LICENSE.