aether-agent-core 0.1.5

A minimal Rust library for building AI agents with MCP tool integration
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum AgentError {
    /// MCP manager operation failed
    #[error("MCP error: {0}")]
    McpError(#[from] mcp_utils::client::McpError),
    /// LLM provider error
    #[error("LLM error: {0}")]
    LlmError(#[from] llm::LlmError),
    /// IO error (file operations, etc.)
    #[error("IO error: {0}")]
    IoError(String),
    /// Generic error for other cases
    #[error("{0}")]
    Other(String),
}

pub type Result<T> = std::result::Result<T, AgentError>;