pub enum TurnGenerationError {
NoEligibleModel {
excluded_models: String,
},
NonRetryableInference {
kind: InferenceFailureKind,
recovery: String,
},
Other(String),
}Variants§
NoEligibleModel
Strict routing removed every candidate before a provider was invoked.
NonRetryableInference
A retry cannot repair this inference failure. recovery is the
operator-facing text from the typed inference error.
Other(String)
Every other inference failure retains its existing operator-facing text.
Implementations§
Source§impl TurnGenerationError
impl TurnGenerationError
Sourcepub fn terminal_inference(&self) -> Option<(InferenceFailureKind, String)>
pub fn terminal_inference(&self) -> Option<(InferenceFailureKind, String)>
The terminal cause an unattended coder must surface instead of retrying.
Trait Implementations§
Source§impl Clone for TurnGenerationError
impl Clone for TurnGenerationError
Source§impl Debug for TurnGenerationError
impl Debug for TurnGenerationError
Source§impl Display for TurnGenerationError
impl Display for TurnGenerationError
impl Eq for TurnGenerationError
Source§impl From<InferenceError> for TurnGenerationError
impl From<InferenceError> for TurnGenerationError
Source§fn from(error: InferenceError) -> Self
fn from(error: InferenceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TurnGenerationError
impl PartialEq for TurnGenerationError
impl StructuralPartialEq for TurnGenerationError
Auto Trait Implementations§
impl Freeze for TurnGenerationError
impl RefUnwindSafe for TurnGenerationError
impl Send for TurnGenerationError
impl Sync for TurnGenerationError
impl Unpin for TurnGenerationError
impl UnsafeUnpin for TurnGenerationError
impl UnwindSafe for TurnGenerationError
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<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> ⓘ
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§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>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more