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

    list

    Copy
    list(
      self,
      thread_id: str,
      *,
      limit: int = 10,
      offset: 
    View source on GitHub
    int
    =
    0
    ,
    status
    :
    RunStatus
    |
    None
    =
    None
    ,
    select
    :
    builtins
    .
    list
    [
    RunSelectField
    ]
    |
    None
    =
    None
    ,
    headers
    :
    Mapping
    [
    str
    ,
    str
    ]
    |
    None
    =
    None
    ,
    params
    :
    QueryParamTypes
    |
    None
    =
    None
    )
    ->
    builtins
    .
    list
    [
    Run
    ]

    Parameters

    NameTypeDescription
    thread_id*str

    The thread ID to list runs for.

    limitint
    Default:10

    The maximum number of results to return.

    offsetint
    Default:0

    The number of results to skip.

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

    List runs.

    client = get_client(url="http://localhost:2024")
    await client.runs.list(
        thread_id="thread_id",
        limit=5,
        offset=5,
    )

    The status of the run to filter by.

    Optional custom headers to include with the request.

    Optional query parameters to include with the request.