SDK — Agent Operations
SDK — Agent Operations
Source: packages/sdk/src/agents.ts.
RegisterAgentParams (mapping note)
autonomyLevel accepts a string (Intern, Junior, Senior, Principal); the SDK maps to the integer expected by the API (Intern→0, Junior→2, Senior→3, Principal→4; see agents.ts:157-165). If you pass an unknown level, it falls through to 0 (Intern).
⚠️ Known SDK gap (v1.x): the helper enum skips autonomy level 1. If you need level 1 (“Apprentice”), pass the integer literal
1directly. Tracked as an SDK issue.
Issuing a delegation (IBCT)
The SDK serialises actions joined by comma into the API’s capability field (see agents.ts:97-98) — the API normalises back to an array on the server side.