pub struct RemoteLLMClient { /* private fields */ }Implementations§
Source§impl RemoteLLMClient
impl RemoteLLMClient
pub async fn chat( &self, messages: Vec<ChatMessage>, tools: Option<Vec<ToolDefinition>>, ) -> Result<ChatMessage>
pub async fn chat_stream<F>( &self, messages: Vec<ChatMessage>, tools: Option<Vec<ToolDefinition>>, on_chunk: F, ) -> Result<ChatMessage>
Trait Implementations§
Source§impl LLMProvider for RemoteLLMClient
impl LLMProvider for RemoteLLMClient
fn generate<'life0, 'async_trait>(
&'life0 self,
request: LLMRequest,
) -> Pin<Box<dyn Future<Output = Result<LLMResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for RemoteLLMClient
impl !RefUnwindSafe for RemoteLLMClient
impl Send for RemoteLLMClient
impl Sync for RemoteLLMClient
impl Unpin for RemoteLLMClient
impl !UnwindSafe for RemoteLLMClient
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