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

    count

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

    Parameters

    NameTypeDescription
    assistant_idstr | None
    Default:None

    Assistant ID to filter by.

    thread_idstr | None
    Default:None

    Thread ID to filter by.

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

    Count cron jobs matching filters.

    Metadata to filter by. Exact match filter for each KV pair.

    Optional custom headers to include with the request.

    Optional query parameters to include with the request.