NylorunDocsBeta
Runtime APIAgentsMemory

List an Agent's memories

GET
/v1/agents/{agentId}/memories

Its memories by path, each with its size, content_sha256, frontmatter description and version. pathPrefix keeps one folder's (conventions for /memories/conventions/…).

Authorization

headerAuthorizationBearer <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).

Path Parameters

agentId*string

The Agent id, percent-encoded

Query Parameters

limit?integer

A page holds at most the Tenant's Runtime limit pageItems (default 200); a larger limit gets that many

Range1 <= value
cursor?string
pathPrefix?string

Only the memories in this folder, relative to /memories

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Nylorun-Subject?string

The person an application key acts for

Nylorun-Scopes?string

The subject's space-separated scopes; required with a subject

Response Body

A page of memories

application/json
  1. response
memories*array<>
nextCursor*string|null
import { createClient } from "@nylorun/agents";const client = await createClient();const memories = await client.agents.memories.list("users/alice/assistant", {  pathPrefix: "conventions",});
{  "memories": [    {      "path": "string",      "bytes": 0,      "contentSha256": "string",      "description": "string",      "version": 1,      "updatedAt": "string"    }  ],  "nextCursor": "string"}