Skip to content
masterclass Buddy

LangSmith · Function

as_run_evaluator

DynamicRunEvaluator wraps a function as a LangSmith run evaluator. The function receives a Run and an optional Example, with optional support for a separate async function.

Last updated

Since
v0.5

Syntax

DynamicRunEvaluator(self, func: Callable[[Run, Optional[Example]], Union[_RUNNABLE_OUTPUT, Awaitable[_RUNNABLE_OUTPUT]]], afunc: Optional[Callable[[Run, Optional[Example]], Awaitable[_RUNNABLE_OUTPUT]]] = None)

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

Subscribe
  • Run
  • Example
  • RunEvaluator
  • DynamicComparisonRunEvaluator
  • EvaluationResult

Source: DynamicRunEvaluator | langsmith | LangChain Reference. Checked 2026-11-03.