1use autoagents_llm::error::LLMError;
2
3use crate::{
4 agent::{AgentBuildError, AgentResultError, RunnableAgentError},
5 environment::EnvironmentError,
6 runtime::RuntimeError,
7};
8
9#[derive(Debug, thiserror::Error)]
10pub enum Error {
11 #[error(transparent)]
12 EnvironmentError(#[from] EnvironmentError),
13 #[error(transparent)]
14 RuntimeError(#[from] RuntimeError),
15 #[error(transparent)]
16 AgentBuildError(#[from] AgentBuildError),
17 #[error(transparent)]
18 RunnableAgentError(#[from] RunnableAgentError),
19 #[error(transparent)]
20 LLMError(#[from] LLMError),
21 #[error(transparent)]
22 AgentResultError(#[from] AgentResultError),
23}