langchain.js
    Preparing search index...

    The response provided by a human to an interrupt, which is returned when graph execution resumes.

    Use HumanResponse has been moved to langchain package. Update your import to import { HumanResponse } from "langchain/prebuilt/interrupt";

    type HumanResponse = {
        args: null | string | ActionRequest;
        type: "accept" | "ignore" | "response" | "edit";
    }
    Index

    Properties

    Properties

    args: null | string | ActionRequest

    The response payload:

    • null: For ignore/accept actions
    • string: For text responses
    • ActionRequest: For edit actions with updated content
    type: "accept" | "ignore" | "response" | "edit"

    The type of response:

    • "accept": Approves the current state without changes
    • "ignore": Skips/ignores the current step
    • "response": Provides text feedback or instructions
    • "edit": Modifies the current state/content