Expand description
cersei-tools-derive: Proc macro for deriving the Tool trait.
Usage:
ⓘ
#[derive(Tool)]
#[tool(name = "my_tool", description = "Does something", permission = "read_only")]
struct MyTool;
#[async_trait]
impl ToolExecute for MyTool {
type Input = MyInput;
async fn run(&self, input: MyInput, ctx: &ToolContext) -> ToolResult { ... }
}