pub struct LlmLimits {
pub per_execution_tokens: u64,
pub max_held_tokens: u64,
pub default_output_cap: u64,
pub max_prompt_count: u64,
pub max_prompt_bytes: u64,
}Expand description
The ceilings a dispatch is checked against.
Token ceilings and prompt bounds live in one struct deliberately: an operator raising how much a program may spend almost always means to raise how much it may send, and splitting them across two config surfaces makes that two edits with a silent failure between them.
Fields§
§per_execution_tokens: u64Tokens one execution may spend in total.
max_held_tokens: u64Tokens one execution may hold as indeterminate reserve before further dispatch is refused.
default_output_cap: u64Output tokens reserved per prompt when the model declares no
outputReserve of its own.
max_prompt_count: u64Elements in one batch slice. Enforced at the stdlib boundary.
max_prompt_bytes: u64UTF-8 bytes in a single prompt element. Enforced at the stdlib boundary.
Trait Implementations§
impl Copy for LlmLimits
impl Eq for LlmLimits
impl StructuralPartialEq for LlmLimits
Auto Trait Implementations§
impl Freeze for LlmLimits
impl RefUnwindSafe for LlmLimits
impl Send for LlmLimits
impl Sync for LlmLimits
impl Unpin for LlmLimits
impl UnsafeUnpin for LlmLimits
impl UnwindSafe for LlmLimits
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,
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
Compare self to
key and return true if they are equal.