Tinkex.API.Service (Tinkex v0.3.4)

View Source

Service and model creation endpoints.

Uses :session pool for model creation operations.

Summary

Functions

Create a new model.

Create a sampling session.

Retrieve supported models and server capabilities.

Perform a health check against the service.

Functions

create_model(request, opts)

@spec create_model(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}

Create a new model.

create_sampling_session(request, opts)

@spec create_sampling_session(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}

Create a sampling session.

get_server_capabilities(opts)

@spec get_server_capabilities(keyword()) ::
  {:ok, Tinkex.Types.GetServerCapabilitiesResponse.t()}
  | {:error, Tinkex.Error.t()}

Retrieve supported models and server capabilities.

health_check(opts)

@spec health_check(keyword()) ::
  {:ok, Tinkex.Types.HealthResponse.t()} | {:error, Tinkex.Error.t()}

Perform a health check against the service.