# run_evaluator

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/evaluation/evaluator/run_evaluator)

Create a run evaluator from a function.

Decorator that transforms a function into a `RunEvaluator`.

## Signature

```python
run_evaluator(
    func: Callable[[Run, Optional[Example]], Union[_RUNNABLE_OUTPUT, Awaitable[_RUNNABLE_OUTPUT]]],
)
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/6a74bf5af9e542d8065af8edca54b2448f430916/python/langsmith/evaluation/evaluator.py#L394)