ADK.Memory.InMemory (ADK v0.0.1-alpha.1)

Copy Markdown View Source

ETS-backed in-memory memory store for development and testing.

Uses keyword matching (not semantic search). Mirrors Python ADK's InMemoryMemoryService.

Usage

ADK.Memory.InMemory.start_link([])

ADK.Memory.InMemory.add("app", "user1", [
  ADK.Memory.Entry.new(content: "User prefers dark mode")
])

{:ok, results} = ADK.Memory.InMemory.search("app", "user1", "dark mode")

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()