Backplane.AgentRuntime.Usage (backplane_agent_runtime v1.6.0)

Copy Markdown

Attempt-attributed usage accounting without double counting.

The same report identity is idempotent. Missing values remain :unknown instead of being treated as zero. Context occupancy is tracked separately from lifetime totals.

Summary

Types

t()

@type t() :: map()

Functions

new()

@spec new() :: {:ok, t()}

report(usage, input)

@spec report(t(), map()) ::
  {:ok, t(), map()} | {:error, Backplane.AgentRuntime.Error.t()}

totals(map)

@spec totals(t()) :: map()