# GroundednessInput

> **Class** in `langchain_azure_ai`

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

Inputs extracted from an agent state for groundedness evaluation.

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

## Signature

```python
GroundednessInput(
    self,
    answer: str,
    sources: List[str],
    question: Optional[str] = None,
)
```

## Constructors

```python
__init__(
    self,
    answer: str,
    sources: List[str],
    question: Optional[str] = None,
) -> None
```

| Name | Type |
|------|------|
| `answer` | `str` |
| `sources` | `List[str]` |
| `question` | `Optional[str]` |


## Properties

- `answer`
- `sources`
- `question`

---

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