NylorunDocsBeta
Runtime APIAgentsMemory

Read a memory

GET
/v1/agents/{agentId}/memories/{path}

The memory's content, with its size, content_sha256, description and version.

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

path*string

The memory's path under /memories, percent-encoded: conventions%2Frelease.md is /memories/conventions/release.md

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

The memory

application/json
  1. response
path*string
bytes*integer
Range0 <= value
contentSha256*string
description*string|null
version*integer
Range0 < value
updatedAt*string
content*string
import { createClient } from "@nylorun/agents";const client = await createClient();const memory = await client.agents.memories.get(  "users/alice/assistant",  "conventions/release.md",);
{  "path": "string",  "bytes": 0,  "contentSha256": "string",  "description": "string",  "version": 1,  "updatedAt": "string",  "content": "string"}