pub struct BackendCapability {
pub token_cap: bool,
pub temperature: bool,
pub thinking_switch: bool,
pub intensity: bool,
pub fast: bool,
}Expand description
What one backend protocol can express, independent of any model. These are wire facts owned by the adapter, not catalog facts: a protocol that cannot carry a field makes the field unusable even when the model supports it.
Fields§
§token_cap: boolAccepts a per-response output token cap.
temperature: boolAccepts a sampling temperature.
thinking_switch: boolCan encode the thinking switch, and therefore can turn thinking off.
intensity: boolCan encode a reasoning intensity.
fast: boolCan request the fast service tier.
Trait Implementations§
Source§impl Clone for BackendCapability
impl Clone for BackendCapability
Source§fn clone(&self) -> BackendCapability
fn clone(&self) -> BackendCapability
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 BackendCapability
Source§impl Debug for BackendCapability
impl Debug for BackendCapability
impl Eq for BackendCapability
Source§impl PartialEq for BackendCapability
impl PartialEq for BackendCapability
impl StructuralPartialEq for BackendCapability
Auto Trait Implementations§
impl Freeze for BackendCapability
impl RefUnwindSafe for BackendCapability
impl Send for BackendCapability
impl Sync for BackendCapability
impl Unpin for BackendCapability
impl UnsafeUnpin for BackendCapability
impl UnwindSafe for BackendCapability
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