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_clientresourcesQueryRunResponseFeedbackStats
Interface●Since v0.9

FeedbackStats

Copy
interface FeedbackStats

Properties

property
avg: number

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).

property
comments: string[]

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.

property
contains_thread_feedback: boolean

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.

property
errors: number

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.

property
max: number
property
min: number
property
n: number

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.

property
sources: unknown[]

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.

property
stdev: number

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).

property
values: __type

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

View source on GitHub