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

Denominator

Copy
interface Denominator

Properties

property
entity: "run" | "feedback"

Entity selects what a type=count metric counts. Only valid when type=count; defaults to MetricEntityRun. entity=feedback requires params.feedback_key and counts individual feedback records rather than runs.

property
field: "latency_seconds" | "first_token_seconds" | "total_tokens" | "prompt_tokens" | "completion_tokens" | "total_cost" | "prompt_cost" | "completion_cost" | "feedback_score" | "prompt_token_details.cache_creation" | "prompt_token_details.cache_read" | "prompt_token_details.ephemeral_1h_input_tokens" | "prompt_token_details.ephemeral_5m_input_tokens" | "prompt_token_details.audio" | "prompt_token_details.image" | "prompt_token_details.video" | "completion_token_details.reasoning" | "completion_token_details.audio" | "completion_token_details.image" | "completion_token_details.video"
property
filter: string
property
params: Params

required when type=percentile

property
type: "count" | "sum" | "avg" | "min" | "max" | "percentile" | "ratio" | "histogram"

An operand is non-composite, so ratio is rejected here too.

View source on GitHub