Model-callable operation definition.
Summary
Functions
Returns true when this operation has a built-in approval policy.
Normalizes an existing operation specification, keyword list, or map.
Returns the operation kind used for control matching and policy checks.
Builds an operation specification from keyword or map attributes.
Builds an operation specification and raises if the attributes are invalid.
Returns true when a recorded intent may be retried without reconciliation.
Returns true when this operation requires an explicit operation control.
Returns the Zoi schema for an agent operation.
Returns the supported operation idempotency policies.
Types
@type idempotency() :: :pure | :idempotent | :dedupe | :reconcile | :unsafe_once
Functions
Returns true when this operation has a built-in approval policy.
Normalizes an existing operation specification, keyword list, or map.
Returns the operation kind used for control matching and policy checks.
Direct operations default to :operation. Adapters can set :kind,
:operation_kind, :source_kind, :runtime, or :source metadata to
expose a more precise kind while preserving one operation contract.
Builds an operation specification from keyword or map attributes.
Builds an operation specification and raises if the attributes are invalid.
@spec replay_safe?(t() | idempotency()) :: boolean()
Returns true when a recorded intent may be retried without reconciliation.
@spec requires_control?(t() | idempotency()) :: boolean()
Returns true when this operation requires an explicit operation control.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for an agent operation.
@spec valid_idempotencies() :: [idempotency()]
Returns the supported operation idempotency policies.