pub struct QueryEngine { /* private fields */ }Implementations§
Source§impl QueryEngine
impl QueryEngine
pub fn new( provider: Arc<dyn Provider>, registry: Arc<ToolRegistry>, permission: Arc<dyn PermissionChecker>, mode: Arc<AtomicU8>, hooks: HooksConfig, ) -> Self
pub fn with_max_turns(self, n: usize) -> Self
pub fn mode_flag(&self) -> Arc<AtomicU8>
pub fn undo_stack(&self) -> Arc<UndoStack>
pub async fn run<F>( &self, conversation: Conversation, on_event: F, ) -> AppResult<Conversation>
Auto Trait Implementations§
impl Freeze for QueryEngine
impl !RefUnwindSafe for QueryEngine
impl Send for QueryEngine
impl Sync for QueryEngine
impl Unpin for QueryEngine
impl UnsafeUnpin for QueryEngine
impl !UnwindSafe for QueryEngine
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