ExAgent. Continuation. ApprovalRequest
(ExAgent v3.0.0)
View Source
A pending tool decision read from a trusted scoped Store by
ExAgent.Continuation.pending/2.
Stability — Stable.
Present :tool_name and :args only to an authorized reviewer. Keep the
request server-side and pass that same value to ExAgent.Continuation.decide/4
when submitting or retrying a decision. Its identity is not an authorization.
The candidate :call_ref correlates this invocation with tool events. :call_id is the
provider ID. :definition refers to the requesting agent by
%{"id", "version"}. :decisions lists the accepted actions.
:approve keeps the arguments, :edit approves replacements and :deny
rejects the call. In a guarded root agent continuation an approval still
has to pass the tool-input guard before dispatch. In Composition and Flow a Plan
checklist offers edits when the node has no tool-input guardrail. Other
structural calls accept [:approve, :deny].
The candidate :permission_rule identifies the winning permission rule when a rule
requested the review. The default action, a tool's own approval requirement
and requests written before rule attribution can leave it nil.
The candidate :delegation_path lists the edges from the root to the
requesting run. It is empty for a root request.
Ordinary inspection omits :args. An authorized review interface can read
them through request.args. Run histories and stored records can also
contain the original arguments.
Summary
Types
@type decision_kind() :: :approve | :edit | :deny
@type t() :: %ExAgent.Continuation.ApprovalRequest{ approval_id: String.t(), args: map(), call_id: String.t(), call_ref: String.t() | nil, decisions: [decision_kind()], definition: %{required(String.t()) => String.t()}, delegation_path: ExAgent.Continuation.delegation_path(), expires_at: integer() | nil, id: String.t(), namespace: String.t(), operation_id: String.t(), payload_hash: String.t(), permission_rule: String.t() | nil, record_id: String.t(), revision: pos_integer(), run_id: String.t(), tool_name: String.t() }