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

    supervisor

    Attributes

    attribute
    AgentNameMode: Literal['inline']
    attribute
    METADATA_KEY_HANDOFF_DESTINATION: str
    attribute
    OutputMode: Literal['full_history', 'last_message']
    attribute
    MODELS_NO_PARALLEL_TOOL_CALLS: set

    Functions

    function
    with_agent_name
    function
    create_handoff_back_messages
    function
    create_handoff_tool
    function
    create_supervisor
    View source on GitHub

    Mode for adding agent outputs to the message history in the multi-agent workflow

    • full_history: add the entire agent message history
    • last_message: add only the last message

    Attach formatted agent names to the messages passed to and from a language model.

    This is useful for making a message history with multiple agents more coherent.

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

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

    Create a multi-agent supervisor.