Skip to Content

RecallToolCallbacks

Defined in: src/lib/memory/recallTool.ts:71 

Extends

Properties

onChunksRetrieved()?

optional onChunksRetrieved: (conversationIds: string[]) => void

Defined in: src/lib/memory/recallTool.ts:75 

Called with the conversation IDs returned via the chunk lane.

Parameters

ParameterType

conversationIds

string[]

Returns

void


onDiagnostics()?

optional onDiagnostics: (diagnostics: RecallDiagnostics) => void

Defined in: src/lib/memory/types.ts:550 

Parameters

ParameterType

diagnostics

RecallDiagnostics

Returns

void

Inherited from

RecallTelemetryCallbacks.onDiagnostics


onError()?

optional onError: (error: Error) => void

Defined in: src/lib/memory/types.ts:552 

Parameters

ParameterType

error

Error

Returns

void

Inherited from

RecallTelemetryCallbacks.onError


onFactsRanked()?

optional onFactsRanked: (facts: object[]) => void

Defined in: src/lib/memory/recallTool.ts:85 

Called with the ranked facts and their relevance scores, in rank order (highest first). A superset of onFactsRetrieved that additionally exposes RankedMemory.score — consumers that only need ids can keep using onFactsRetrieved; those that scale UI by relevance (e.g. the Memory Graph’s recall pulses) use this.

Parameters

ParameterType

facts

object[]

Returns

void


onFactsRetrieved()?

optional onFactsRetrieved: (factIds: string[]) => void

Defined in: src/lib/memory/recallTool.ts:77 

Called with the fact IDs returned via the fact lane.

Parameters

ParameterType

factIds

string[]

Returns

void


onRefused()?

optional onRefused: (refusal: object) => void

Defined in: src/lib/memory/recallTool.ts:73 

Called when the tool refuses a call without searching.

Parameters

ParameterType

refusal

object

refusal.reason

RecallRefusalReason

Returns

void


onTruncated()?

optional onTruncated: (truncation: RecallTruncation) => void

Defined in: src/lib/memory/types.ts:551 

Parameters

ParameterType

truncation

RecallTruncation

Returns

void

Inherited from

RecallTelemetryCallbacks.onTruncated

Last updated on