Contents

default

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

Declaration

static let `default`: SystemLanguageModel.Guardrails

Discussion

The default guardrail level means that all guardrails are turned on. When the guardrails block unsafe content from either the prompt input or model response, the framework throws a LanguageModelError.guardrailViolation(_:) error.

See Also

Getting the guardrail types