# StringEvaluator

> **Class** in `langsmith`

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

Grades the run's string input, output, and optional answer.

.. deprecated:: 0.5.0

   StringEvaluator is deprecated. Use openevals instead: https://github.com/langchain-ai/openevals

## Signature

```python
StringEvaluator()
```

## Extends

- `RunEvaluator`
- `BaseModel`

## Properties

- `evaluation_name`
- `input_key`
- `prediction_key`
- `answer_key`
- `grading_function`
- `feedback_keys`

## Methods

- [`evaluate_run()`](https://reference.langchain.com/python/langsmith/evaluation/string_evaluator/StringEvaluator/evaluate_run)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/ea8caba352b122b6f36fc5eaf45756ca00470e0a/python/langsmith/evaluation/string_evaluator.py#L12)