pub struct ToolLoopRunner { /* private fields */ }Implementations§
Source§impl ToolLoopRunner
impl ToolLoopRunner
pub fn new(runtime: Arc<ToolRuntime>) -> Self
pub fn from_registry(registry: ToolRegistry) -> Self
pub fn from_registry_with_receipt_sink( registry: ToolRegistry, receipt_sink: Arc<dyn ToolReceiptSink>, ) -> Self
pub fn runtime(&self) -> &Arc<ToolRuntime> ⓘ
pub async fn run_openai_responses( &self, ctx: &ExecCtx, request: ToolLoopRequest, ) -> Result<ToolLoopResponse>
pub async fn run_ollama( &self, ctx: &ExecCtx, request: ToolLoopRequest, ) -> Result<ToolLoopResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for ToolLoopRunner
impl !UnwindSafe for ToolLoopRunner
impl Freeze for ToolLoopRunner
impl Send for ToolLoopRunner
impl Sync for ToolLoopRunner
impl Unpin for ToolLoopRunner
impl UnsafeUnpin for ToolLoopRunner
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