use thiserror::Error;
#[derive(Debug, Error)]
pub enum AgentError {
#[error("MCP error: {0}")]
McpError(#[from] mcp_utils::client::McpError),
#[error("LLM error: {0}")]
LlmError(#[from] llm::LlmError),
#[error("IO error: {0}")]
IoError(String),
#[error("{0}")]
Other(String),
}
pub type Result<T> = std::result::Result<T, AgentError>;