Defend

Custom

Plain-language policy defined by your prompt string.

YAML key: custom
Direction: input

Plain-language policy defined by your prompt string.

Configuration

Prop

Type

Example

defend.config.yaml (fragment)
guards:
  input:
    modules:
      - custom:
          prompt: "Stay within policy."

Provider usage

Configure under guards.input.modules when using an LLM-backed input provider.

See the modules overview.