Nous.Plugins.InputGuard.Result (nous v0.13.3)

View Source

Result of an input guard strategy check.

Each strategy returns a Result indicating the severity of the input and optional metadata about why it was flagged.

Severity Levels

  • :safe — Input appears benign
  • :suspicious — Input may be problematic but isn't clearly malicious
  • :blocked — Input is clearly malicious or policy-violating

Summary

Types

severity()

@type severity() :: :safe | :suspicious | :blocked

t()

@type t() :: %Nous.Plugins.InputGuard.Result{
  metadata: map(),
  reason: String.t() | nil,
  severity: severity(),
  strategy: module() | nil
}