pub struct ChoiceAnswer {
pub choice: String,
pub confidence: Option<f64>,
pub probabilities: IndexMap<String, f64>,
}Expand description
A choice answer.
Fields§
§choice: StringThe option key the model selected.
confidence: Option<f64>Confidence in choice, when the server reports it.
probabilities: IndexMap<String, f64>Per-option probabilities. Empty, not absent, when the server omits them.
Trait Implementations§
Source§impl Clone for ChoiceAnswer
impl Clone for ChoiceAnswer
Source§impl Debug for ChoiceAnswer
impl Debug for ChoiceAnswer
Source§impl PartialEq for ChoiceAnswer
impl PartialEq for ChoiceAnswer
Source§impl Serialize for ChoiceAnswer
impl Serialize for ChoiceAnswer
impl StructuralPartialEq for ChoiceAnswer
Auto Trait Implementations§
impl Freeze for ChoiceAnswer
impl RefUnwindSafe for ChoiceAnswer
impl Send for ChoiceAnswer
impl Sync for ChoiceAnswer
impl Unpin for ChoiceAnswer
impl UnsafeUnpin for ChoiceAnswer
impl UnwindSafe for ChoiceAnswer
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