pub enum RunFailure {
Show 34 variants
ProviderNotFound(Option<ProviderId>),
NoModelsAvailable(ProviderId),
FailedToSendRequest(ProviderError),
FailedToListModels(ProviderError),
FailedToCreateProviderSessionScope(ProviderError),
ProviderSessionScopeIdentityMismatch {
expected: ProviderId,
actual: ProviderId,
},
FailedToStreamResponse(ProviderError),
FailedToCompactHistory(ProviderError),
FailedToPersistTranscript(Error),
FailedToSerializeTranscript(Error),
FailedToLoadTasks(Error),
FailedToWriteTasks(Error),
FailedToSerializeTasks(Error),
FailedToRestoreTasks(Error),
FailedToLoadTeam(Error),
FailedToWriteTeam(Error),
FailedToSerializeTeam(Error),
FailedToDeserializeTeam(Error),
InvalidTask(String),
InvalidTeam(String),
OperationDenied(String),
Store(String),
Branch(BranchError),
LeaseUnavailable(String),
Cancelled,
DeadlineExceeded,
ToolBudgetExceeded(usize),
ModelBudgetExceeded(usize),
MaxRoundsExceeded(usize),
EmptyAssistantResponse,
NoResumableTurn,
InvalidToolUseInput {
id: String,
name: String,
source: Error,
},
MalformedProviderEvent(String),
SubagentTemplateMismatch {
template_source: String,
receiver: String,
},
}Expand description
Mentra’s original typed terminal failure retained by RunReport.
Errors produced while configuring, running, or recovering Mentra agents.
Variants§
ProviderNotFound(Option<ProviderId>)
NoModelsAvailable(ProviderId)
FailedToSendRequest(ProviderError)
FailedToListModels(ProviderError)
FailedToCreateProviderSessionScope(ProviderError)
ProviderSessionScopeIdentityMismatch
FailedToStreamResponse(ProviderError)
FailedToCompactHistory(ProviderError)
FailedToPersistTranscript(Error)
FailedToSerializeTranscript(Error)
FailedToLoadTasks(Error)
FailedToWriteTasks(Error)
FailedToSerializeTasks(Error)
FailedToRestoreTasks(Error)
FailedToLoadTeam(Error)
FailedToWriteTeam(Error)
FailedToSerializeTeam(Error)
FailedToDeserializeTeam(Error)
InvalidTask(String)
InvalidTeam(String)
OperationDenied(String)
Store(String)
Branch(BranchError)
Cancelled
DeadlineExceeded
ToolBudgetExceeded(usize)
ModelBudgetExceeded(usize)
MaxRoundsExceeded(usize)
EmptyAssistantResponse
NoResumableTurn
InvalidToolUseInput
MalformedProviderEvent(String)
SubagentTemplateMismatch
Implementations§
Source§impl RuntimeError
impl RuntimeError
Sourcepub fn category(&self) -> ErrorCategory
pub fn category(&self) -> ErrorCategory
Returns the ErrorCategory for this error, classifying it as
retryable, terminal, or degraded.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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<RuntimeError> for RunError
impl From<RuntimeError> for RunError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl !UnwindSafe for RuntimeError
impl Freeze for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
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