LLMProxy.Providers.Attempt (llm_proxy v0.1.0)

Copy Markdown View Source

Normalized provider deployment attempt used by routing, fallback, cache keys, and circuit breakers.

Summary

Types

t()

@type t() :: %LLMProxy.Providers.Attempt{
  cooldown_ms: pos_integer(),
  failure_threshold: pos_integer(),
  metadata: map(),
  model: String.t(),
  provider: module(),
  provider_name: String.t(),
  timeout_ms: pos_integer() | nil,
  token_pool: String.t() | nil
}

Functions

key(attempt)

@spec key(t()) :: {String.t(), String.t()}

new(attempt)

@spec new(LLMProxy.Catalog.Deployment.t() | {module(), String.t()} | t()) :: t()