Skip to main content

aether_core/core/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum AgentError {
5    /// LLM provider error
6    #[error("LLM error: {0}")]
7    LlmError(#[from] llm::LlmError),
8    /// IO error (file operations, etc.)
9    #[error("IO error: {0}")]
10    IoError(String),
11}
12
13pub type Result<T> = std::result::Result<T, AgentError>;