Tinkex.API.Service (Tinkex v0.3.4)
View SourceService 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
@spec create_model( map(), keyword() ) :: {:ok, map()} | {:error, Tinkex.Error.t()}
Create a new model.
@spec create_sampling_session( map(), keyword() ) :: {:ok, map()} | {:error, Tinkex.Error.t()}
Create a sampling session.
@spec get_server_capabilities(keyword()) :: {:ok, Tinkex.Types.GetServerCapabilitiesResponse.t()} | {:error, Tinkex.Error.t()}
Retrieve supported models and server capabilities.
@spec health_check(keyword()) :: {:ok, Tinkex.Types.HealthResponse.t()} | {:error, Tinkex.Error.t()}
Perform a health check against the service.