API reference
Get a turn's pack
The pack of an accepted lease: system prompt, prompt, model, caps, tools, its hash, whose seat, and the session it may resume. Only the lease's own runner, with its current token.
Needs scope coordinator:read.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
lease_id*stringThe lease's id, lse_ and a ULID, from Runner heartbeat.
fencing_token?stringThe lease's current fencing token.
int64account_id?stringiohr.coordinator.v1.GetTurnPackResponse
application/json- response
iohr.coordinator.v1.GetTurnPackResponse
pack?iohr.coordinator.v1.TurnPack
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.coordinator.getTurnPack("<lease_id>"); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "pack": { "allowed_tools": [ "string" ], "attempt": 0, "checkout_path": "string", "context_ceiling": 0, "fencing_token": "string", "job_id": "string", "kind": "string", "lease_id": "string", "max_turns": 0, "model": "string", "pack_sha256": "string", "prompt": "string", "reply_shape": "string", "resume_runner_id": "string", "resume_session": "string", "system_prompt": "string", "thread_id": "string", "token_budget": 0, "turn_id": "string", "user": "string", "wall_clock_secs": 0 }}