ASM.InferenceEndpoint.EndpointDescriptor (ASM v0.9.2)

Copy Markdown View Source

Shared endpoint publication contract for CLI-backed ASM inference routes.

Summary

Types

t()

@type t() :: %ASM.InferenceEndpoint.EndpointDescriptor{
  base_url: String.t(),
  boundary_ref: String.t() | nil,
  capabilities: map(),
  contract_version: String.t(),
  endpoint_id: String.t(),
  headers: %{optional(String.t()) => String.t()},
  health_ref: String.t() | nil,
  lease_ref: String.t() | nil,
  management_mode: atom(),
  metadata: map(),
  model_identity: String.t() | nil,
  protocol: atom(),
  provider_identity: atom() | String.t() | nil,
  runtime_kind: :client | :task | :service,
  source_runtime: atom(),
  source_runtime_ref: String.t() | nil,
  target_class: :cloud_provider | :cli_endpoint | :self_hosted_endpoint
}

Functions

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(keyword() | map()) :: t()