pub struct Eval {
pub object: String,
pub id: String,
pub name: String,
pub data_source_config: EvalDataSourceConfig,
pub testing_criteria: Vec<EvalTestingCriterion>,
pub created_at: u64,
pub metadata: Metadata,
}Expand description
An Eval object with a data source config and testing criteria. An Eval represents a task to be done for your LLM integration. Like:
- Improve the quality of my chatbot
- See how well my chatbot handles customer support
- Check if o4-mini is better at my usecase than gpt-4o
Fields§
§object: StringThe object type, which is always “eval”.
id: StringUnique identifier for the evaluation.
name: StringThe name of the evaluation.
data_source_config: EvalDataSourceConfigConfiguration of data sources used in runs of the evaluation.
testing_criteria: Vec<EvalTestingCriterion>A list of testing criteria.
created_at: u64The Unix timestamp (in seconds) for when the eval was created.
metadata: MetadataTrait Implementations§
Source§impl<'de> Deserialize<'de> for Eval
impl<'de> Deserialize<'de> for Eval
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
impl StructuralPartialEq for Eval
Auto Trait Implementations§
impl Freeze for Eval
impl RefUnwindSafe for Eval
impl Send for Eval
impl Sync for Eval
impl Unpin for Eval
impl UnwindSafe for Eval
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