Documentation
¶
Overview ¶
Package approval is the human-in-the-loop tool-approval seam: a turn that hits a not-pre-authorized tool emits an approval_request and blocks on the Broker until an inbound approve/deny control resolves it (or the turn's context/timeout fires). It mirrors turncancel.Canceller — an inbound control reaching an in-flight turn — and is shared between the transport (which calls Resolve on inbound) and the turn runner (which calls Await).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Awaiter ¶
Awaiter is the turn-facing surface: block until a decision for (taskID, requestID) arrives. The runner wraps the call in the approval timeout.
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker correlates pending approval requests with inbound decisions, keyed by (taskID, requestID). Safe for concurrent use.