pub struct Answered {
pub noul: BTreeMap<String, f64>,
pub choices: BTreeMap<String, BTreeMap<String, f64>>,
pub provider: String,
pub model: String,
pub calibrated: bool,
pub latency_ms: u64,
}Expand description
One validated response.
Fields§
§noul: BTreeMap<String, f64>noul answers: p(yes). Choice answers: absent here, see choices.
choices: BTreeMap<String, BTreeMap<String, f64>>choice answers: the probability of every option.
provider: String§model: String§calibrated: boolThe backend’s flag AND the response’s own calibrated field.
latency_ms: u64Implementations§
Trait Implementations§
impl StructuralPartialEq for Answered
Auto Trait Implementations§
impl Freeze for Answered
impl RefUnwindSafe for Answered
impl Send for Answered
impl Sync for Answered
impl Unpin for Answered
impl UnsafeUnpin for Answered
impl UnwindSafe for Answered
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