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

ThreadFeedbackStats

Copy
interface ThreadFeedbackStats

Properties

View source on GitHub
property
avg: number
property
comments: string[]
property
contains_thread_feedback: boolean
property
errors: number
property
max: number
property
min: number
property
n: number
property
sources: unknown[]
property
stdev: number
property
values: __type

avg is the arithmetic mean of numeric feedback scores for this key on the run, or null when no numeric score has been recorded (for example purely categorical feedback).

comments is a sample of human-readable comments attached to feedback points for this key, in no particular order. May be empty; is not exhaustive when many comments exist.

contains_thread_feedback is true when at least one feedback point for this key was submitted at the thread level (rather than at an individual run). Always false on responses that already describe a single run in isolation.

errors is the number of feedback points recorded as errors rather than successful scores (for example an automated evaluator that raised an exception). Defaults to 0 when no errors occurred.

max is the largest numeric feedback score recorded for this key on the run, or null when no numeric score has been recorded.

min is the smallest numeric feedback score recorded for this key on the run, or null when no numeric score has been recorded.

n is the number of feedback points recorded for this key on the run. For numeric feedback this is the sample size behind avg, min, max, and stdev; for categorical feedback it is the sum of the values counts.

sources is a sample of feedback sources for this key. Each entry is either a plain string identifier (for example "api", "app", "model") or a JSON object describing a synthetic source (for example {"type": "__ls_composite_feedback"} for a computed aggregate). Clients must tolerate both shapes.

stdev is the sample standard deviation of numeric feedback scores for this key on the run, or null when it cannot be computed (for example fewer than two numeric scores, or purely categorical feedback).

values is the distribution of categorical feedback labels for this key, mapping each label to its occurrence count. Empty ({}) for purely numeric feedback.