Defend

Topic

Restrict user input to allowed topics.

YAML key: topic
Direction: input

Restrict user input to allowed topics.

Configuration

Prop

Type

Example

defend.config.yaml (fragment)
guards:
  input:
    modules:
      - topic:
          allowed_topics: []

Provider usage

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

See the modules overview.