Skip to main content

Classes

CLASS GuardianRisk

Risk definitions for Granite Guardian models. Based on https://github.com/ibm-granite/granite-guardian but updated for 3.3 8B support.
Methods:

FUNC get_available_risks

get_available_risks(cls) -> list[str]
Get list of all available risk types.

CLASS GuardianCheck

Enhanced risk checking using Granite Guardian 3.3 8B with multiple backend support.
Methods:

FUNC get_effective_risk

get_effective_risk(self) -> str
Get the effective risk criteria to use for validation.

FUNC get_available_risks

get_available_risks(cls) -> list[str]
Get list of all available standard risk types.

FUNC validate

validate(self, backend: Backend, ctx: Context) -> ValidationResult
Validate conversation using Granite Guardian via selected backend.