nemoguardrails.library.f5.actions
Module Contents
Functions
Data
API
Outcome returned when the API is unreachable and fail_open is enabled.
The fail_open marker makes this distinguishable from a real cleared
scan in logs and traces.
Scans the provided text using the F5 Guardrails API.
On HTTP 429 responses the action honors the Retry-After header
(delta-seconds or HTTP-date) up to
rails.config.f5.max_retry_after_seconds and retries up to
rails.config.f5.max_retries additional times before applying the
configured fail_open / fail_closed behavior.
Parameters:
The text to scan.
The active RailsConfig; used to resolve rails.config.f5.
Optional caller-owned HTTP client used with the F5 retry policy. The action does not close an injected client.
Returns: RailOutcome
The rail decision with the F5 Guardrails API response as metadata.