pub struct GeminiChatModel { /* private fields */ }Implementations§
Source§impl GeminiChatModel
impl GeminiChatModel
pub fn new(config: GeminiConfig, backend: Arc<dyn ProviderBackend>) -> Self
Trait Implementations§
Source§impl ChatModel for GeminiChatModel
impl ChatModel for GeminiChatModel
fn chat<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, SynapseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_chat(&self, request: ChatRequest) -> ChatStream<'_>
Auto Trait Implementations§
impl Freeze for GeminiChatModel
impl !RefUnwindSafe for GeminiChatModel
impl Send for GeminiChatModel
impl Sync for GeminiChatModel
impl Unpin for GeminiChatModel
impl UnsafeUnpin for GeminiChatModel
impl !UnwindSafe for GeminiChatModel
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