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

    swarm

    Attributes

    attribute
    StateSchema
    attribute
    StateSchemaType: type[StateSchema]

    Functions

    function
    get_handoff_destinations
    function
    add_active_agent_router
    function
    create_swarm

    Classes

    class
    SwarmState
    View source on GitHub

    Get a list of destinations from agent's handoff tools.

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

    Create a multi-agent swarm.

    State schema for the multi-agent swarm.