Defend

Relevance output

Check that the answer stays relevant to the user task.

YAML key: relevance_output
Direction: output

Check that the answer stays relevant to the user task.

Configuration

Prop

Type

Example

defend.config.yaml (fragment)
guards:
  output:
    enabled: true
    provider: claude
    modules:
      - "relevance_output"

Provider usage

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

See the modules overview.