Compute aggregate stats for a single thread (turn count, latency percentiles,.
func (
r *ThreadService) Stats(ctx context.Context,
threadID string,
query ThreadStatsParams,
opts ...option.RequestOption) (res *ThreadStats,
err error
)Compute aggregate stats for a single thread (turn count, latency percentiles, token/cost sums, and detail breakdowns) within a project.
Self-hosted deployments require LangSmith v0.16 or later.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
threadID* | string | |
query* | ThreadStatsParams | |
opts* | ...option.RequestOption |