anyclaw-sdk-tool 0.2.7

Tool SDK for anyclaw — build MCP-compatible tool servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Errors produced by tool SDK operations.
#[derive(Debug, thiserror::Error)]
pub enum ToolSdkError {
    /// Tool logic failed with a user-facing message.
    #[error("Tool execution failed: {0}")]
    ExecutionFailed(String),
    /// The caller supplied invalid input to the tool.
    #[error("Invalid input: {0}")]
    InvalidInput(String),
    /// An I/O error occurred during tool execution.
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
    /// JSON serialization or deserialization failed.
    #[error("Serialization error: {0}")]
    Serde(#[from] serde_json::Error),
}