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

    Get an assistant by ID.

    method
    get_graph

    Get the graph of an assistant by ID.

    method
    get_schemas

    Get the schemas of an assistant by ID.

    method
    get_subgraphs

    Get the schemas of an assistant by ID.

    method
    create

    Create a new assistant.

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

    method
    update

    Update an assistant.

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

    method
    delete

    Delete an assistant.

    method
    search

    Search for assistants.

    method
    count

    Count assistants matching filters.

    method
    get_versions

    List all versions of an assistant.

    method
    set_latest

    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")