LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.prebuiltinterruptHumanInterrupt
    Class●Since v0.1Deprecated

    HumanInterrupt

    Copy
    HumanInterrupt()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    action_requestActionRequest
    configHumanInterruptConfig
    descriptionstr | None
    attribute
    action_request: ActionRequest
    attribute
    config: HumanInterruptConfig
    attribute
    description: str | None

    Represents an interrupt triggered by the graph that requires human intervention.

    This is passed to the interrupt function when execution is paused for human input.

    Example:

    # Extract a tool call from the state and create an interrupt request
    request = HumanInterrupt(
        action_request=ActionRequest(
            action="run_command",  # The action being requested
            args={"command": "ls", "args": ["-l"]}  # Arguments for the action
        ),
        config=HumanInterruptConfig(
            allow_ignore=True,    # Allow skipping this step
            allow_respond=True,   # Allow text feedback
            allow_edit=False,     # Don't allow editing
            allow_accept=True     # Allow direct acceptance
        ),
        description="Please review the command before execution"
    )
    # Send the interrupt request and get the response
    response = interrupt([request])[0]