pub struct DynamicScoreAnswer {
pub score: f64,
pub probabilities: BTreeMap<usize, f64>,
pub legend: BTreeMap<usize, Value>,
pub confidence: f64,
}Expand description
Expected zero-based rubric position and the distribution that produced it.
Fields§
§score: f64Probability-weighted mean of zero-based rubric indices.
probabilities: BTreeMap<usize, f64>The full distribution over the supplied alternatives or levels.
legend: BTreeMap<usize, Value>Level indices mapped to their original descriptions.
confidence: f64Provider-reported distribution concentration.
Trait Implementations§
Source§impl Clone for DynamicScoreAnswer
impl Clone for DynamicScoreAnswer
Source§impl Debug for DynamicScoreAnswer
impl Debug for DynamicScoreAnswer
Source§impl<'de> Deserialize<'de> for DynamicScoreAnswer
impl<'de> Deserialize<'de> for DynamicScoreAnswer
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 Freeze for DynamicScoreAnswer
impl RefUnwindSafe for DynamicScoreAnswer
impl Send for DynamicScoreAnswer
impl Sync for DynamicScoreAnswer
impl Unpin for DynamicScoreAnswer
impl UnsafeUnpin for DynamicScoreAnswer
impl UnwindSafe for DynamicScoreAnswer
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.