pub struct SessionLimitPredictionRequest {
pub client_type: Option<SessionLimitPredictionClientType>,
pub model_id: Option<String>,
}Expand description
Parameters for predicting an AI-credit session limit. Omitting modelId uses the session’s currently selected model.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§client_type: Option<SessionLimitPredictionClientType>Client type to size for. Defaults to cli-interactive.
model_id: Option<String>Optional model identifier override. If omitted, the session’s current model is used.
Trait Implementations§
Source§impl Clone for SessionLimitPredictionRequest
impl Clone for SessionLimitPredictionRequest
Source§fn clone(&self) -> SessionLimitPredictionRequest
fn clone(&self) -> SessionLimitPredictionRequest
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 Default for SessionLimitPredictionRequest
impl Default for SessionLimitPredictionRequest
Source§fn default() -> SessionLimitPredictionRequest
fn default() -> SessionLimitPredictionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionLimitPredictionRequest
impl<'de> Deserialize<'de> for SessionLimitPredictionRequest
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 SessionLimitPredictionRequest
impl RefUnwindSafe for SessionLimitPredictionRequest
impl Send for SessionLimitPredictionRequest
impl Sync for SessionLimitPredictionRequest
impl Unpin for SessionLimitPredictionRequest
impl UnsafeUnpin for SessionLimitPredictionRequest
impl UnwindSafe for SessionLimitPredictionRequest
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