API Reference TypeSafe v#0.2.2

Copy Markdown View Source

Modules

Elixir client for the TypeSafe AI API.

An unsuccessful HTTP response from the TypeSafe API.

Answers returned for the questions in a TypeSafe.system_one/4 request.

A choice answer.

A yes/no answer. :noul is the probability of "yes"/true, from 0 to 1.

A score answer.

An unsuccessful HTTP response from the TypeSafe API.

An unsuccessful HTTP response from the TypeSafe API.

A configured TypeSafe API client.

Resolves and validates client configuration from explicit options and environment variables.

Raised when SDK configuration or input is invalid before any request is sent.

A request failed without producing an HTTP response (DNS, TCP, TLS, or read errors).

Exception structs used by the SDK.

An unsuccessful HTTP response from the TypeSafe API.

An unsuccessful HTTP response from the TypeSafe API.

An unsuccessful HTTP response from the TypeSafe API.

Questions asked about a piece of state in a TypeSafe.system_one/4 request.

A question that selects one of several named labels. Build with TypeSafe.Question.choice/1.

A yes/no question. Build with TypeSafe.Question.noul/1.

A question that rates state against an ordered rubric. Build with TypeSafe.Question.score/1.

The rate limit was exceeded (HTTP 429).

Decoding of successful API responses into their public structs.

The models available to the account.

Metadata describing a single available model.

Token counts for a request. Either field may be nil when the API does not report it.

A successful HTTP response whose body was missing or structurally invalid required data.

A request exceeded its configured timeout.

An unsuccessful HTTP response from the TypeSafe API.