pub struct Capabilities {
pub supports_citations: bool,
pub supports_seed: bool,
pub supports_temperature_zero: bool,
pub supports_streaming: bool,
}Expand description
Per-provider capability bag. Each flag is independently testable.
Fields§
§supports_citations: boolProvider can emit [^N] markers reliably enough to honor the
strict citation contract (#395).
supports_seed: boolProvider honors a seed parameter, enabling reproducible
completions when paired with temperature=0 (#400).
supports_temperature_zero: boolProvider accepts temperature=0. Endpoints that don’t take a
temperature at all (e.g. embedded embeddings) report false.
supports_streaming: boolProvider exposes a streaming response (SSE / chunked / ws). Set
to false for synchronous inference endpoints.
Implementations§
Source§impl Capabilities
impl Capabilities
Sourcepub const fn conservative() -> Capabilities
pub const fn conservative() -> Capabilities
Defaults for a provider the registry has no row for. Picked to match the AC: “Unknown provider returns conservative defaults (no citation support, no seed)”.
Sourcepub fn for_provider(token: &str) -> Capabilities
pub fn for_provider(token: &str) -> Capabilities
Built-in capability row for a canonical provider token (the
AiProvider::token() form: "openai", "anthropic", …).
Unknown tokens get Capabilities::conservative.
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl PartialEq for Capabilities
impl PartialEq for Capabilities
Source§fn eq(&self, other: &Capabilities) -> bool
fn eq(&self, other: &Capabilities) -> bool
self and other values to be equal, and is used by ==.impl Copy for Capabilities
impl Eq for Capabilities
impl StructuralPartialEq for Capabilities
Auto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request