traitclaw-macros
Proc macros for the TraitClaw AI Agent Framework.
Provides #[derive(Tool)] for generating type-safe tool implementations with automatic JSON schema generation from Rust structs.
Usage
use *;
use JsonSchema;
use Deserialize;
The derive macro automatically:
- Generates
ErasedToolimplementation - Creates JSON schema from struct fields and doc comments
- Wires up serialization/deserialization
Note
Most users should use traitclaw with the macros feature (enabled by default) instead of depending on this crate directly.
License
Licensed under either of Apache License, Version 2.0 or MIT License at your option.