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
Auto 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