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

    langgraph_swarm

    Functions

    function
    create_handoff_tool
    function
    add_active_agent_router
    function
    create_swarm

    Classes

    class
    SwarmState

    Modules

    View source on GitHub
    module
    handoff
    module
    swarm

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

    Add a router to the currently active agent to the StateGraph.

    Create a multi-agent swarm.

    State schema for the multi-agent swarm.