Elixir client for the TypeSafe AI API.
Use evaluate/4 for validated questions, caller-key preservation and enriched
answers, or system_one/4 for the existing wire-oriented parity interface.
Both execute through the same generated operations and Pristine runtime.
Summary
Functions
Strict ordered Choice constructor.
Evaluate with caller-key restoration and request-relative answer validation.
Evaluate or raise the normalized SDK error.
Collect the bounded evaluation stream.
Lazy, bounded evaluation. See TypeSafeSDK.Batch.
Strict Noul constructor. Raises on invalid locally defined questions.
Validate and prepare questions once, returning a tuple.
Validate and prepare questions or raise.
Strict ordered Score constructor.
Legacy wire-oriented system_one call, raising on error.
Functions
Strict ordered Choice constructor.
Evaluate with caller-key restoration and request-relative answer validation.
Evaluate or raise the normalized SDK error.
Collect the bounded evaluation stream.
Lazy, bounded evaluation. See TypeSafeSDK.Batch.
@spec list_models(TypeSafeSDK.Client.t(), keyword()) :: {:ok, TypeSafeSDK.ListModelsResponse.t()} | {:error, term()}
@spec new_client(keyword()) :: TypeSafeSDK.Client.t()
Strict Noul constructor. Raises on invalid locally defined questions.
Validate and prepare questions once, returning a tuple.
Validate and prepare questions or raise.
Strict ordered Score constructor.
@spec system_one(TypeSafeSDK.Client.t(), term(), map(), keyword()) :: {:ok, TypeSafeSDK.SystemOneResponse.t()} | {:error, term()}
Legacy wire-oriented system_one call, raising on error.
@spec version() :: String.t()