Represents an interrupt triggered by the graph that requires human intervention to approve, edit, or respond to an agent-requested tool action.
const hitlRequest: HumanInTheLoopRequest = { actionRequest: { action: "Approve XYZ action", args: { ... } }, config: { allowAccept: true, allowEdit: true, allowRespond: true }, description: "Please review the command before execution"};response = interrupt([request])[0] Copy
const hitlRequest: HumanInTheLoopRequest = { actionRequest: { action: "Approve XYZ action", args: { ... } }, config: { allowAccept: true, allowEdit: true, allowRespond: true }, description: "Please review the command before execution"};response = interrupt([request])[0]
The agent-requested tool action to be reviewed.
Which reviewer responses are allowed (accept/edit/respond).
Optional
Optional human-facing description shown in the approval prompt.
Represents an interrupt triggered by the graph that requires human intervention to approve, edit, or respond to an agent-requested tool action.
Example