Skip to main content

Module error

Module error 

Source

Structs§

LlmError
LLM provider error with a semantic kind attached by the driver.

Enums§

AgentLoopError
Errors that can occur during agent loop execution
FileSystemError
Typed SessionFileSystem error. Implementors may return this (wrapped in anyhow::Error) so classify_fs_error resolves the class without string matching. Each variant carries the human-facing message so the file tools can keep surfacing the same text to the agent.
FileSystemErrorClass
Typed classification of a SessionFileSystem failure.
LlmErrorKind
Semantic classification of an LLM provider error, assigned by the driver at the provider boundary where the HTTP status and response body are still available. Downstream consumers prefer this over re-parsing error strings; LlmErrorKind::Other falls back to string classification (classify_runtime_error_message) so untyped errors keep working.

Traits§

StoreResultExt
Extension trait that converts any Result<T, E: Display> into Result<T, AgentLoopError> via AgentLoopError::store(e.to_string()).

Functions§

classify_fs_error
Classify a SessionFileSystem failure into a FileSystemErrorClass.
from_json
Deserialize a serde_json::Value into T, falling back to T::default() on error.
json_val
Convert a serializable value to serde_json::Value, falling back to Value::Null on error.

Type Aliases§

Result
Result type alias for agent loop operations