HfHub.InferenceEndpoints.Endpoint (HfHub v0.2.0)

Copy Markdown View Source

Inference Endpoint information.

Represents a deployed inference endpoint with its configuration and status.

Summary

Functions

Creates an Endpoint struct from an API response.

Types

endpoint_type()

@type endpoint_type() :: :public | :protected | :private

status()

@type status() ::
  :pending
  | :initializing
  | :updating
  | :running
  | :paused
  | :failed
  | :scaled_to_zero

t()

@type t() :: %HfHub.InferenceEndpoints.Endpoint{
  compute: HfHub.InferenceEndpoints.ComputeConfig.t() | nil,
  created_at: DateTime.t() | nil,
  model: HfHub.InferenceEndpoints.ModelConfig.t() | nil,
  name: String.t(),
  namespace: String.t() | nil,
  provider: HfHub.InferenceEndpoints.ProviderConfig.t() | nil,
  status: status() | nil,
  type: endpoint_type() | nil,
  updated_at: DateTime.t() | nil,
  url: String.t() | nil
}

Functions

from_response(response)

@spec from_response(map()) :: t()

Creates an Endpoint struct from an API response.