MingaAgent.InferenceRoute.PlanWindow (minga_sdk v0.1.0)

Copy Markdown View Source

One subscription limit window a route reports through Minga.Extension.ModelRoutes.report_usage/3.

utilization is the used fraction from 0 to 1, resets_at is a DateTime or nil, and status is :allowed, :warning, or :rejected.

This is a compile-time stub.

Summary

Types

status()

@type status() :: :allowed | :warning | :rejected

t()

@type t() :: %MingaAgent.InferenceRoute.PlanWindow{
  kind: String.t(),
  resets_at: DateTime.t() | nil,
  status: status(),
  utilization: float()
}

Functions

new(attrs)

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