Skip to contents

human_gate() is a marker used in two places. As a wrapper, human_gate(tool) returns the tool with its approval requirement set, equivalent to building it with agent_tool(..., requires_approval = TRUE). As a workflow node (Stage 4), it pauses a run for sign-off. In an agent's tool list, any approval-required tool makes the agent run a pausable tool loop.

Usage

human_gate(x, prompt = NULL)

Arguments

x

A tool (an llmr_tool / agent_tool()) to gate, or a name (label) when used as a standalone gate marker.

prompt

Optional text shown to the human reviewer.

Value

The gated tool (when x is a tool), or a gate marker object.