Sessions
Read the session's pinned manifest
GET
applicationKeyheader
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).
sessionId*stringNylorun-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
The pinned public manifest
application/json- response
sessionId*stringagentId*stringdefinition*|nullmanifestHash*stringmanifest*import { createClient } from "@nylorun/agents";const client = await createClient();const manifest = await client.session("ses_123").manifest();{ "sessionId": "string", "agentId": "string", "definition": { "name": "string", "version": 1 }, "manifestHash": "string", "manifest": { "property1": null, "property2": null }}Read a session's history GET
Previous Page
Get a session's model GET
The model the session's next turn uses (feature `session-model`): its own (`source: "session"`) while its provider is connected, else the Tenant's (`source: "tenant"`). `choice` is the session's own model, kept while its provider is disconnected.