pub struct ModelEntry {
pub model_id: String,
pub display_name: String,
pub context_window: usize,
pub max_output_tokens: Option<u64>,
pub supports_image_input: bool,
}Expand description
A model offered by a ModelProvider.
Fields§
§model_id: StringProvider-scoped identifier for this model. Must be unique within the provider, but need not match the upstream API’s model id (providers may expose multiple configurations of the same upstream model).
display_name: StringHuman-readable name shown in pickers.
context_window: usizeContext window size in tokens (used for compaction thresholds).
max_output_tokens: Option<u64>Maximum number of output tokens the model can generate per request.
None falls back to the provider’s default.
supports_image_input: boolWhether the model accepts image content in its input (e.g. image
tool results). When false, the runtime replaces image content with
a text placeholder before invoking the model.
Trait Implementations§
Source§impl Clone for ModelEntry
impl Clone for ModelEntry
Source§impl Debug for ModelEntry
impl Debug for ModelEntry
Source§impl<'de> Deserialize<'de> for ModelEntry
impl<'de> Deserialize<'de> for ModelEntry
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 ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnsafeUnpin for ModelEntry
impl UnwindSafe for ModelEntry
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