Typed model-side decision returned by an LLM effect.
The runtime uses a constrained decision protocol: a model either returns a final response or asks Jidoka to run one or more operations. Keeping that decision as a struct gives hibernate/resume a stable shape instead of relying on loose maps.
Summary
Functions
Builds a final-answer model decision.
Normalizes an existing decision, keyword list, or map.
Builds a model decision from keyword or map attributes.
Builds a model decision and raises if the attributes are invalid.
Builds a decision that requests one operation.
Builds a decision that requests one or more operations.
Returns the Zoi schema for a normalized model decision.
Projects a model decision into its effect payload.
Types
@type decision_type() :: :final | :operation | :operations
Functions
@spec final( String.t() | [Jidoka.ContentPart.input()], keyword() ) :: t()
Builds a final-answer model decision.
Normalizes an existing decision, keyword list, or map.
Builds a model decision from keyword or map attributes.
Builds a model decision and raises if the attributes are invalid.
Builds a decision that requests one operation.
@spec operations( [Jidoka.Effect.OperationRequest.t() | keyword() | map()], keyword() ) :: t()
Builds a decision that requests one or more operations.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for a normalized model decision.
Projects a model decision into its effect payload.