# RequiredIfRule

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/types/annotation_queue_rubric_item_schema_param/RequiredIfRule)

## Signature

```python
RequiredIfRule()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    key: Required[str],
    op: Required[Literal['is', 'is_one_of', 'is_empty', 'is_not_empty']],
    values: Iterable[float],
)
```

| Name | Type |
|------|------|
| `key` | `Required[str]` |
| `op` | `Required[Literal['is', 'is_one_of', 'is_empty', 'is_not_empty']]` |
| `values` | `Iterable[float]` |


## Properties

- `key`
- `op`
- `values`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/types/annotation_queue_rubric_item_schema_param.py#L70)