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