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-sdk_syncassistantsSyncAssistantsClient
    Classā—Since v0.3

    SyncAssistantsClient

    Copy
    SyncAssistantsClient(
        self,
        http: SyncHttpClient,
    )

    Constructors

    Attributes

    Methods

    View source on GitHub
    constructor
    __init__
    NameType
    httpSyncHttpClient
    attribute
    http: http
    method
    get
    method
    get_graph
    method
    get_schemas
    method
    get_subgraphs
    method
    create
    method
    update
    method
    delete
    method
    search
    method
    count
    method
    get_versions
    method
    set_latest

    Get an assistant by ID.

    Get the graph of an assistant by ID.

    Get the schemas of an assistant by ID.

    Get the schemas of an assistant by ID.

    Create a new assistant.

    Useful when graph is configurable and you want to create different assistants based on different configurations.

    Update an assistant.

    Use this to point to a different graph, update the configuration, or change the metadata of an assistant.

    Delete an assistant.

    Search for assistants.

    Count assistants matching filters.

    List all versions of an assistant.

    Change the version of an assistant.

    Client for managing assistants in LangGraph synchronously.

    This class provides methods to interact with assistants, which are versioned configurations of your graph.

    Example
    client = get_sync_client(url="http://localhost:2024")
    assistant = client.assistants.get("assistant_id_123")