Contents

default

Guardrails that default to ensuring that the system blocks unsafe content in prompts and responses.

Declaration

static let `default`: SystemLanguageModel.Guardrails

Discussion

When the framework blocks unsafe content it throws a LanguageModelSession.GenerationError.guardrailViolation(_:) error.

See Also

Getting the guardrail types