Canonical immutable definition of a Jidoka agent.
Summary
Functions
Normalizes a specification, DSL agent module, keyword list, or map.
Builds an agent specification from keyword or map attributes.
Builds an agent specification and raises if the attributes are invalid.
Returns the Zoi schema for an agent specification.
Validates public context data against the agent context schema.
Validates the control policy for every operation in the specification.
Validates that one operation has the controls that its idempotency policy requires.
Validates a result value against the optional structured-result contract.
Types
Functions
Normalizes a specification, DSL agent module, keyword list, or map.
Builds an agent specification from keyword or map attributes.
Builds an agent specification and raises if the attributes are invalid.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for an agent specification.
@spec validate_context(t(), Jidoka.Context.t()) :: :ok | {:error, term()}
Validates public context data against the agent context schema.
Validates the control policy for every operation in the specification.
@spec validate_operation_policy(t(), Jidoka.Agent.Spec.Operation.t()) :: :ok | {:error, term()}
Validates that one operation has the controls that its idempotency policy requires.
Validates a result value against the optional structured-result contract.