AnyGuardrail
create
Parameter
Type
Required
Default
get_supported_guardrails
get_supported_model
Parameter
Type
Required
Default
get_all_supported_models
Last updated
Factory class for creating guardrail instances.
Create a guardrail instance.
Parameters
guardrail_name
GuardrailName
Yes
—
provider
Optional[Provider[Any, Any]]
No
None
Returns: Guardrail[Any, Any, Any]
List all supported guardrails.
Returns: list[GuardrailName]
Get the model IDs supported by a specific guardrail.
Parameters
guardrail_name
GuardrailName
Yes
—
Returns: list[str]
Get all model IDs supported by all guardrails.
Returns: dict[str, list[str]]
Last updated