pub struct ToolCommand { /* private fields */ }Expand description
Adapter that implements SessionCommand for tool execution via the queue.
Wraps a ToolExecutor call so it can be submitted to SessionLaneQueue.
Implementations§
Source§impl ToolCommand
impl ToolCommand
Sourcepub fn new(
tool_executor: Arc<ToolExecutor>,
tool_name: String,
tool_args: Value,
tool_context: ToolContext,
skill_registry: Option<Arc<SkillRegistry>>,
) -> Self
pub fn new( tool_executor: Arc<ToolExecutor>, tool_name: String, tool_args: Value, tool_context: ToolContext, skill_registry: Option<Arc<SkillRegistry>>, ) -> Self
Create a new ToolCommand
Trait Implementations§
Source§impl SessionCommand for ToolCommand
impl SessionCommand for ToolCommand
Auto Trait Implementations§
impl Freeze for ToolCommand
impl !RefUnwindSafe for ToolCommand
impl Send for ToolCommand
impl Sync for ToolCommand
impl Unpin for ToolCommand
impl UnsafeUnpin for ToolCommand
impl !UnwindSafe for ToolCommand
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