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_clientresourcesThreadsThreadTraceListItem
Interface●Since v0.10

ThreadTraceListItem

Copy
interface ThreadTraceListItem

Properties

property
completion_cost: number

completion_cost is estimated USD cost for the completion.

property
completion_cost_details: CompletionCostDetails

completion_cost_details is the per-category USD breakdown of completion_cost. Categories mirror completion_token_details. Returned only when the COMPLETION_COST_DETAILS field is requested.

property
completion_token_details: CompletionTokenDetails

completion_token_details is the per-category breakdown of completion_tokens. Category names are model-specific (for example reasoning, audio). Returned only when the COMPLETION_TOKEN_DETAILS field is requested.

property
completion_tokens: number

completion_tokens is the completion-side token count.

property
end_time: string

end_time is when the run ended (RFC3339 date-time). JSON null if the run has not finished yet.

property
error_preview: string

error_preview is a truncated plain-text error snippet.

property
first_token_time: string

first_token_time is when the first output token was produced (RFC3339 date-time), when recorded for streamed runs.

property
inputs_preview: string

inputs_preview is a truncated plain-text preview of inputs.

property
latency: number

latency is wall-clock duration from start to end in seconds. Omitted unless included in selects.

property
name: string

name is the example's optional name.

property
op: number

op is a numeric code identifying the root run's run_type (for example LLM vs. tool vs. chain). Encoded as a number for compatibility with legacy clients; prefer the string run_type on RunResponse when available. Omitted unless included in selects.

property
outputs_preview: string

outputs_preview is a truncated plain-text preview of outputs.

property
prompt_cost: number

prompt_cost is estimated USD cost for the prompt.

property
prompt_cost_details: PromptCostDetails

prompt_cost_details is the per-category USD breakdown of prompt_cost. Categories mirror prompt_token_details. Returned only when the PROMPT_COST_DETAILS field is requested.

property
prompt_token_details: PromptTokenDetails

prompt_token_details is the per-category breakdown of prompt_tokens. Category names are model-specific (for example cache_read, cache_write). Returned only when the PROMPT_TOKEN_DETAILS field is requested.

property
prompt_tokens: number

prompt_tokens is the prompt-side token count.

property
start_time: string

start_time is when the run started (RFC3339 date-time).

property
thread_id: string

thread_id is the conversation thread UUID this run belongs to, if any.

property
total_cost: number

total_cost is total estimated USD cost (prompt plus completion).

property
total_tokens: number

total_tokens is prompt plus completion tokens.

property
trace_id: string

trace_id is the root trace UUID; for a root run it matches id.

View source on GitHub