ContentSafetyException
Exceptions ยท AiDotNet.Agentic.Pipeline
Thrown by ContentSafetyMiddleware when content is blocked and the middleware is configured to
fail hard (ThrowOnViolation) rather than return a refusal.
Inheritance: Exception โ ContentSafetyException
Constructors
| Constructor | Summary |
|---|---|
ContentSafetyException(string reason) |
Initializes a new exception describing why content was blocked. |
Properties
| Property | Summary |
|---|---|
string Reason { get; } |
Gets the moderation reason the content was blocked. |