pub struct DistillerProfile {
pub stage: String,
pub version: String,
pub model: String,
pub provider: Provider,
pub prompt_bundle: String,
pub prompt_template: String,
pub params: DistillerParams,
}Expand description
A loaded distiller calibration profile (§11), prompt template resolved.
Fields§
§stage: String§version: String§model: String§provider: Provider§prompt_bundle: String§prompt_template: String§params: DistillerParamsImplementations§
Source§impl DistillerProfile
impl DistillerProfile
Sourcepub fn embedded_default() -> Self
pub fn embedded_default() -> Self
The embedded default: memory-evals/profiles/distiller-v0.toml with
the prompt compiled in. The model tier is a calibration decision
(§11/§16); the config’s distiller.model override adjusts it
per-deployment without a new profile file.
Sourcepub fn with_model_override(self, model: &str) -> Result<Self, DistillerError>
pub fn with_model_override(self, model: &str) -> Result<Self, DistillerError>
Replace the profile’s model (the config-block override). Fail-loud: the model must resolve in the catalog unless a provider is already pinned by the profile.
Sourcepub fn load(path: &Path) -> Result<Self, DistillerError>
pub fn load(path: &Path) -> Result<Self, DistillerError>
Load an external calibration profile (fail-loud), same layout rules as the Selector’s loader.
Trait Implementations§
Source§impl Clone for DistillerProfile
impl Clone for DistillerProfile
Source§fn clone(&self) -> DistillerProfile
fn clone(&self) -> DistillerProfile
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 moreAuto Trait Implementations§
impl Freeze for DistillerProfile
impl RefUnwindSafe for DistillerProfile
impl Send for DistillerProfile
impl Sync for DistillerProfile
impl Unpin for DistillerProfile
impl UnsafeUnpin for DistillerProfile
impl UnwindSafe for DistillerProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 more