dasein_agentic_core/
error.rs1use thiserror::Error;
4
5#[derive(Error, Debug)]
7pub enum AgentError {
8 #[error("LLM not available")]
10 LLMNotAvailable,
11
12 #[error("Sandbox not ready")]
14 SandboxNotReady,
15
16 #[error("Sandbox required for execution but not configured")]
18 SandboxRequired,
19
20 #[error("LLM error: {0}")]
22 LLMError(String),
23
24 #[error("Sandbox error: {0}")]
26 SandboxError(#[from] dasein_agentic_sandbox::SandboxError),
27
28 #[error("Task execution failed: {0}")]
30 ExecutionFailed(String),
31
32 #[error("Agent is already running")]
34 AlreadyRunning,
35
36 #[error("Agent is not running")]
38 NotRunning,
39
40 #[error("Operation timed out")]
42 Timeout,
43
44 #[error("Invalid task: {0}")]
46 InvalidTask(String),
47}