Interface: AgentRecallAsOfRequest
@kortexya/reasoninglayer / AgentRecallAsOfRequest
Interface: AgentRecallAsOfRequest
Section titled “Interface: AgentRecallAsOfRequest”Defined in: src/types/cognitive.ts:1575
Request the set of episodes an agent knew “as of” a past instant (memory time-travel).
Remarks
Section titled “Remarks”asOfTs is a unix seconds timestamp (not milliseconds) sent in the POST
body; only episodes recorded at or before it are visible.
Example
Section titled “Example”const past = await client.cognitive.recallAsOf({ agentId, asOfTs: Math.floor(Date.now() / 1000) - 3600, maxResults: 50,});console.log(past.count, past.episodeIds);Properties
Section titled “Properties”agentId
Section titled “agentId”agentId:
string
Defined in: src/types/cognitive.ts:1577
Agent whose memory is sliced (UUID).
asOfTs
Section titled “asOfTs”asOfTs:
number
Defined in: src/types/cognitive.ts:1581
As-of ceiling (unix seconds): only episodes recorded at or before this.
maxResults?
Section titled “maxResults?”
optionalmaxResults?:number|null
Defined in: src/types/cognitive.ts:1583
Cap on episodes returned, most-recent first (default: 100).
tenantId
Section titled “tenantId”tenantId:
string
Defined in: src/types/cognitive.ts:1579
Tenant the agent belongs to (UUID).