LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    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
    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

    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.

    Copy
    HumanInterrupt()

    Bases

    TypedDict

    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]

    Constructors

    constructor
    __init__
    NameType
    action_requestActionRequest
    configHumanInterruptConfig
    descriptionstr | None

    Attributes

    attribute
    action_request: ActionRequest
    attribute
    config: HumanInterruptConfig
    attribute
    description: str | None
    View source on GitHub