types/guardrails

Guardrail types — used by guardrail behaviour and tool plugins.

Types

pub type ApprovalScope {
  Once
  Session
  Always
}

Constructors

  • Once
  • Session
  • Always
pub type GuardrailResult {
  Allowed
  Blocked(reason: String)
  NeedsApproval(reason: String, command: String)
}

Constructors

  • Allowed
  • Blocked(reason: String)
  • NeedsApproval(reason: String, command: String)
pub type Risk {
  High
  Medium
  Low
}

Constructors

  • High
  • Medium
  • Low
Search Document