pub struct EvalCase {
pub eval_id: String,
pub description: String,
pub conversation: Vec<Turn>,
pub session_input: SessionInput,
pub tags: Vec<String>,
pub metadata: Option<EvalCaseMetadata>,
}Expand description
A single evaluation case (test case)
Fields§
§eval_id: StringUnique identifier for this test case
description: StringOptional description
conversation: Vec<Turn>The conversation turns to evaluate
session_input: SessionInputSession configuration
Optional tags for filtering
metadata: Option<EvalCaseMetadata>Optional metadata (generation info, etc.)
Implementations§
Source§impl EvalCase
impl EvalCase
Sourcepub fn load_images(&mut self, base_dir: &Path) -> Result<()>
pub fn load_images(&mut self, base_dir: &Path) -> Result<()>
Reads and verifies every image fixture in the case’s turns, resolving relative paths
against base_dir. TestFile::load and EvalSet::load call it; call it
yourself for a case built or parsed in code.
§Errors
Returns EvalError::LoadError naming the first fixture that is missing, unreadable,
larger than adk_core::MAX_INLINE_DATA_SIZE, or not the file its digest pins.
Sourcepub fn unloaded_images(&self) -> Vec<&ImageFixture>
pub fn unloaded_images(&self) -> Vec<&ImageFixture>
The image fixtures in the case’s turns that have not been loaded and verified.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EvalCase
impl<'de> Deserialize<'de> for EvalCase
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
Auto Trait Implementations§
impl Forget for EvalCase
impl Freeze for EvalCasewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Turn>: Freeze,
PhantomData<(String, Value)>: Freeze,
PhantomData<String>: Freeze,
impl Move for EvalCase
impl RefUnwindSafe for EvalCase
impl Send for EvalCase
impl Sync for EvalCase
impl Unpin for EvalCase
impl UnsafeUnpin for EvalCasewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Turn>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for EvalCasewhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
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