pub enum EngineError {
Show 44 variants
Session(SessionError),
DelegationEvents(DelegationEventError),
Event(EventLogError),
GrantJournal(GrantJournalError),
ToolOutput(Error),
AgentMdIo {
path: PathBuf,
source: Error,
},
Config(Box<ConfigError>),
IneligibleAgent(AgentId),
UnknownAgentModel {
agent: AgentId,
model: ModelKey,
},
UnavailableAgentModel {
agent: AgentId,
model: ModelKey,
},
DisabledAgent(AgentId),
MissingRun(RunId),
SessionRunning(SessionId),
RunIdempotencyConflict,
InputHandled(String),
ModelSelectionBlocked(String),
SessionOperationBlocked(String),
CompactionCancelled(String),
StdinUnavailable,
ApprovalNotPending {
session_id: SessionId,
approval_id: ApprovalId,
},
ApprovalConflict,
ApprovalResponse(Box<ApprovalRespondFailure>),
RenameConflict,
Base64(DecodeError),
Model(Box<ModelError>),
ModelHistory(HistoryError),
ToolFailed(String),
ToolPrompt(String),
MissingActor(SessionId),
SessionOwnedByAnotherProcess(SessionId),
ActorStopped,
NoRunnableModel,
UnknownAgentPreset(String),
ProviderStoreReloadFailed,
RuntimeCompileFailed,
InvalidRuntimeAgent(AgentId),
Mcp(String),
CacheStrategy(String),
Permission(String),
Goal(String),
Producer(String),
Messaging(String),
ModelManager(ModelManagerError),
Manifest(ManifestError),
}Variants§
Session(SessionError)
DelegationEvents(DelegationEventError)
Event(EventLogError)
GrantJournal(GrantJournalError)
ToolOutput(Error)
AgentMdIo
Config(Box<ConfigError>)
IneligibleAgent(AgentId)
UnknownAgentModel
DisabledAgent(AgentId)
MissingRun(RunId)
SessionRunning(SessionId)
RunIdempotencyConflict
InputHandled(String)
ModelSelectionBlocked(String)
SessionOperationBlocked(String)
CompactionCancelled(String)
ApprovalNotPending
ApprovalConflict
ApprovalResponse(Box<ApprovalRespondFailure>)
RenameConflict
Base64(DecodeError)
Model(Box<ModelError>)
ModelHistory(HistoryError)
ToolFailed(String)
A tool, skill, or delegation operation was rejected; the message is self-contained and safe to surface to the model and the client.
ToolPrompt(String)
MissingActor(SessionId)
SessionOwnedByAnotherProcess(SessionId)
ActorStopped
NoRunnableModel
UnknownAgentPreset(String)
ProviderStoreReloadFailed
RuntimeCompileFailed
InvalidRuntimeAgent(AgentId)
Mcp(String)
CacheStrategy(String)
Permission(String)
Goal(String)
Producer(String)
Messaging(String)
ModelManager(ModelManagerError)
Manifest(ManifestError)
Implementations§
Source§impl EngineError
impl EngineError
Sourcepub fn user_message(&self) -> String
pub fn user_message(&self) -> String
Explicit user-facing rendering; Debug is not a diagnostic transport.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodeError> for EngineError
impl From<DecodeError> for EngineError
Source§impl From<DelegationEventError> for EngineError
impl From<DelegationEventError> for EngineError
Source§fn from(source: DelegationEventError) -> Self
fn from(source: DelegationEventError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for EngineError
impl From<Error> for EngineError
Source§impl From<EventLogError> for EngineError
impl From<EventLogError> for EngineError
Source§fn from(source: EventLogError) -> Self
fn from(source: EventLogError) -> Self
Converts to this type from the input type.
Source§impl From<GrantJournalError> for EngineError
impl From<GrantJournalError> for EngineError
Source§fn from(source: GrantJournalError) -> Self
fn from(source: GrantJournalError) -> Self
Converts to this type from the input type.
Source§impl From<ManifestError> for EngineError
impl From<ManifestError> for EngineError
Source§fn from(error: ManifestError) -> Self
fn from(error: ManifestError) -> Self
Converts to this type from the input type.
Source§impl From<ModelError> for EngineError
impl From<ModelError> for EngineError
Source§impl From<ModelManagerError> for EngineError
impl From<ModelManagerError> for EngineError
Source§fn from(source: ModelManagerError) -> Self
fn from(source: ModelManagerError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for EngineError
impl From<SessionError> for EngineError
Source§fn from(error: SessionError) -> Self
fn from(error: SessionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EngineError
impl !UnwindSafe for EngineError
impl Freeze for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more