Skip to main content

Module pending_tool_approvals

Module pending_tool_approvals 

Source
Expand description

Pending tool approvals — runtime capability escalation via user consent.

When a GatedTool denies a tool call due to missing CSpace capabilities, it can register a pending approval here and block on a oneshot. The frontend renders an approval card; the user’s decision resolves the oneshot.

Pattern: identical to PendingQuestionnaires (RFC-016).

Structs§

PendingToolApprovals
Thread-safe registry of in-flight tool approval requests.

Enums§

ToolApprovalResult
Result of a tool approval request.