# ContentSafetyEvaluation

> **Class** in `langchain_azure_ai`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/ContentSafetyEvaluation)

Base class for all content-safety violations.

## Signature

```python
ContentSafetyEvaluation(
    self,
    category: str,
)
```

## Constructors

```python
__init__(
    self,
    category: str,
) -> None
```

| Name | Type |
|------|------|
| `category` | `str` |


## Properties

- `category`

## Methods

- [`to_dict()`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/ContentSafetyEvaluation/to_dict)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/7a6a664d617264df8dcb12fcfb1bacc09f21d504/libs/azure-ai/langchain_azure_ai/agents/middleware/content_safety/_base.py#L55)