Module tool_confirmation

Module tool_confirmation 

Source
Expand description

Async pause/resume support for Restricted-mode tool confirmations.

The agent pipeline can emit a StreamChunk::ToolConfirmationRequired event and then pause tool execution until the UI responds (approve/deny).

This module provides a small, process-wide confirmation registry that:

  • registers pending confirmations by id
  • lets the UI resolve them via Tauri commands
  • allows the pipeline to await the decision

Structs§

PendingToolConfirmation
A pending tool confirmation awaiting a user decision.
TOOL_CONFIRMATIONS
Global confirmation manager used by the agent pipeline and UI commands.
ToolConfirmationManager
A registry for in-flight tool confirmations.

Enums§

ToolConfirmationDecision
A scoped user decision for a tool confirmation request.