pub struct Eval {
pub id: String,
pub name: String,
pub data_source_config: EvalDataSourceConfig,
pub testing_criteria: Vec<EvalTestingCriteria>,
pub created_at: u64,
pub metadata: Option<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§
§id: String
Unique identifier for the evaluation.
name: String
The name of the evaluation.
data_source_config: EvalDataSourceConfig
Configuration of data sources used in runs of the evaluation.
testing_criteria: Vec<EvalTestingCriteria>
A list of testing criteria.
created_at: u64
The Unix timestamp (in seconds) for when the eval was created.
metadata: Option<Metadata>
Implementations§
Source§impl Eval
impl Eval
Sourcepub fn builder() -> EvalBuilder<((), (), (), (), (), ())>
pub fn builder() -> EvalBuilder<((), (), (), (), (), ())>
Create a builder for building Eval
.
On the builder, call .id(...)
, .name(...)
, .data_source_config(...)
, .testing_criteria(...)
, .created_at(...)
, .metadata(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Eval
.
Trait 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