Query threads within a project (session), with cursor-based pagination. Returns threads matching the given time range and optional filters.
Self-hosted deployments require LangSmith v0.16 or later.
query(
body: ThreadQueryParams,
options: RequestOptions
): PagePromise<ThreadsItemsCursorPostPagination, Thread>| Name | Type | Description |
|---|---|---|
body* | ThreadQueryParams | |
options | RequestOptions |
// Automatically fetches more pages as needed.
for await (const thread of client.threads.query()) {
// ...
}