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.
SubscribeRelated
RunExampleRunEvaluatorDynamicComparisonRunEvaluatorEvaluationResult