Skip to main content

Module safety_gateway

Module safety_gateway 

Source
Expand description

Unified Safety Gateway

Consolidates all safety checking mechanisms into a single gateway:

  • Rate limiting (from runloop’s tool_call_safety)
  • Destructive tool detection
  • Command policy enforcement
  • Planning workflow restrictions

This provides consistent safety decisions across all tool execution paths.

Structs§

SafetyCheckResult
Result of a safety check with optional retry hint metadata.
SafetyContext
Minimal execution context required for safety decisions.
SafetyGateway
Unified Safety Gateway
SafetyGatewayConfig
Configuration for the safety gateway

Enums§

SafetyDecision
Safety decision for a tool invocation
SafetyError
Errors from safety checks
SafetyTrustLevel
Trust level used by the safety gateway for approval bypass decisions.