use thiserror::Error;
#[derive(Error, Debug)]
pub enum AgentError {
#[error("API error: {0}")]
Api(String),
#[error("Tool error: {0}")]
Tool(String),
#[error("Session error: {0}")]
Session(String),
#[error("MCP error: {0}")]
Mcp(String),
#[error("Skill error: {0}")]
Skill(String),
#[error("Command error: {0}")]
Command(String),
#[error("Internal error: {0}")]
Internal(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
#[error("HTTP error: {0}")]
Http(#[from] reqwest::Error),
}