#[non_exhaustive]pub enum RunError {
Harness(HarnessError),
UnknownSkill(String),
UnknownSpecialist(String),
UiAction(String),
NotContinuable(String),
}Expand description
Why Agent::run failed.
#[non_exhaustive] (since 1.2.0): later releases may add reasons, so a
match outside this crate needs a _ arm; the Display text describes any.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Harness(HarnessError)
The turn failed: the model could not be reached, or a limit tripped.
UnknownSkill(String)
Turn::skill named a skill the agent does not have.
UnknownSpecialist(String)
Turn::specialist named a specialist the agent does not have, or the
agent has no SubAgents.
UiAction(String)
Agent::ui_action was given an action no surface up could have sent
(no renderer, no such surface or component, or no name). The message
says which, never the action’s values.
NotContinuable(String)
Agent::continue_turn found nothing it may continue: the last turn
finished, the conversation changed since it stopped, or the skill it ran
under is gone. The message says which; nothing was sent to the model.
Trait Implementations§
Source§impl Error for RunError
impl Error for RunError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<HarnessError> for RunError
impl From<HarnessError> for RunError
Source§fn from(source: HarnessError) -> Self
fn from(source: HarnessError) -> Self
impl StructuralPartialEq for RunError
Auto Trait Implementations§
impl Forget for RunError
impl Freeze for RunError
impl Move for RunError
impl RefUnwindSafe for RunError
impl Send for RunErrorwhere
RawVecInner: Send,
impl Sync for RunErrorwhere
RawVecInner: Sync,
impl Unpin for RunError
impl UnsafeUnpin for RunError
impl UnwindSafe for RunErrorwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more