Skip to content

InMemoryMemory

This docs was updated at: 2026-02-23

com.paragon.agents.InMemoryMemory  ยท  Class

Implements Memory


Thread-safe in-memory implementation of Memory with user isolation.

Memories are stored per-user in separate maps to ensure complete isolation. For production use with large amounts of data or semantic search requirements, consider implementations backed by vector databases.

See Also

  • Memory
  • MemoryEntry

Since: 1.0

Methods

create

public static @NonNull InMemoryMemory create()

Creates a new empty in-memory storage.

Returns

a new InMemoryMemory instance