axocoatl-tools 0.1.3

Built-in tool library and unified tool executor for Axocoatl
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, thiserror::Error)]
pub enum ToolError {
    #[error("Tool not found: {0}")]
    NotFound(String),

    #[error("Tool execution failed: {tool} — {reason}")]
    ExecutionFailed { tool: String, reason: String },

    #[error("Invalid arguments for tool {tool}: {reason}")]
    InvalidArgs { tool: String, reason: String },

    #[error("Serialization error: {0}")]
    Serialization(#[from] serde_json::Error),
}