Explicit zero-based bounds for a full capture, requested slice, or retained page.
Summary
Functions
Builds valid bounds. A known total must contain the selected interval.
Types
@type kind() :: :full | :requested | :page | :captured_prefix
@type t() :: %MingaAgent.Tool.Output.Range{ count: non_neg_integer(), kind: kind(), start: non_neg_integer(), total: total(), unit: unit() }
@type total() :: non_neg_integer() | :unknown
@type unit() :: :bytes | :lines | :items
Functions
@spec new(kind(), unit(), non_neg_integer(), non_neg_integer(), total()) :: {:ok, t()} | {:error, :invalid_range}
Builds valid bounds. A known total must contain the selected interval.