# _Expect

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_expect/_Expect)

A class for setting expectations on test results.

## Signature

```python
_Expect(
    self,
    *,
    client: Optional[ls_client.Client] = None,
)
```

## Constructors

```python
__init__(
    self,
    *,
    client: Optional[ls_client.Client] = None,
)
```

| Name | Type |
|------|------|
| `client` | `Optional[ls_client.Client]` |


## Properties

- `executor`

## Methods

- [`embedding_distance()`](https://reference.langchain.com/python/langsmith/_expect/_Expect/embedding_distance)
- [`edit_distance()`](https://reference.langchain.com/python/langsmith/_expect/_Expect/edit_distance)
- [`value()`](https://reference.langchain.com/python/langsmith/_expect/_Expect/value)
- [`score()`](https://reference.langchain.com/python/langsmith/_expect/_Expect/score)

---

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