pub enum DaimonError {
Show 16 variants
Model(String),
ToolExecution {
tool: String,
message: String,
},
ToolNotFound(String),
DuplicateTool(String),
Builder(String),
MaxIterations(usize),
Serialization(Error),
SchemaValidation {
tool: String,
errors: String,
},
StreamClosed,
Timeout(Duration),
Cancelled,
Orchestration(String),
Mcp(String),
BudgetExceeded {
spent: f64,
limit: f64,
},
GuardrailBlocked(String),
Other(String),
}Expand description
The central error type for all Daimon operations.
Provider crates should map their transport-specific errors
(HTTP, gRPC, SDK) to DaimonError::Model.
Variants§
Model(String)
An error originating from a model provider (API error, bad response, etc.).
ToolExecution
A tool failed during execution.
ToolNotFound(String)
The requested tool was not found in the registry.
DuplicateTool(String)
Attempted to register a tool with a name that already exists.
Builder(String)
The agent builder failed validation (e.g. missing required model).
MaxIterations(usize)
The agent exceeded the configured maximum number of iterations.
Serialization(Error)
A serialization or deserialization error.
SchemaValidation
Tool input failed JSON Schema validation.
Fields
StreamClosed
A stream was closed before completing.
Timeout(Duration)
A request timed out.
Cancelled
The operation was cancelled via a cancellation token.
Orchestration(String)
An orchestration error (chain or graph execution failure).
Mcp(String)
An MCP protocol error.
BudgetExceeded
The agent exceeded the configured spending budget.
GuardrailBlocked(String)
An input or output guardrail blocked the request.
Other(String)
A catch-all for other errors.