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