# TextModerationInput

> **Class** in `langchain_azure_ai`

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

Input extracted from an agent state for text content moderation.

This is the return type for a ``context_extractor`` callable passed to
:class:`~langchain_azure_ai.agents.middleware.content_safety.AzureContentModerationMiddleware`
or
:class:`~langchain_azure_ai.agents.middleware.content_safety.AzureProtectedMaterialMiddleware`.

## Signature

```python
TextModerationInput(
    self,
    text: str,
)
```

## Constructors

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

| Name | Type |
|------|------|
| `text` | `str` |


## Properties

- `text`

---

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