agentskit.js

HierarchicalRecall

Auto-generated API reference for HierarchicalRecall.

Interface: HierarchicalRecall

Defined in: hierarchical.ts:3

#Properties

#index

index: (message) => void | Promise<void>

Defined in: hierarchical.ts:9

Index a message for later retrieval. Called once per message as it moves from working → recall (usually: embed + store in a vector DB).

#Parameters

message

Message

#Returns

void | Promise<void>


#query

query: (input) => Message[] | Promise<Message[]>

Defined in: hierarchical.ts:15

Given the hot working window, return up to topK messages from the recall tier that are relevant to the current turn. The hub splices results chronologically alongside the working window.

#Parameters

input
topK

number

working

Message[]

#Returns

Message[] | Promise<Message[]>

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page