pub struct ModelCapabilities(/* private fields */);Expand description
Provider-neutral capabilities advertised by one model.
Implementations§
Source§impl ModelCapabilities
impl ModelCapabilities
Sourcepub const fn with_image_input(self) -> Self
pub const fn with_image_input(self) -> Self
Enables image input.
Sourcepub const fn with_reasoning(self) -> Self
pub const fn with_reasoning(self) -> Self
Enables reasoning output and options.
Sourcepub const fn with_tools(self, parallel: bool) -> Self
pub const fn with_tools(self, parallel: bool) -> Self
Enables tool calls and optionally parallel tool calls.
Sourcepub const fn with_usage_reporting(self) -> Self
pub const fn with_usage_reporting(self) -> Self
Enables normalized usage reporting.
Sourcepub const fn with_hosted_tool(self, kind: HostedToolKind) -> Self
pub const fn with_hosted_tool(self, kind: HostedToolKind) -> Self
Enables one provider-hosted tool kind for this model and endpoint.
Sourcepub const fn accepts_text(self) -> bool
pub const fn accepts_text(self) -> bool
Returns whether text input is accepted.
Sourcepub const fn accepts_images(self) -> bool
pub const fn accepts_images(self) -> bool
Returns whether image input is accepted.
Sourcepub const fn supports_reasoning(self) -> bool
pub const fn supports_reasoning(self) -> bool
Returns whether reasoning is supported.
Sourcepub const fn supports_tools(self) -> bool
pub const fn supports_tools(self) -> bool
Returns whether tool calls are supported.
Sourcepub const fn supports_parallel_tool_calls(self) -> bool
pub const fn supports_parallel_tool_calls(self) -> bool
Returns whether several tool calls may be requested in one response.
Sourcepub const fn reports_usage(self) -> bool
pub const fn reports_usage(self) -> bool
Returns whether usage is reported.
Sourcepub const fn supports_hosted_tool(self, kind: HostedToolKind) -> bool
pub const fn supports_hosted_tool(self, kind: HostedToolKind) -> bool
Returns whether the model/endpoint supports one provider-hosted tool.
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 moreimpl Copy for ModelCapabilities
Source§impl Debug for ModelCapabilities
impl Debug for ModelCapabilities
Source§impl Default for ModelCapabilities
impl Default for ModelCapabilities
impl Eq for ModelCapabilities
Source§impl PartialEq for ModelCapabilities
impl PartialEq for ModelCapabilities
impl StructuralPartialEq 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