pub struct ProviderFailure {
pub provider: usize,
pub model: String,
pub reason: FailureReason,
pub skipped: bool,
}Expand description
One provider’s contribution to a file that no provider could analyze.
reason is always a non-chain LLM-layer variant. That is a property of the
only thing that builds these: the conversion runs over one provider’s
LlmError, so a nested ChainFailed is not merely absent but unreachable.
Fields§
§provider: usizeZero-based position in the chain. Rendered one-based, matching how
doctor numbers the same list.
model: StringThe model that provider asks for.
reason: FailureReasonWhy it did not produce an answer.
skipped: boolTrue when the provider was already demoted and was not contacted for this file. Worth reporting: a user needs to know the local endpoint has been dead since the third file, not just that the fallback then failed.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderFailure
impl Clone for ProviderFailure
Source§fn clone(&self) -> ProviderFailure
fn clone(&self) -> ProviderFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderFailure
impl Debug for ProviderFailure
impl Eq for ProviderFailure
Source§impl PartialEq for ProviderFailure
impl PartialEq for ProviderFailure
impl StructuralPartialEq for ProviderFailure
Auto Trait Implementations§
impl Freeze for ProviderFailure
impl RefUnwindSafe for ProviderFailure
impl Send for ProviderFailure
impl Sync for ProviderFailure
impl Unpin for ProviderFailure
impl UnsafeUnpin for ProviderFailure
impl UnwindSafe for ProviderFailure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.