pub struct ModelCapabilities {
pub max_context_tokens: u32,
pub supports_json_mode: bool,
pub supports_tools: bool,
pub supports_streaming: bool,
}Expand description
Machine-readable capability metadata for a concrete model.
Fields§
§max_context_tokens: u32Maximum context window in tokens.
supports_json_mode: boolWhether the model supports structured JSON output.
supports_tools: boolWhether the model supports tool/function calling.
supports_streaming: boolWhether the model supports streaming responses.
Trait Implementations§
Source§impl Clone for ModelCapabilities
impl Clone for ModelCapabilities
Source§fn clone(&self) -> ModelCapabilities
fn clone(&self) -> ModelCapabilities
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 moreAuto Trait Implementations§
impl Freeze for ModelCapabilities
impl RefUnwindSafe for ModelCapabilities
impl Send for ModelCapabilities
impl Sync for ModelCapabilities
impl Unpin for ModelCapabilities
impl UnsafeUnpin for ModelCapabilities
impl UnwindSafe for ModelCapabilities
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