TypeSafeSDK.Choice (TypeSafeSDK v0.1.0)

Copy Markdown View Source

A question that selects one named alternative.

Construction intentionally does not validate the runtime shape of criteria. This matches the Python SDK: structural schema validation belongs to the API, while the SDK only requires that a typed Choice carries the field.

Summary

Types

t()

@type t() :: %TypeSafeSDK.Choice{criteria: term(), instructions: term() | nil}

Functions

new(criteria, opts \\ [])

@spec new(term(), keyword()) :: t()