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
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