pub struct EvalRunOutputItemSample {
pub input: Vec<EvalRunOutputItemSampleInput>,
pub output: Vec<EvalRunOutputItemSampleOutput>,
pub finish_reason: String,
pub model: String,
pub usage: EvalRunOutputItemSampleUsage,
pub error: EvalApiError,
pub temperature: f64,
pub max_completion_tokens: u64,
pub top_p: f64,
pub seed: u64,
}
Expand description
A sample containing the input and output of the evaluation run.
Fields§
§input: Vec<EvalRunOutputItemSampleInput>
An array of input messages.
output: Vec<EvalRunOutputItemSampleOutput>
An array of output messages.
finish_reason: String
The reason why the sample generation was finished.
model: String
The model used for generating the sample.
usage: EvalRunOutputItemSampleUsage
Token usage details for the sample.
error: EvalApiError
§temperature: f64
The sampling temperature used.
max_completion_tokens: u64
The maximum number of tokens allowed for completion.
top_p: f64
The top_p value used for sampling.
seed: u64
The seed used for generating the sample.
Implementations§
Source§impl EvalRunOutputItemSample
impl EvalRunOutputItemSample
Sourcepub fn builder() -> EvalRunOutputItemSampleBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> EvalRunOutputItemSampleBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building EvalRunOutputItemSample
.
On the builder, call .input(...)
, .output(...)
, .finish_reason(...)
, .model(...)
, .usage(...)
, .error(...)
, .temperature(...)
, .max_completion_tokens(...)
, .top_p(...)
, .seed(...)
to set the values of the fields.
Finally, call .build()
to create the instance of EvalRunOutputItemSample
.
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