pub struct SharedExecutorFn { /* private fields */ }Expand description
A clonable, thread-safe tool executor function wrapper. Uses an async channel to dispatch tool execution.
Implementations§
Sourcepub fn new<F, Fut>(executor: F) -> (Self, JoinHandle<()>)
pub fn new<F, Fut>(executor: F) -> (Self, JoinHandle<()>)
Create a new executor and spawn the dispatcher task. Returns the executor and the dispatcher join handle.
pub async fn call( &self, name: String, args: Value, tool_call_id: String, ) -> ToolResult
Trait Implementations§
Auto Trait Implementations§
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