# print_content_safety_annotations

> **Function** in `langchain_azure_ai`

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

Print a formatted summary of content-safety annotations on a message.

Useful for troubleshooting and inspecting middleware results in
notebooks or the console.  Extracts all ``non_standard`` content
blocks produced by Azure Content Safety middleware and renders them
in a human-readable, colour-free table format.

Usage::

    result = agent.invoke({"messages": [HumanMessage(content="...")]})
    print_content_safety_annotations(
        result["messages"][-1]
    )

## Signature

```python
print_content_safety_annotations(
    msg: BaseMessage,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `msg` | `BaseMessage` | Yes | A LangChain message to inspect. |

---

[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#L522)