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
  • Traceable
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerTraceableJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithevaluationStringEvaluator
Class●Since v0.0

StringEvaluator

Copy
class StringEvaluator

Constructors

constructor
constructor

Properties

property
answerKey: string
property
evaluationName: string
property
gradingFunction: (params: GradingFunctionParams) => Promise<GradingFunctionResult>
property
inputKey: string
property
predictionKey: string

Methods

method
evaluateRun→ Promise<EvaluationResult>
View source on GitHub