Skip to content

Interface: AgentRecallAsOfRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AgentRecallAsOfRequest

Defined in: src/types/cognitive.ts:1575

Request the set of episodes an agent knew “as of” a past instant (memory time-travel).

asOfTs is a unix seconds timestamp (not milliseconds) sent in the POST body; only episodes recorded at or before it are visible.

const past = await client.cognitive.recallAsOf({
agentId,
asOfTs: Math.floor(Date.now() / 1000) - 3600,
maxResults: 50,
});
console.log(past.count, past.episodeIds);

agentId: string

Defined in: src/types/cognitive.ts:1577

Agent whose memory is sliced (UUID).


asOfTs: number

Defined in: src/types/cognitive.ts:1581

As-of ceiling (unix seconds): only episodes recorded at or before this.


optional maxResults?: number | null

Defined in: src/types/cognitive.ts:1583

Cap on episodes returned, most-recent first (default: 100).


tenantId: string

Defined in: src/types/cognitive.ts:1579

Tenant the agent belongs to (UUID).