pub enum AssistantError {
Disabled,
Busy,
Timeout,
StepLimit(u32),
TokenLimit,
Refused,
Malformed(String),
Llm(LlmError),
}Expand description
Why a run failed.
Variants§
Disabled
Busy
Timeout
StepLimit(u32)
TokenLimit
Refused
Malformed(String)
Llm(LlmError)
The model call failed (see LlmError).
Implementations§
Trait Implementations§
Source§impl Clone for AssistantError
impl Clone for AssistantError
Source§impl Debug for AssistantError
impl Debug for AssistantError
Source§impl Display for AssistantError
impl Display for AssistantError
Source§impl Error for AssistantError
impl Error for AssistantError
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<LlmError> for AssistantError
impl From<LlmError> for AssistantError
Source§fn from(e: LlmError) -> AssistantError
fn from(e: LlmError) -> AssistantError
Converts to this type from the input type.
Source§impl PartialEq for AssistantError
impl PartialEq for AssistantError
impl StructuralPartialEq for AssistantError
Auto Trait Implementations§
impl Freeze for AssistantError
impl RefUnwindSafe for AssistantError
impl Send for AssistantError
impl Sync for AssistantError
impl Unpin for AssistantError
impl UnsafeUnpin for AssistantError
impl UnwindSafe for AssistantError
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
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.