pub struct AnthropicProvider;Expand description
Unit struct — no fields, no state. All logic is in the StreamProvider impl.
Trait Implementations§
Source§impl StreamProvider for AnthropicProvider
impl StreamProvider for AnthropicProvider
Source§fn provider_id(&self) -> &str
fn provider_id(&self) -> &str
Short, stable identifier for this provider type. Read more
Source§fn stream<'life0, 'async_trait>(
&'life0 self,
config: StreamConfig,
tx: UnboundedSender<StreamEvent>,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<Message, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream<'life0, 'async_trait>(
&'life0 self,
config: StreamConfig,
tx: UnboundedSender<StreamEvent>,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<Message, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream a completion. Send events through
tx in real time.
Returns the final, fully-assembled assistant Message after the stream ends. Read moreAuto Trait Implementations§
impl Freeze for AnthropicProvider
impl RefUnwindSafe for AnthropicProvider
impl Send for AnthropicProvider
impl Sync for AnthropicProvider
impl Unpin for AnthropicProvider
impl UnsafeUnpin for AnthropicProvider
impl UnwindSafe for AnthropicProvider
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