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_syncassistantsSyncAssistantsClientcount
    Methodā—Since v0.3

    count

    Copy
    count(
      self,
      *,
      metadata: Json = None,
      graph_id: str | None = 
    View source on GitHub
    None
    ,
    name
    :
    str
    |
    None
    =
    None
    ,
    headers
    :
    Mapping
    [
    str
    ,
    str
    ]
    |
    None
    =
    None
    ,
    params
    :
    QueryParamTypes
    |
    None
    =
    None
    )
    ->
    int

    Parameters

    NameTypeDescription
    metadataJson
    Default:None

    Metadata to filter by. Exact match for each key/value.

    graph_idstr | None
    Default:None

    Optional graph id to filter by.

    namestr | None
    Default:None
    headersMapping[str, str] | None
    Default:None
    paramsQueryParamTypes | None
    Default:None

    Count assistants matching filters.

    Optional name to filter by. The filtering logic will match assistants where 'name' is a substring (case insensitive) of the assistant name.

    Optional custom headers to include with the request.

    Optional query parameters to include with the request.