NylorunDocsBeta
Runtime APISessions

Get a session's model

GET
/v1/sessions/{sessionId}/model

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.

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

sessionId*string

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 session's model

application/json
  1. response
configured*false
Value infalse
choice?
curl -X GET "https://example.com/v1/sessions/string/model" \  -H "Nylorun-Protocol: string"
{  "configured": false,  "choice": {    "provider": "string",    "model": "string"  }}