pub struct ScoreAnswer<L: Ord> {
pub score: f64,
pub probabilities: BTreeMap<L, f64>,
pub confidence: f64,
}Expand description
Expected zero-based position and a distribution keyed by rubric variants.
Fields§
§score: f64Probability-weighted mean of zero-based positions in the supplied rubric.
probabilities: BTreeMap<L, f64>Probability for each rubric variant.
confidence: f64Provider-reported distribution concentration.
Trait Implementations§
Source§impl<'de, L> Deserialize<'de> for ScoreAnswer<L>where
L: Deserialize<'de> + Ord,
impl<'de, L> Deserialize<'de> for ScoreAnswer<L>where
L: Deserialize<'de> + Ord,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<L> Freeze for ScoreAnswer<L>
impl<L> RefUnwindSafe for ScoreAnswer<L>
impl<L> Send for ScoreAnswer<L>
impl<L> Sync for ScoreAnswer<L>
impl<L> Unpin for ScoreAnswer<L>
impl<L> UnsafeUnpin for ScoreAnswer<L>
impl<L> UnwindSafe for ScoreAnswer<L>
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.