pub struct CatalogModel {Show 15 fields
pub id: String,
pub display_name: Option<String>,
pub short_name: Option<String>,
pub object: String,
pub owned_by: Option<String>,
pub context_window: Option<u64>,
pub max_context_tokens: Option<u64>,
pub capabilities: Option<CatalogCapabilities>,
pub max_completion_tokens: Option<u64>,
pub reasoning: Option<ModelReasoning>,
pub enabled: Option<bool>,
pub deprecated: Option<bool>,
pub available_in_agent: Option<bool>,
pub group: Option<String>,
pub badges: Vec<String>,
}Expand description
A catalog entry: model identity plus context and capability metadata.
Fields§
§id: String§display_name: Option<String>§short_name: Option<String>§object: String§owned_by: Option<String>§context_window: Option<u64>§max_context_tokens: Option<u64>§capabilities: Option<CatalogCapabilities>§max_completion_tokens: Option<u64>Most output tokens a request can receive; see Model::max_completion_tokens.
reasoning: Option<ModelReasoning>How the model exposes reasoning effort; absent for models that never reason.
enabled: Option<bool>false while the server lists a model it does not serve.
deprecated: Option<bool>§available_in_agent: Option<bool>false for a model Maple Work does not offer for new tasks; absent on
servers that predate it.
group: Option<String>The id of the CatalogGroup the model lists under; absent for a
model without one and on servers that predate groups.
badges: Vec<String>Marks to show beside the model’s name, such as Popular. The strings
are stable keys a client may translate.
Trait Implementations§
Source§impl Clone for CatalogModel
impl Clone for CatalogModel
Source§impl Debug for CatalogModel
impl Debug for CatalogModel
Source§impl<'de> Deserialize<'de> for CatalogModel
impl<'de> Deserialize<'de> for CatalogModel
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 Forget for CatalogModel
impl Freeze for CatalogModel
impl Move for CatalogModel
impl RefUnwindSafe for CatalogModel
impl Send for CatalogModel
impl Sync for CatalogModel
impl Unpin for CatalogModel
impl UnsafeUnpin for CatalogModel
impl UnwindSafe for CatalogModel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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