pub struct EvalRunOutputItemSample {
pub input: Vec<SimpleInputMessage>,
pub output: Vec<SimpleOutputMessage>,
pub finish_reason: String,
pub model: String,
pub usage: EvalRunOutputItemUsage,
pub error: Option<EvalApiError>,
pub temperature: f64,
pub max_completion_tokens: i32,
pub top_p: f64,
pub seed: i32,
}Expand description
A sample containing the input and output of the evaluation run.
Fields§
§input: Vec<SimpleInputMessage>An array of input messages.
output: Vec<SimpleOutputMessage>An array of output messages.
finish_reason: StringThe reason why the sample generation was finished.
model: StringThe model used for generating the sample.
usage: EvalRunOutputItemUsageToken usage details for the sample.
error: Option<EvalApiError>Error information, if any.
temperature: f64The sampling temperature used.
max_completion_tokens: i32The maximum number of tokens allowed for completion.
top_p: f64The top_p value used for sampling.
seed: i32The seed used for generating the sample.
Trait Implementations§
Source§impl Clone for EvalRunOutputItemSample
impl Clone for EvalRunOutputItemSample
Source§fn clone(&self) -> EvalRunOutputItemSample
fn clone(&self) -> EvalRunOutputItemSample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvalRunOutputItemSample
impl Debug for EvalRunOutputItemSample
Source§impl<'de> Deserialize<'de> for EvalRunOutputItemSample
impl<'de> Deserialize<'de> for EvalRunOutputItemSample
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
Source§impl PartialEq for EvalRunOutputItemSample
impl PartialEq for EvalRunOutputItemSample
Source§impl Serialize for EvalRunOutputItemSample
impl Serialize for EvalRunOutputItemSample
impl StructuralPartialEq for EvalRunOutputItemSample
Auto Trait Implementations§
impl Freeze for EvalRunOutputItemSample
impl RefUnwindSafe for EvalRunOutputItemSample
impl Send for EvalRunOutputItemSample
impl Sync for EvalRunOutputItemSample
impl Unpin for EvalRunOutputItemSample
impl UnwindSafe for EvalRunOutputItemSample
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