pub struct CreateEvalRunRequest<'a> {
pub eval_id: &'a str,
pub name: Option<String>,
pub data_source: Value,
pub metadata: Option<HashMap<String, String>>,
pub testing_criteria_sample: Option<Value>,
pub extra_body_map: Option<Map<String, Value>>,
}Expand description
Creates an eval run.
Fields§
§eval_id: &'a strThe ID of the eval to run, e.g. eval_....
name: Option<String>The name of the run.
data_source: ValueThe data source of the run (e.g. a completions file or a logged-completions query), as raw JSON.
metadata: Option<HashMap<String, String>>Arbitrary key-value metadata (up to 16 pairs) attached to the run.
testing_criteria_sample: Option<Value>Whether to run the criteria on a sample of the data source.
extra_body_map: Option<Map<String, Value>>Additional JSON properties flattened into the request body, for fields not covered by the typed struct.
Trait Implementations§
Source§impl<'a> Clone for CreateEvalRunRequest<'a>
impl<'a> Clone for CreateEvalRunRequest<'a>
Source§fn clone(&self) -> CreateEvalRunRequest<'a>
fn clone(&self) -> CreateEvalRunRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CreateEvalRunRequest<'a>
impl<'a> Debug for CreateEvalRunRequest<'a>
Source§impl Post for CreateEvalRunRequest<'_>
impl Post for CreateEvalRunRequest<'_>
Source§impl PostNoStream for CreateEvalRunRequest<'_>
impl PostNoStream for CreateEvalRunRequest<'_>
Auto Trait Implementations§
impl<'a> Freeze for CreateEvalRunRequest<'a>
impl<'a> RefUnwindSafe for CreateEvalRunRequest<'a>
impl<'a> Send for CreateEvalRunRequest<'a>
impl<'a> Sync for CreateEvalRunRequest<'a>
impl<'a> Unpin for CreateEvalRunRequest<'a>
impl<'a> UnsafeUnpin for CreateEvalRunRequest<'a>
impl<'a> UnwindSafe for CreateEvalRunRequest<'a>
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