Jido.Chat.StateAdapters.Memory (Jido Chat v1.0.0)

Copy Markdown View Source

Default in-memory state adapter.

This preserves the current pure-struct semantics while routing all state access through the Jido.Chat.StateAdapter contract.

Summary

Types

t()

@type t() :: %Jido.Chat.StateAdapters.Memory{
  channel_state: %{optional(String.t()) => map()},
  dedupe: MapSet.t(Jido.Chat.StateAdapter.dedupe_key()),
  dedupe_order: [Jido.Chat.StateAdapter.dedupe_key()],
  locks: %{optional(String.t()) => map()},
  pending_locks: %{optional(String.t()) => [map()]},
  subscriptions: MapSet.t(String.t()),
  thread_state: %{optional(String.t()) => map()}
}