pub struct SessionModelInfo {
pub id: String,
pub provider: String,
pub name: String,
pub max_context_window: Option<i64>,
pub max_output_tokens: Option<i64>,
pub max_prompt_tokens: Option<i64>,
pub supports_vision: Option<bool>,
pub policy_state: Option<PolicyState>,
pub config_schema: Option<ConfigSchema>,
pub meta: Option<JsonObject>,
}Fields§
§id: StringModel identifier
provider: StringProvider this model belongs to
name: StringHuman-readable model name
max_context_window: Option<i64>Maximum context window size
max_output_tokens: Option<i64>Maximum number of output tokens the model can generate
max_prompt_tokens: Option<i64>Maximum number of prompt (input) tokens the model accepts
supports_vision: Option<bool>Whether the model supports vision
policy_state: Option<PolicyState>Policy configuration state
config_schema: Option<ConfigSchema>Configuration schema describing model-specific options (e.g. thinking level). Clients present this as a form and pass the resolved values in {@link ModelSelection.config} when creating or changing sessions.
meta: Option<JsonObject>Additional provider-specific metadata for this model.
Clients MAY look for well-known keys here to provide enhanced UI.
For example, a pricing key may carry model pricing metadata.
Trait Implementations§
Source§impl Clone for SessionModelInfo
impl Clone for SessionModelInfo
Source§fn clone(&self) -> SessionModelInfo
fn clone(&self) -> SessionModelInfo
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 SessionModelInfo
impl Debug for SessionModelInfo
Source§impl<'de> Deserialize<'de> for SessionModelInfo
impl<'de> Deserialize<'de> for SessionModelInfo
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
Source§impl PartialEq for SessionModelInfo
impl PartialEq for SessionModelInfo
Source§fn eq(&self, other: &SessionModelInfo) -> bool
fn eq(&self, other: &SessionModelInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionModelInfo
impl Serialize for SessionModelInfo
impl StructuralPartialEq for SessionModelInfo
Auto Trait Implementations§
impl Freeze for SessionModelInfo
impl RefUnwindSafe for SessionModelInfo
impl Send for SessionModelInfo
impl Sync for SessionModelInfo
impl Unpin for SessionModelInfo
impl UnsafeUnpin for SessionModelInfo
impl UnwindSafe for SessionModelInfo
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