ExAgent.Memory.ETS (ExAgent v2.3.0)

View Source

An in-memory ExAgent.Memory backend, per node.

A GenServer owns a protected named ETS table: reads go straight to the table and writes are serialized through the owner, which checks the expected version. Contents are lost when the table's owner stops. The library starts a default table named ExAgent.Memory.ETS (:ets in ExAgent.Memory.tool/2); start more under your own supervisor:

children = [{ExAgent.Memory.ETS, name: MyApp.Memory}]

ExAgent.Memory.tool({ExAgent.Memory.ETS, MyApp.Memory}, scope: "team:7")