pub struct MetadataContextInfoRequest {
pub output_token_limit: i64,
pub prompt_token_limit: i64,
pub selected_model: Option<String>,
}Expand description
Model identifier and token limits used to compute the context-info breakdown.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§output_token_limit: i64Maximum output tokens allowed by the target model. Pass 0 if unknown.
prompt_token_limit: i64Maximum prompt tokens allowed by the target model. Pass 0 to use the runtime default.
selected_model: Option<String>Model identifier used for tokenization. Omit to use the session default. Used both for token counting and to compute display values.
Trait Implementations§
Source§impl Clone for MetadataContextInfoRequest
impl Clone for MetadataContextInfoRequest
Source§fn clone(&self) -> MetadataContextInfoRequest
fn clone(&self) -> MetadataContextInfoRequest
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 MetadataContextInfoRequest
impl Debug for MetadataContextInfoRequest
Source§impl Default for MetadataContextInfoRequest
impl Default for MetadataContextInfoRequest
Source§fn default() -> MetadataContextInfoRequest
fn default() -> MetadataContextInfoRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataContextInfoRequest
impl<'de> Deserialize<'de> for MetadataContextInfoRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetadataContextInfoRequest
impl RefUnwindSafe for MetadataContextInfoRequest
impl Send for MetadataContextInfoRequest
impl Sync for MetadataContextInfoRequest
impl Unpin for MetadataContextInfoRequest
impl UnsafeUnpin for MetadataContextInfoRequest
impl UnwindSafe for MetadataContextInfoRequest
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