Skip to main content

FieldSources

Struct FieldSources 

Source
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: ParamSource

Where the resolved temperature came from.

§top_p: ParamSource

Where the resolved top_p came from.

§top_k: ParamSource

Where the resolved top_k came from.

§presence_penalty: ParamSource

Where the resolved presence_penalty came from.

§repeat_penalty: ParamSource

Where the resolved repeat_penalty came from.

§min_p: ParamSource

Where the resolved min_p came from.

§frequency_penalty: ParamSource

Where the resolved frequency_penalty came from.

§dynatemp_range: ParamSource

Where the resolved dynatemp_range came from.

§dynatemp_exponent: ParamSource

Where the resolved dynatemp_exponent came from.

§top_n_sigma: ParamSource

Where the resolved top_n_sigma came from.

§dry_multiplier: ParamSource

Where the resolved dry_multiplier came from.

§dry_base: ParamSource

Where the resolved dry_base came from.

§dry_allowed_length: ParamSource

Where the resolved dry_allowed_length came from.

§dry_penalty_last_n: ParamSource

Where the resolved dry_penalty_last_n came from.

§max_tokens: ParamSource

Where the resolved max_tokens came from.

§reasoning_effort: ParamSource

Where 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: ParamSource

Where the resolved reasoning_budget_tokens came from. Equally unobservable — see reasoning_effort.

Implementations§

Source§

impl FieldSources

Source

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.

Source

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

Source§

fn clone(&self) -> FieldSources

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FieldSources

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FieldSources

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for FieldSources

Source§

fn eq(&self, other: &FieldSources) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for FieldSources

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for FieldSources

Source§

impl Eq for FieldSources

Source§

impl StructuralPartialEq for FieldSources

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,