LangChain Reference home page
Search...
⌘K
Ask AI
GitHub
Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
⌘I
LangChain Assistant
New
History
Ask a question to get started
Enter
to send
•
Shift+Enter
new line
Menu
Navigation
Projects
LangSmith
Client
Run Trees
Traceable
Evaluation
Schemas
Langchain
Jest
Vitest
Wrappers
Anonymizer
Traceable
Jestlike
Vercel
Anthropic
Sandbox
Language
Python
JavaScript
Theme
Light
Dark
JavaScript
langsmith
evaluation
StringEvaluator
Class
v0.5.5 (latest)
●
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
Version History