Defend

Topic output

Require model output to stay within allowed topics.

YAML key: topic_output
Direction: output

Require model output to stay within allowed topics.

Configuration

Prop

Type

Example

defend.config.yaml (fragment)
guards:
  output:
    enabled: true
    provider: claude
    modules:
      - topic_output:
          allowed_topics: []

Provider usage

Configure under guards.output.modules with output guarding enabled and provider claude or openai.

See the modules overview.