pub struct ChatService { /* private fields */ }Implementations§
Source§impl ChatService
impl ChatService
pub fn builder(provider: Arc<dyn ModelProvider>) -> ChatServiceBuilder
pub fn new( provider: Arc<dyn ModelProvider>, store: Arc<dyn ConversationStore>, ) -> Self
pub fn with_tool_runtime(self, tool_runtime: Arc<dyn ToolRuntime>) -> Self
pub fn with_provider_operation_hooks( self, hooks: Arc<dyn ProviderOperationHooks>, ) -> Self
pub fn with_max_tool_round_trips(self, max_tool_round_trips: usize) -> Self
pub fn with_policy(self, policy: ChatPolicy) -> Self
pub async fn run_turn( &self, request: ChatTurnRequest, ) -> Result<ChatTurnResult, ChatError>
pub async fn stream_turn<'a>( &'a self, request: ChatTurnRequest, ) -> Result<ChatEventStream<'a>, ChatError>
Trait Implementations§
Source§impl Clone for ChatService
impl Clone for ChatService
Source§fn clone(&self) -> ChatService
fn clone(&self) -> ChatService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChatService
impl !RefUnwindSafe for ChatService
impl Send for ChatService
impl Sync for ChatService
impl Unpin for ChatService
impl UnsafeUnpin for ChatService
impl !UnwindSafe for ChatService
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