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_clientLangsmithThreadAggregateStatsResponse
Interface●Since v0.14

ThreadAggregateStatsResponse

Copy
interface ThreadAggregateStatsResponse

Properties

property
completion_cost: number

completion_cost is the completion cost across matching traces in USD.

property
completion_cost_details: __type

completion_cost_details contains completion-cost totals by category.

property
completion_token_details: __type

completion_token_details contains completion-token totals by category.

property
completion_tokens: number

completion_tokens is the sum of completion tokens across matching traces.

property
error_rate: number

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

property
first_token_p50_seconds: number

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

property
first_token_p99_seconds: number

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

property
latency_p50_seconds: number

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

property
latency_p99_seconds: number

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

property
median_tokens: number

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

property
prompt_cost: number

prompt_cost is the prompt cost across matching traces in USD.

property
prompt_cost_details: __type

prompt_cost_details contains prompt-cost totals by category.

property
prompt_token_details: __type

prompt_token_details contains prompt-token totals by category.

property
prompt_tokens: number

prompt_tokens is the sum of prompt tokens across matching traces.

property
streaming_rate: number

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

property
thread_count: number

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

property
thread_feedback_stats: __type

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

property
total_cost: number

total_cost is the total cost across matching traces in USD.

property
total_tokens: number

total_tokens is the sum of all tokens across matching traces.

property
trace_count: number

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

View source on GitHub