pub enum AnalyzeOutcome {
Ok {
fields_json: Map<String, Value>,
tokens_in: u64,
tokens_out: u64,
},
Uncertain {
reason: String,
tokens_in: u64,
tokens_out: u64,
},
Failed {
reason: String,
tokens_in: u64,
tokens_out: u64,
},
}Variants§
Ok
Model produced a JSON object conforming to the schema.
Uncertain
Model explicitly refused / could not comply.
Failed
The provider did not answer: refused connection, timeout, rate limit, server error, or a response that was not a model response at all.
Distinct from Uncertain, which is the model answering “no”. These
have different fixes – one is a prompt, the other is a provider –
and collapsing them would hide an outage inside a refusal.
Token counts are what the call had already spent when it failed: a tool loop may have completed several turns before the provider stopped answering, and that spend is real.
Trait Implementations§
Source§impl Clone for AnalyzeOutcome
impl Clone for AnalyzeOutcome
Source§fn clone(&self) -> AnalyzeOutcome
fn clone(&self) -> AnalyzeOutcome
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 moreAuto Trait Implementations§
impl Freeze for AnalyzeOutcome
impl RefUnwindSafe for AnalyzeOutcome
impl Send for AnalyzeOutcome
impl Sync for AnalyzeOutcome
impl Unpin for AnalyzeOutcome
impl UnsafeUnpin for AnalyzeOutcome
impl UnwindSafe for AnalyzeOutcome
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