approval_gate or user_input node, it pauses and waits for a human decision. The approve and respond commands let you record that decision from the terminal. After either command, re-run the DAG with --run-id to resume execution from where it stopped.
- approve
- respond
agentgraph approve
Useapprove to record a human decision on a paused approval_gate node — either approving it so the run continues, or rejecting it to mark the run as failed.Arguments and flags
string
required
The run ID that contains the pending approval gate. Find it with
agentgraph list --status paused.string
required
The ID of the
approval_gate node to act on. The node must be in awaiting_approval status.string
default:"runs"
Runs directory. Must match the
--runs-dir used when the DAG was originally run.boolean
Reject the gate instead of approving it. The node is marked
failed and the run does not continue past this point.string
Optional reviewer comment stored alongside the decision. Visible in the artifact and in audit logs.
string
Override the approver identity written to the artifact. Defaults to the value of the
$USER environment variable.Examples
Approve/reject flow
1
Run the DAG
approval_gate node and prints a summary showing which gates are waiting.2
Find the paused run
3
Record your decision
4
Resume the run