pub struct Attempt {
pub provider: usize,
pub model: String,
pub error: LlmError,
pub skipped: bool,
}Expand description
One provider’s contribution to a failed file.
skipped distinguishes “tried now and failed” from “already down from
earlier in this run”. Both are worth reporting: a user reading why a file
went unanalyzed needs to know the local endpoint has been dead since file
three, not just that the cloud fallback then returned a 401.
Fields§
§provider: usizeZero-based position in the chain. Rendered one-based.
model: StringThe model that provider asks for, for a message the user can act on.
error: LlmErrorWhy it failed.
skipped: boolTrue when this provider was already marked down and was not contacted for this file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attempt
impl RefUnwindSafe for Attempt
impl Send for Attempt
impl Sync for Attempt
impl Unpin for Attempt
impl UnsafeUnpin for Attempt
impl UnwindSafe for Attempt
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