Skip to content

apollo-code


apollo-code / storage/src / DefaultMemoryRecallService

Class: DefaultMemoryRecallService

Implements

Constructors

Constructor

new DefaultMemoryRecallService(memory, index): DefaultMemoryRecallService

Parameters

memory

MemoryService

index

MemoryIndex

Returns

DefaultMemoryRecallService

Properties

index

readonly index: MemoryIndex


memory

readonly memory: MemoryService

Methods

recall()

recall(scope, query, options?): Promise<readonly MemoryRecallHit[]>

Parameters

scope

MemoryRecordScope

query

string

options?

MemoryRecallOptions = {}

Returns

Promise<readonly MemoryRecallHit[]>

Implementation of

MemoryRecallService.recall