print_content_safety_annotations(
msg: BaseMessage,
) -> None| Name | Type | Description |
|---|---|---|
msg* | BaseMessage | A LangChain message to inspect. |
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]
)