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-sdk_syncclientSyncLangGraphClient
    Class●Since v0.3

    SyncLangGraphClient

    Copy
    SyncLangGraphClient(
        self,
        client: httpx.Client,
    )

    Constructors

    Attributes

    Methods

    View source on GitHub
    constructor
    __init__
    NameType
    clienthttpx.Client
    attribute
    http
    attribute
    assistants
    attribute
    threads
    attribute
    runs
    attribute
    crons
    attribute
    store
    method
    close

    Close the underlying HTTP client.

    Synchronous client for interacting with the LangGraph API.

    This class provides synchronous access to LangGraph API endpoints for managing assistants, threads, runs, cron jobs, and data storage.

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