# PromptInjectionEvaluation

> **Class** in `langchain_azure_ai`

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

A prompt-injection evaluation.

## Signature

```python
PromptInjectionEvaluation(
    self,
    category: str,
    source: str = '',
    detected: bool = True,
)
```

## Extends

- `ContentSafetyEvaluation`

## Constructors

```python
__init__(
    self,
    category: str,
    source: str = '',
    detected: bool = True,
) -> None
```

| Name | Type |
|------|------|
| `category` | `str` |
| `source` | `str` |
| `detected` | `bool` |


## Properties

- `source`
- `detected`

---

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