MingaAgent.ModelSelection.Policy.Limits (Minga v0.1.0)

Copy Markdown View Source

Advertised model limits and the finite selected request output limit.

Summary

Functions

Validates optional advertised limits and a required positive request limit.

Types

t()

@type t() :: %MingaAgent.ModelSelection.Policy.Limits{
  context: pos_integer() | nil,
  input: pos_integer() | nil,
  output: pos_integer() | nil,
  request_output: pos_integer()
}

Functions

new(arg1)

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

Validates optional advertised limits and a required positive request limit.