agent_core_runtime/agent/
error.rs1use thiserror::Error;
4
5use crate::client::error::LlmError;
6
7#[derive(Error, Debug)]
9pub enum AgentError {
10 #[error("Tool registration failed: {0}")]
12 ToolRegistration(String),
13
14 #[error("Session creation failed: {0}")]
16 Session(#[from] LlmError),
17
18 #[error("Controller not initialized")]
20 ControllerNotInitialized,
21
22 #[error("No LLM configuration found for provider: {0}")]
24 NoConfiguration(String),
25
26 #[error("Session not found: {0}")]
28 SessionNotFound(i64),
29}