| Name | Type | Description |
|---|---|---|
context | str | None | Default: NoneWhere the offending spec was declared (e.g. a subagent name and file path), prefixed to the message. Without it a rejection inside a loop over many declaration files names only the model, leaving the user to bisect by hand. |
model_spec* | str | None | The spec that was rejected, as the user supplied it (so
a bare model name is echoed back unqualified). Pass |
source* | str | None | Human-readable label for the configuration layer that
supplied the policy, as produced by the manifest resolver (e.g.
|
allowed_models* | tuple[str, ...] |
Raised when a model is outside the effective models.allowed policy.
The specs the policy permits. An empty tuple is a deny-all policy and selects a distinct message.