pub struct ResolvedModelLimits {
pub max_output_tokens: u32,
pub max_output_tokens_source: LimitSource,
pub context_window: Option<u32>,
pub context_window_source: LimitSource,
pub max_input_tokens: Option<u32>,
pub max_input_tokens_source: LimitSource,
pub input_budget: Option<u32>,
pub input_budget_basis: BudgetBasis,
}Expand description
One driver choice’s output cap, context window, input ceiling and input budget in force, and
where each came from. The model_limits object of session_start and of each
inference_choices element.
Fields§
§max_output_tokens: u32The max_tokens every agent-loop call under this choice sends, unless a controller has
changed inference.max_tokens.
max_output_tokens_source: LimitSource§context_window: Option<u32>The window the input budget is cut from; None when neither the manifest nor the driver
gives one.
context_window_source: LimitSource§max_input_tokens: Option<u32>The most input tokens the driver says the provider accepts for the model.
max_input_tokens_source: LimitSourceLimitSource::Driver when the table entry declares one, else LimitSource::None.
input_budget: Option<u32>Self::input_budget_for max_output_tokens: what compaction and the seed budget
measure against until a controller changes the cap. None with no window.
input_budget_basis: BudgetBasisImplementations§
Source§impl ResolvedModelLimits
impl ResolvedModelLimits
Sourcepub fn input_budget_for(&self, cap: u32) -> Option<InputBudget>
pub fn input_budget_for(&self, cap: u32) -> Option<InputBudget>
The input budget of a call under this choice that sends cap as its output cap; None
with no window.
Trait Implementations§
Source§impl Clone for ResolvedModelLimits
impl Clone for ResolvedModelLimits
impl Copy for ResolvedModelLimits
Source§impl Debug for ResolvedModelLimits
impl Debug for ResolvedModelLimits
impl Eq for ResolvedModelLimits
Source§impl PartialEq for ResolvedModelLimits
impl PartialEq for ResolvedModelLimits
Source§impl Serialize for ResolvedModelLimits
impl Serialize for ResolvedModelLimits
impl StructuralPartialEq for ResolvedModelLimits
Auto Trait Implementations§
impl Freeze for ResolvedModelLimits
impl RefUnwindSafe for ResolvedModelLimits
impl Send for ResolvedModelLimits
impl Sync for ResolvedModelLimits
impl Unpin for ResolvedModelLimits
impl UnsafeUnpin for ResolvedModelLimits
impl UnwindSafe for ResolvedModelLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
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<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