pub struct LlmFixtureConfig {
pub mode: LlmFixtureMode,
pub cassette: Option<PathBuf>,
pub responses: Vec<String>,
pub responses_by_alias: HashMap<String, Vec<String>>,
pub errors_by_alias: HashMap<String, String>,
}Expand description
LLM fixture mode and data used by the eval runner.
Fields§
§mode: LlmFixtureModeLLM fixture mode used for configured aliases.
cassette: Option<PathBuf>Optional cassette JSONL file for replay or record mode.
responses: Vec<String>Ordered text responses used by mock mode and fallback replay.
responses_by_alias: HashMap<String, Vec<String>>Per-LLM alias ordered responses for deterministic multi-branch evals.
errors_by_alias: HashMap<String, String>Per-LLM alias errors for deterministic failure-path evals.
Trait Implementations§
Source§impl Clone for LlmFixtureConfig
impl Clone for LlmFixtureConfig
Source§fn clone(&self) -> LlmFixtureConfig
fn clone(&self) -> LlmFixtureConfig
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 LlmFixtureConfig
impl Debug for LlmFixtureConfig
Source§impl Default for LlmFixtureConfig
impl Default for LlmFixtureConfig
Source§fn default() -> LlmFixtureConfig
fn default() -> LlmFixtureConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LlmFixtureConfig
impl<'de> Deserialize<'de> for LlmFixtureConfig
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 Freeze for LlmFixtureConfig
impl RefUnwindSafe for LlmFixtureConfig
impl Send for LlmFixtureConfig
impl Sync for LlmFixtureConfig
impl Unpin for LlmFixtureConfig
impl UnsafeUnpin for LlmFixtureConfig
impl UnwindSafe for LlmFixtureConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.