# ContentSafetyAnnotationPayload

> **Class** in `langchain_azure_ai`

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

Value payload stored inside a ``NonStandardAnnotation`` for violations.

## Signature

```python
ContentSafetyAnnotationPayload(
    self,
    provider: str = 'azure_content_safety',
    detection_type: str = '',
    violations: List[Dict[str, Any]] = list(),
)
```

## Constructors

```python
__init__(
    self,
    provider: str = 'azure_content_safety',
    detection_type: str = '',
    violations: List[Dict[str, Any]] = list(),
) -> None
```

| Name | Type |
|------|------|
| `provider` | `str` |
| `detection_type` | `str` |
| `violations` | `List[Dict[str, Any]]` |


## Properties

- `provider`
- `detection_type`
- `violations`

## Methods

- [`to_dict()`](https://reference.langchain.com/python/langchain-azure-ai/agents/middleware/content_safety/_base/ContentSafetyAnnotationPayload/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#L78)