LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmith_openapi_clientresourcesthreadsThreadAggregateStatsResponse
Interfaceā—Since v0.14

ThreadAggregateStatsResponse

Copy
interface ThreadAggregateStatsResponse

Properties

View source on GitHub
property
completion_cost: number
property
completion_cost_details: __type
property
completion_token_details: __type
property
completion_tokens: number
property
error_rate: number
property
first_token_p50_seconds: number
property
first_token_p99_seconds: number
property
latency_p50_seconds: number
property
latency_p99_seconds: number
property
median_tokens: number
property
prompt_cost: number
property
prompt_cost_details: __type
property
prompt_token_details: __type
property
prompt_tokens: number
property
streaming_rate: number
property
thread_count: number
property
thread_feedback_stats: __type
property
total_cost: number
property
total_tokens: number
property
trace_count: number

completion_cost is the completion cost across matching traces in USD.

completion_cost_details contains completion-cost totals by category.

completion_token_details contains completion-token totals by category.

completion_tokens is the sum of completion tokens across matching traces.

error_rate is the fraction of matching traces that contain an error.

first_token_p50_seconds is the approximate median time to first token in seconds. Populated when FIRST_TOKEN_P50 is selected.

first_token_p99_seconds is the approximate p99 time to first token in seconds. Populated when FIRST_TOKEN_P99 is selected.

latency_p50_seconds is the approximate median trace latency in seconds. Populated when LATENCY_P50 is selected.

latency_p99_seconds is the approximate p99 trace latency in seconds. Populated when LATENCY_P99 is selected.

median_tokens is the approximate median of total tokens across matching traces. Populated when MEDIAN_TOKENS is selected.

prompt_cost is the prompt cost across matching traces in USD.

prompt_cost_details contains prompt-cost totals by category.

prompt_token_details contains prompt-token totals by category.

prompt_tokens is the sum of prompt tokens across matching traces.

streaming_rate is the fraction of completed matching traces that streamed tokens.

thread_count is the number of distinct threads matching the query. Populated when THREAD_COUNT is selected.

thread_feedback_stats contains aggregate thread-level feedback statistics keyed by feedback key. Populated when THREAD_FEEDBACK_STATS is selected.

total_cost is the total cost across matching traces in USD.

total_tokens is the sum of all tokens across matching traces.

trace_count is the number of traces in the matching threads. Populated when TRACE_COUNT is selected.