pub struct FieldSources {Show 17 fields
pub temperature: ParamSource,
pub top_p: ParamSource,
pub top_k: ParamSource,
pub presence_penalty: ParamSource,
pub repeat_penalty: ParamSource,
pub min_p: ParamSource,
pub frequency_penalty: ParamSource,
pub dynatemp_range: ParamSource,
pub dynatemp_exponent: ParamSource,
pub top_n_sigma: ParamSource,
pub dry_multiplier: ParamSource,
pub dry_base: ParamSource,
pub dry_allowed_length: ParamSource,
pub dry_penalty_last_n: ParamSource,
pub max_tokens: ParamSource,
pub reasoning_effort: ParamSource,
pub reasoning_budget_tokens: ParamSource,
}Expand description
Per-field provenance for one resolved InferenceConfig.
Fields§
§temperature: ParamSourceWhere the resolved temperature came from.
top_p: ParamSourceWhere the resolved top_p came from.
top_k: ParamSourceWhere the resolved top_k came from.
presence_penalty: ParamSourceWhere the resolved presence_penalty came from.
repeat_penalty: ParamSourceWhere the resolved repeat_penalty came from.
min_p: ParamSourceWhere the resolved min_p came from.
frequency_penalty: ParamSourceWhere the resolved frequency_penalty came from.
dynatemp_range: ParamSourceWhere the resolved dynatemp_range came from.
dynatemp_exponent: ParamSourceWhere the resolved dynatemp_exponent came from.
top_n_sigma: ParamSourceWhere the resolved top_n_sigma came from.
dry_multiplier: ParamSourceWhere the resolved dry_multiplier came from.
dry_base: ParamSourceWhere the resolved dry_base came from.
dry_allowed_length: ParamSourceWhere the resolved dry_allowed_length came from.
dry_penalty_last_n: ParamSourceWhere the resolved dry_penalty_last_n came from.
max_tokens: ParamSourceWhere the resolved max_tokens came from.
reasoning_effort: ParamSourceWhere the resolved reasoning_effort came from.
The only account there is. Neither reasoning control is observable at
the sampling boundary — no /slots or /props field echoes either one
(ADR 0007 finding 7a) — so where a readback can eventually confirm
that top_k arrived, nothing will ever confirm this did. Provenance is
not a convenience for these two fields; it is the record.
reasoning_budget_tokens: ParamSourceWhere the resolved reasoning_budget_tokens came from. Equally
unobservable — see reasoning_effort.
Implementations§
Source§impl FieldSources
impl FieldSources
Sourcepub fn iter(&self) -> impl Iterator<Item = (&'static str, ParamSource)>
pub fn iter(&self) -> impl Iterator<Item = (&'static str, ParamSource)>
(field_name, source) pairs in display order.
The single iteration order every consumer renders, so the CLI’s table and the pipeline’s debug line cannot disagree about which parameter is which. The coupled trio is kept adjacent because it is only interpretable as a group.
Sourcepub fn describe(&self, names: &[&str]) -> String
pub fn describe(&self, names: &[&str]) -> String
Render as field=layer pairs against the ladder’s own layer names.
names is indexed by ParamSource::Layer; an index past its end
renders as ?, which can only happen if a caller passes names for a
different ladder than it resolved.
Trait Implementations§
Source§impl Clone for FieldSources
impl Clone for FieldSources
Source§fn clone(&self) -> FieldSources
fn clone(&self) -> FieldSources
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 FieldSources
impl Debug for FieldSources
Source§impl<'de> Deserialize<'de> for FieldSources
impl<'de> Deserialize<'de> for FieldSources
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>,
Source§impl PartialEq for FieldSources
impl PartialEq for FieldSources
Source§fn eq(&self, other: &FieldSources) -> bool
fn eq(&self, other: &FieldSources) -> bool
self and other values to be equal, and is used by ==.