loadAll

open suspend override fun loadAll(subject: MemorySubject, scope: MemoryScope): List<Fact>(source)

Retrieves all facts stored within a specific subject and scope context. This method is useful for:

  • Analyzing all stored knowledge in a context

  • Migrating or backing up memory data

  • Debugging memory contents

Example usage:

// Load all project-related facts
val projectFacts = loadAll(
subject = MemorySubject.Project,
scope = MemoryScope.Product("my-app")
)

Return

Combined list of all facts in the specified context

Parameters

subject

Context category to retrieve from (e.g., MACHINE, PROJECT)

scope

Visibility scope to retrieve from (e.g., Agent, Feature)