NylorunDocsBeta
Runtime APIAgentsManifests

Download one file of a version's folder

GET
/v1/agent-manifests/{name}/versions/{version}/source/files/{path}

Streams the file at path (its path in the folder, with / percent-encoded as %2F) as it was saved.

Authorization

applicationKey
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

name*string

The agent manifest's name, such as triage

version*string

The version number

path*string

The file's path in the folder, percent-encoded

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 file's bytes

response?fileapplication/octet-stream
Formatbinary
import { createClient } from "@nylorun/agents";const client = await createClient();const agentMd = await client.agentManifests.sourceFile("assistant", 3, "AGENT.md"); // the file's bytes
"string"