pub struct ClientSideToolHook;Expand description
Hook that handles client-side tool calls from the ReasonResult.
When ActAtom receives tool calls that include client-side tools,
those tools are NOT executed (they’re filtered out before execution).
Instead, this hook emits tool.call_requested events so the client
can execute them and return results.
This hook reads client-side tool calls stored on ActResult by ActAtom’s partitioning logic, then emits the appropriate event.
Trait Implementations§
Source§impl PostActHook for ClientSideToolHook
impl PostActHook for ClientSideToolHook
Source§fn on_completed(
&self,
result: &mut ActResult,
_tool_definitions: &[ToolDefinition],
) -> Vec<PostActAction>
fn on_completed( &self, result: &mut ActResult, _tool_definitions: &[ToolDefinition], ) -> Vec<PostActAction>
Inspect completed results, optionally mutate the result and return actions.
Auto Trait Implementations§
impl Freeze for ClientSideToolHook
impl RefUnwindSafe for ClientSideToolHook
impl Send for ClientSideToolHook
impl Sync for ClientSideToolHook
impl Unpin for ClientSideToolHook
impl UnsafeUnpin for ClientSideToolHook
impl UnwindSafe for ClientSideToolHook
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