pub struct BedrockProvider;Expand description
Unit struct — no state. All logic in the StreamProvider impl.
Trait Implementations§
Source§impl StreamProvider for BedrockProvider
impl StreamProvider for BedrockProvider
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 BedrockProvider
impl RefUnwindSafe for BedrockProvider
impl Send for BedrockProvider
impl Sync for BedrockProvider
impl Unpin for BedrockProvider
impl UnsafeUnpin for BedrockProvider
impl UnwindSafe for BedrockProvider
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