LanguageModelSession.GenerationError.guardrailViolation(_:)
An error that indicates the system’s safety guardrails are triggered by content in a prompt or the response generated by the model.
Declaration
case guardrailViolation(LanguageModelSession.GenerationError.Context)