Fleet Memory
recall()
Recall with the worker memory mode.
What it does
Recall with the worker memory mode.
The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.
Signature
TypeScript
recall(query: string, options?: FleetRetrievalOptions): Promise<RetrievalResult>Parameters
query (string) — Natural-language intent used to rank relevant memory.options? (FleetRetrievalOptions) — A typed options object. The applicable fields and defaults are documented below.RetrievalResult fields
facts contains ranked memory objects augmented with a semantic similarity score.nodes contains the parent topics represented by the returned facts.systemPrompt is prompt-ready memory context; tokenCount reports its size against optional tokenBudget.Result
A retrieval result containing ranked facts, matched topics, generated prompt context, and token counts.
Example
example.ts
const result = await worker.recall("refund policy");