Policy control attached to model-callable operations.
Summary
Functions
Normalizes an existing operation control, keyword list, or map.
Returns true when this operation control applies to an operation spec or match data.
Returns true when this operation control applies to an operation name/kind.
Builds an operation control from keyword or map attributes.
Builds an operation control and raises if the attributes are invalid.
Returns the Zoi schema for an operation control.
Returns the operation kinds that a control can match.
Types
Functions
Normalizes an existing operation control, keyword list, or map.
@spec matches?(t(), Jidoka.Agent.Spec.Operation.t() | map()) :: boolean()
Returns true when this operation control applies to an operation spec or match data.
Returns true when this operation control applies to an operation name/kind.
Builds an operation control from keyword or map attributes.
Builds an operation control and raises if the attributes are invalid.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for an operation control.
@spec valid_kinds() :: [atom()]
Returns the operation kinds that a control can match.