macro_rules! tool_attribution {
($ty:ty, $kind:expr) => { ... };
}Expand description
Boilerplate-collapsing macro: pair a concrete Tool impl with a
matching Attributable impl that surfaces the supplied ToolKind
and uses the tool’s name() as its alias.
Invoke once per Tool struct, in the same module as the struct:
ⓘ
crate::tool_attribution!(ShellTool, ::zeroclaw_api::attribution::ToolKind::Shell);