TypeSafeSDK (TypeSafeSDK v0.1.0)

Copy Markdown View Source

Elixir client for the TypeSafe AI API.

This port keeps the Python SDK's two public API operations while using the Pristine runtime and generated-provider conventions used by sibling Elixir SDKs.

Summary

Functions

list_models(client, opts \\ [])

@spec list_models(TypeSafeSDK.Client.t(), keyword()) ::
  {:ok, TypeSafeSDK.ListModelsResponse.t()} | {:error, term()}

See TypeSafeSDK.Models.list/2.

new_client(opts \\ [])

@spec new_client(keyword()) :: TypeSafeSDK.Client.t()

See TypeSafeSDK.Client.new/1.

system_one(client, state, questions, opts \\ [])

@spec system_one(TypeSafeSDK.Client.t(), term(), map(), keyword()) ::
  {:ok, TypeSafeSDK.SystemOneResponse.t()} | {:error, term()}

See TypeSafeSDK.SystemOne.run/4.

version()

@spec version() :: String.t()