Generated from the same public contract that feeds the Monaco editor. Declaration-marked deprecated compatibility methods are intentionally excluded. Do not edit this page manually.
agent.list()agent.get()agent.create()agent.update()agent.listInbox()agent.getInboxItem()agent.pushInbox()agent.updateInboxItem()agent.removeInboxItem()agent.listPlugins()agent.getPlugin()agent.listRuns()agent.getRun()agent.listRunEvents()agent.listRunThreads()agent.startRun()agent.resumeRun()agent.retryRun()agent.tickRun()agent.cancelRun()agent.reconcileRuns()agent.listThreads()agent.getThread()agent.getThreadState()agent.getThreadShare()agent.enableThreadShare()agent.disableThreadShare()agent.getSharedThread()agent.listSharedThreadMessages()agent.getSharedThreadMessageExecutionDetails()agent.getSharedThreadMessageArtifact()agent.forkSharedThreadMessage()agent.createThread()agent.deleteThread()agent.restoreThread()agent.listThreadMessages()agent.sendMessage()agent.retryMessage()agent.cancelThread()agent.forkMessage()agent.renameThread()agent.resolveAction()agent.approveAction()agent.rejectAction()agent.submitAction()agent.compactThread()
agent.list()
Lists agents visible to the current execution context.
Signature
Example
agent.get()
Returns one agent by id.
Signature
Example
agent.create()
Creates a new agent. The server creates agentId, status, managed workspace,
timestamps, and version; supply an existing service-account user id only.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.update()
Updates mutable agent fields such as config, policy, or profile.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.listInbox()
Lists queued and historical inbox items for an agent.
Signature
Example
agent.getInboxItem()
Returns one inbox item for an agent.
Signature
Example
agent.pushInbox()
Enqueues a new inbox item for an agent.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.updateInboxItem()
Updates an existing inbox item.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.removeInboxItem()
Removes an inbox item.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.listPlugins()
Lists agent plugins configured for an agent.
Signature
Example
agent.getPlugin()
Returns one agent plugin definition for an agent.
Signature
Example
agent.listRuns()
Lists runs for an agent.
Signature
Example
agent.getRun()
Returns one agent run.
Signature
Example
agent.listRunEvents()
Lists persisted events for a run.
Signature
Example
agent.listRunThreads()
Lists assistant threads associated with a run.
Signature
Example
agent.startRun()
Starts a new agent run.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.resumeRun()
Resumes a paused run.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.retryRun()
Retries a failed or completed run from its retry policy.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.tickRun()
Forces one autonomous tick for a run.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.cancelRun()
Cancels a run, optionally recording a reason.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.reconcileRuns()
Reconciles stalled runs with the loop scheduler.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.listThreads()
Lists assistant threads visible through the agent helper.
Signature
Example
agent.getThread()
Returns one assistant thread.
Signature
Example
agent.getThreadState()
Returns the hidden runtime planning state for a thread.
Signature
Example
agent.getThreadShare()
Returns the current share state for a thread owned by the current user.
Signature
Example
agent.enableThreadShare()
Creates or re-enables a stable share link for a thread owned by the current user.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.disableThreadShare()
Disables the stable share link for a thread owned by the current user.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.getSharedThread()
Returns a read-only shared thread by share ID.
Signature
Example
agent.listSharedThreadMessages()
Lists visible messages for a shared thread.
Signature
Example
agent.getSharedThreadMessageExecutionDetails()
Returns sanitized execution details for a visible shared-thread message.
Signature
Example
agent.getSharedThreadMessageArtifact()
Returns one sanitized artifact for a visible shared-thread message.
Signature
Example
agent.forkSharedThreadMessage()
Forks a shared thread from a selected visible message.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.createThread()
Creates a new assistant thread and first message.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.deleteThread()
Soft-deletes a thread.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.restoreThread()
Restores a deleted thread.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.listThreadMessages()
Lists visible messages for a thread.
Signature
Example
agent.sendMessage()
Sends a new message into an existing thread.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.retryMessage()
Retries one assistant message.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.cancelThread()
Cancels in-flight work on a thread.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.forkMessage()
Forks a thread from a selected message.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.renameThread()
Renames a thread.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.resolveAction()
Resolves an action-required checkpoint with an explicit payload.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.approveAction()
Approves an action-required checkpoint.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.rejectAction()
Rejects an action-required checkpoint.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.submitAction()
Submits operator input for an action-required checkpoint.
Notes:
- Unavailable with
readOnly: true(throws an error).
Signature
Example
agent.compactThread()
Triggers thread compaction.
Notes:
- Unavailable with
readOnly: true(throws an error).

