Skip to content

Interface: AgentRecallAsOfRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Cognitive / AgentRecallAsOfRequest

Interface: AgentRecallAsOfRequest

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

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

Remarks

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

Example

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

Properties

agentId

agentId: string

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

Agent whose memory is sliced (UUID).


asOfTs

asOfTs: number

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

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


maxResults?

optional maxResults: number | null

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

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


tenantId

tenantId: string

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

Tenant the agent belongs to (UUID).