Skip to content
masterclass Buddy

LangSmith · Interface

StringEvaluator

StringEvaluator defines a common interface for evaluating text produced by chains or language models. It can use the input and an optional reference label to grade or tag predictions.

Last updated

Since
v1.4

Syntax

class StringEvaluator(_EvalArgsMixin, ABC)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • _EvalArgsMixin
  • ABC
  • evaluate_strings
  • aevaluate_strings

Source: StringEvaluator | langchain_classic | LangChain Reference. Checked 2026-11-03.