GET with body payload — no resources created. Returns aggregate statistics for
threads in a tracing project. The response includes the thread counts, run
counts, latency percentiles, rates, token totals, and cost totals requested in
select.
Self-hosted deployments require LangSmith v0.17 or later.
aggregateStats(
body: ThreadAggregateStatsParams,
options: RequestOptions
): APIPromise<ThreadAggregateStatsResponse>| Name | Type | Description |
|---|---|---|
body* | ThreadAggregateStatsParams | |
options | RequestOptions |
const response = await client.threads.aggregateStats({
project_id: '0190a1b2-c3d4-7ef0-a5b6-6ea3a82e9328',
select: [
'THREAD_COUNT',
'TRACE_COUNT',
'TOTAL_TOKENS',
'TOTAL_COST',
],
});