pub struct ProfileConfig {
pub techniques: Vec<String>,
pub verify_gate: Option<VerifyGateKnobs>,
pub retry: Option<RetryKnobs>,
}Expand description
One named profile ([profiles.<name>]): the harness techniques to compose for
a model family / context, plus each technique’s knob settings.
[profiles.nemotron]
techniques = ["knowledge_base", "verify_gate", "retry"]
[profiles.nemotron.verify_gate]
surface_match = "exact" # SurfaceMatch — leaf-exact (the complete-gate default)
[profiles.nemotron.retry]
max_retries = 2A knob table only takes effect when its technique is enabled. An unknown
technique name is an error (ProfileConfig::validate).
Fields§
§techniques: Vec<String>The ordered set of techniques this profile composes. Empty ⇒ the profile
applies no techniques (equivalent to the default/light profile).
verify_gate: Option<VerifyGateKnobs>Knobs for the verify_gate technique (applied iff it is enabled).
retry: Option<RetryKnobs>Knobs for the retry technique (applied iff it is enabled).
Implementations§
Source§impl ProfileConfig
impl ProfileConfig
Sourcepub fn validate(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Validate the profile against the component registry: every
named technique must be a known component, and every component’s
presupposes must also be enabled (e.g. retry presupposes verify_gate).
A presupposition gap is a load-time error, not a silent partial apply.
§Errors
Returns the first unknown-technique or unmet-presupposition as a message.
Sourcepub fn verify_gate_knobs(&self) -> VerifyGateKnobs
pub fn verify_gate_knobs(&self) -> VerifyGateKnobs
The effective verify_gate knobs (defaults when unset).
Sourcepub fn retry_knobs(&self) -> RetryKnobs
pub fn retry_knobs(&self) -> RetryKnobs
The effective retry knobs (defaults when unset).
Trait Implementations§
Source§impl Clone for ProfileConfig
impl Clone for ProfileConfig
Source§fn clone(&self) -> ProfileConfig
fn clone(&self) -> ProfileConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProfileConfig
impl Debug for ProfileConfig
Source§impl Default for ProfileConfig
impl Default for ProfileConfig
Source§fn default() -> ProfileConfig
fn default() -> ProfileConfig
Source§impl<'de> Deserialize<'de> for ProfileConfig
impl<'de> Deserialize<'de> for ProfileConfig
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>,
impl Eq for ProfileConfig
Source§impl PartialEq for ProfileConfig
impl PartialEq for ProfileConfig
Source§fn eq(&self, other: &ProfileConfig) -> bool
fn eq(&self, other: &ProfileConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ProfileConfig
impl Serialize for ProfileConfig
impl StructuralPartialEq for ProfileConfig
Auto Trait Implementations§
impl Freeze for ProfileConfig
impl RefUnwindSafe for ProfileConfig
impl Send for ProfileConfig
impl Sync for ProfileConfig
impl Unpin for ProfileConfig
impl UnsafeUnpin for ProfileConfig
impl UnwindSafe for ProfileConfig
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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