langchain.js
    Preparing search index...

    Interface HumanInTheLoopRequest

    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]
    interface HumanInTheLoopRequest {
        actionRequest: ActionRequest;
        config: HumanInTheLoopConfig;
        description?: string;
    }
    Index

    Properties

    actionRequest: ActionRequest

    The agent-requested tool action to be reviewed.

    config: HumanInTheLoopConfig

    Which reviewer responses are allowed (accept/edit/respond).

    description?: string

    Optional human-facing description shown in the approval prompt.