pub struct LiveModelMetadata {
pub context_window: Option<u64>,
pub max_completion_tokens: Option<u64>,
pub recommended_completion_tokens: Option<u64>,
}Expand description
Live provider metadata translated into the neutral limits shape at the adapter boundary.
Construct this from a provider’s ModelInfo/metadata before calling ModelContextLimits::resolve.
Fields are Option so adapters can report partial metadata.
A None context window or completion budget falls through to the next precedence source.
Fields§
§context_window: Option<u64>Total model context window in tokens, when reported by the provider.
max_completion_tokens: Option<u64>Maximum completion size in tokens, when reported by the provider.
recommended_completion_tokens: Option<u64>Recommended completion size in tokens, when reported by the provider.
Implementations§
Trait Implementations§
Source§impl Clone for LiveModelMetadata
impl Clone for LiveModelMetadata
Source§fn clone(&self) -> LiveModelMetadata
fn clone(&self) -> LiveModelMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LiveModelMetadata
impl Debug for LiveModelMetadata
Source§impl Default for LiveModelMetadata
impl Default for LiveModelMetadata
Source§fn default() -> LiveModelMetadata
fn default() -> LiveModelMetadata
Returns the “default value” for a type. Read more
impl Eq for LiveModelMetadata
Source§impl PartialEq for LiveModelMetadata
impl PartialEq for LiveModelMetadata
impl StructuralPartialEq for LiveModelMetadata
Auto Trait Implementations§
impl Freeze for LiveModelMetadata
impl RefUnwindSafe for LiveModelMetadata
impl Send for LiveModelMetadata
impl Sync for LiveModelMetadata
impl Unpin for LiveModelMetadata
impl UnsafeUnpin for LiveModelMetadata
impl UnwindSafe for LiveModelMetadata
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