meerkat-tools 0.7.7

Tool validation and dispatch for Meerkat
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Tool error types for Meerkat.

pub use meerkat_core::error::{ToolError, ToolValidationError};
use thiserror::Error;

/// Errors that can occur during tool dispatch
#[derive(Debug, Error)]
pub enum DispatchError {
    #[error("Validation error: {0}")]
    Validation(#[from] ToolValidationError),
    #[error("Tool error: {0}")]
    Tool(#[from] ToolError),
    #[error("MCP error: {0}")]
    #[cfg(feature = "mcp")]
    Mcp(#[from] meerkat_mcp::McpError),
    #[error("Timeout: tool execution took longer than {timeout_ms}ms")]
    Timeout { timeout_ms: u64 },
}