NylorunDocsBeta
Runtime APIAgentsManifests

Get the folder a version was compiled from

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

The agent folder the version was saved from (feature agent-folders): its compiler, size and every file, sorted by path. A version saved as JSON has none (404).

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

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 folder

application/json
  1. response
name*string
version*integer
Range0 < value
compiler*string
files*integer
Range0 <= value
bytes*integer
Range0 <= value
entries*array<>
import { createClient } from "@nylorun/agents";const client = await createClient();const source = await client.agentManifests.source("assistant", 3); // 404 for a version saved as JSON
{  "name": "string",  "version": 1,  "compiler": "string",  "files": 0,  "bytes": 0,  "entries": [    {      "path": "string",      "size": 0,      "sha256": "string"    }  ]}