Aggregate state owned by ASM.Session.Server.
Summary
Types
@type t() :: %ASM.Session.State{ active_runs: %{optional(String.t()) => pid()}, checkpoint: map() | nil, cost: %{ input_tokens: non_neg_integer(), output_tokens: non_neg_integer(), cost_usd: float() }, materialization_status: :unmanaged | :active | :expired | :revoked | :cleaned, materialization_timer_ref: reference() | nil, options: keyword(), pending_approval_index: %{optional(String.t()) => pid()}, provider: ASM.Provider.t(), provider_profile: ASM.Provider.Profile.t(), run_monitors: %{optional(pid()) => reference()}, run_queue: term(), runtime_auth: ASM.RuntimeAuth.t(), session_id: String.t(), status: :ready | :stopped }
Functions
@spec new(String.t(), ASM.Provider.t(), keyword(), ASM.RuntimeAuth.t()) :: t()