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-supervisorhandoff
    Module●Since v0.0

    handoff

    Attributes

    attribute
    WHITESPACE_RE
    attribute
    METADATA_KEY_HANDOFF_DESTINATION: str
    attribute
    METADATA_KEY_IS_HANDOFF_BACK: str

    Functions

    function
    create_handoff_tool
    function
    create_handoff_back_messages
    function
    create_forward_message_tool
    View source on GitHub

    Create a tool that can handoff control to the requested agent.

    Create a pair of (AIMessage, ToolMessage) to add to the message history when returning control to the supervisor.

    Create a tool the supervisor can use to forward a worker message by name.

    This helps avoid information loss any time the supervisor rewrites a worker query to the user and also can save some tokens.