Defend

Custom output

Plain-language output policy defined by your prompt string.

YAML key: custom_output
Direction: output

Plain-language output policy defined by your prompt string.

Configuration

Prop

Type

Example

defend.config.yaml (fragment)
guards:
  output:
    enabled: true
    provider: claude
    modules:
      - custom_output:
          prompt: "Stay within policy."

Provider usage

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

See the modules overview.