pub struct CreateEvalRequest {
pub name: Option<String>,
pub data_source_config: Value,
pub testing_criteria: Vec<Value>,
pub metadata: Option<HashMap<String, String>>,
pub extra_body_map: Option<Map<String, Value>>,
}Expand description
Creates an eval.
Fields§
§name: Option<String>The name of the eval.
data_source_config: ValueThe configuration of the eval (the schema of the test cases), as raw JSON.
testing_criteria: Vec<Value>The testing criteria (graders) applied by the eval, as raw JSON.
metadata: Option<HashMap<String, String>>Arbitrary key-value metadata (up to 16 pairs) attached to the eval.
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 Clone for CreateEvalRequest
impl Clone for CreateEvalRequest
Source§fn clone(&self) -> CreateEvalRequest
fn clone(&self) -> CreateEvalRequest
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 Debug for CreateEvalRequest
impl Debug for CreateEvalRequest
Source§impl<'de> Deserialize<'de> for CreateEvalRequest
impl<'de> Deserialize<'de> for CreateEvalRequest
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 Post for CreateEvalRequest
impl Post for CreateEvalRequest
Source§impl PostNoStream for CreateEvalRequest
impl PostNoStream for CreateEvalRequest
Auto Trait Implementations§
impl Freeze for CreateEvalRequest
impl RefUnwindSafe for CreateEvalRequest
impl Send for CreateEvalRequest
impl Sync for CreateEvalRequest
impl Unpin for CreateEvalRequest
impl UnsafeUnpin for CreateEvalRequest
impl UnwindSafe for CreateEvalRequest
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