GuardrailsVersion
A versioned snapshot of the guardrails configuration.
guardrails_id is auto-generated at construction time. version is auto-assigned by GuardrailsStore ("v1", "v2", …). created_at defaults to the current UTC time. is_active is True for the most recently created version. source tracks whether this was loaded from the API or from file.
v1guardrails objectrequired
A simplified, API-manageable view of the guardrails configuration.
strategy_registry lists the names of allowed strategies. type_strategy_map maps primitive type names to their valid strategies. parameter_priors maps signal IDs to severity-level prior dicts. bias_rules maps bias words to severity level strings. threshold_directions maps signal IDs to threshold direction strings. global_preferred_strategy is the strategy biased toward when no hint exists. global_default_strategy is the fallback strategy of last resort.
type_strategy_map objectrequired
property name* string[]
parameter_priors objectrequired
bias_rules objectrequired
threshold_directions object
percentilethresholdchange_note object
- string
- null
truePossible values: [api, file]
api{
"guardrails_id": "string",
"version": "v1",
"guardrails": {
"strategy_registry": [
"string"
],
"type_strategy_map": {},
"parameter_priors": {},
"bias_rules": {},
"threshold_directions": {},
"global_preferred_strategy": "percentile",
"global_default_strategy": "threshold"
},
"change_note": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"is_active": true,
"source": "api"
}