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_syncassistants
    Module●Since v0.3

    assistants

    Synchronous client for managing assistants in LangGraph.

    Attributes

    Classes

    Type Aliases

    View source on GitHub
    attribute
    AssistantSelectField: Literal['assistant_id', 'graph_id', 'name', 'description', 'config', 'context', 'created_at', 'updated_at', 'metadata', 'version']
    attribute
    AssistantSortBy: Literal['assistant_id', 'graph_id', 'name', 'created_at', 'updated_at']
    attribute
    OnConflictBehavior: Literal['raise', 'do_nothing']
    attribute
    SortOrder: Literal['asc', 'desc']
    attribute
    Subgraphs: dict[str, GraphSchema]
    class
    SyncHttpClient
    class
    Assistant
    class
    AssistantsSearchResponse
    class
    AssistantVersion
    class
    Config
    class
    GraphSchema
    class
    SyncAssistantsClient
    typeAlias
    Context: TypeAlias
    typeAlias
    Json: dict[str, Any] | None
    typeAlias
    QueryParamTypes: Mapping[str, PrimitiveData | Sequence[PrimitiveData]] | list[tuple[str, PrimitiveData]] | tuple[tuple[str, PrimitiveData], ...] | str | bytes

    The field to sort by.

    Specifies behavior on conflict:

    • "raise": Raise an exception when a conflict occurs.
    • "do_nothing": Ignore conflicts and proceed.

    The order to sort by.

    Handle synchronous requests to the LangGraph API.

    Provides error messaging and content handling enhancements above the underlying httpx client, mirroring the interface of HttpClient but for sync usage.

    Represents an assistant with additional properties.

    Paginated response for assistant search results.

    Represents a specific version of an assistant.

    Configuration options for a call.

    Defines the structure and properties of a graph.

    Represents a JSON-like structure, which can be None or a dictionary with string keys and any values.

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