List an Agent's memory versions
Every change to its memories, newest first: the operation, the path (a rename's names its old one), and who made it: agent:<manifest>@<version> with the session, turn and trigger run of a turn's write, or the API caller. path keeps one memory's.
AuthorizationBearer <token>An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).
agentId*stringThe Agent id, percent-encoded
limit?integerA page holds at most the Tenant's Runtime limit pageItems (default 200); a larger limit gets that many
1 <= valuecursor?stringpath?stringOnly this memory's versions, relative to /memories
Nylorun-Protocol*stringThe protocol version, 18
Nylorun-Subject?stringThe person an application key acts for
Nylorun-Scopes?stringThe subject's space-separated scopes; required with a subject
A page of versions
application/json- response
versions*array<>nextCursor*string|nullimport { createClient } from "@nylorun/agents";const client = await createClient();const versions = await client.agents.memories.versions("users/alice/assistant", { path: "conventions/release.md",});{ "versions": [ { "id": "string", "path": "string", "fromPath": "string", "operation": "create", "bytes": 0, "contentSha256": "string", "actor": "string", "sessionId": "string", "turnId": "string", "triggerRunId": "string", "createdAt": "string" } ], "nextCursor": "string"}Delete a memory or a folder DELETE
Deletes the memory, or every memory in the folder the path names, each with a version that records the delete. Versions stay with the Agent.
Read a memory version GET
One version with the content it left (`null` for a delete). To roll a memory back, write this content again.