pub struct SerialToolExecutor { /* private fields */ }Expand description
Executes tool calls sequentially, looking up tools in a ToolRegistry.
Implementations§
Source§impl SerialToolExecutor
impl SerialToolExecutor
pub fn new(registry: ToolRegistry) -> Self
pub async fn execute( &self, tool_name: &str, args: Value, ) -> Result<Value, SynapticError>
Trait Implementations§
Source§impl Clone for SerialToolExecutor
impl Clone for SerialToolExecutor
Source§fn clone(&self) -> SerialToolExecutor
fn clone(&self) -> SerialToolExecutor
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 SerialToolExecutor
impl RefUnwindSafe for SerialToolExecutor
impl Send for SerialToolExecutor
impl Sync for SerialToolExecutor
impl Unpin for SerialToolExecutor
impl UnsafeUnpin for SerialToolExecutor
impl UnwindSafe for SerialToolExecutor
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