Structured app-facing result contract for an agent.
The result contract is intentionally provider-neutral. It stores a Zoi schema used by the runtime after a model returns a final decision, plus a bounded repair count for deterministic retry behavior.
Summary
Functions
Normalizes a result contract or treats a schema value as the contract schema.
Builds a structured-result contract from keyword or map attributes.
Builds a structured-result contract and raises if the attributes are invalid.
Returns the Zoi schema for a structured-result contract.
Validates and normalizes a value through the result schema.
Types
Functions
Normalizes a result contract or treats a schema value as the contract schema.
Builds a structured-result contract from keyword or map attributes.
Builds a structured-result contract and raises if the attributes are invalid.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for a structured-result contract.
Validates and normalizes a value through the result schema.