loadAllFactsToAgent
suspend fun loadAllFactsToAgent(scopes: List<MemoryScopeType> = MemoryScopeType.entries, subjects: List<MemorySubject> = MemorySubject.registeredSubjects)(source)
Loads all available facts from memory and adds them to the LLM chat history.
This method is similar to loadFactsToAgent but retrieves facts for all concepts instead of a specific one. It's useful for initializing an agent with all available relevant information.
Example usage:
// Load all project-related facts from the product scope
memory.loadAllFactsToAgent(
scopes = listOf(MemoryScopeType.PRODUCT),
subjects = listOf(MemorySubjects.Project)
)
Content copied to clipboard
Parameters
scopes
List of memory scopes to search in (Agent, Feature, etc.). By default all scopes are used.
subjects
List of subjects to search in (User, Project, etc.). By default all registered subjects are used.