You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 190f718
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+48-7Lines changed: 48 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -8523,6 +8523,17 @@ components:
8523
8523
required:
8524
8524
- 'deleted'
8525
8525
type: 'object'
8526
+
DeleteInternRequest:
8527
+
additionalProperties: false
8528
+
description: 'Optional consent for a teardown that discards the workspace.'
8529
+
example:
8530
+
acknowledge_workspace_loss: true
8531
+
properties:
8532
+
acknowledge_workspace_loss:
8533
+
default: false
8534
+
description: 'Delete even though the workspace backup was not confirmed. Defaults to false, which refuses the teardown when a workspace archive is missing.'
description: 'The request `model` when given, or `openrouter/intern`. The final chunk may carry the model the intern reported for the run instead.'
12511
+
description: 'The runtime''s identifier for the model the intern is running, as the intern reports it. Each chunk carries the model from the event behind it: `openrouter/intern` on chunks emitted before the intern has reported one and on chunks the API emits itself (timeout, run-ended and severed-stream errors and their final usage chunk), even after an earlier chunk named a model. It can change within a stream. It is not an OpenRouter model slug, and the request `model` is never used.'
12501
12512
type: 'string'
12502
12513
object:
12503
12514
enum:
12504
12515
- 'chat.completion.chunk'
12505
12516
type: 'string'
12506
12517
session_id:
12507
-
description: 'On the final chunk of every response, the daemon session to continue with, or `null` when the run failed before the intern reported one. Send it as `session_id` on the next request, including the `tool` reply to an interaction.'
12518
+
description: 'On the final chunk of every response, the daemon session to continue with, or `null` when the run failed before the intern reported one. Send it as `session_id` on the next request, including the `tool` reply to an interaction. Session ids are client-visible and scoped to the intern''s own daemon.'
12508
12519
example: 'ses_7f3c9a'
12509
12520
type:
12510
12521
- 'string'
@@ -12536,20 +12547,20 @@ components:
12536
12547
minItems: 1
12537
12548
type: 'array'
12538
12549
model:
12539
-
description: 'Accepted for OpenAI compatibility and ignored. Streamed chunks report the model the intern actually used, or `openrouter/intern` when it did not report one.'
12550
+
description: 'Accepted for OpenAI compatibility and never used. The intern runs the model configured on it (`PATCH` the intern to change it). Streamed chunks report the runtime''s identifier for that model as the intern reports it, or `openrouter/intern` on chunks whose event carries no model (before the intern reports one, and on the chunks the API emits itself: the timeout, run-ended and severed-stream error chunks, the stop chunk of a replay that ends without a terminal daemon event, and the final usage chunk after any of them). A usage chunk that follows a daemon completion event carries the model the intern reported.'
12540
12551
example: 'openrouter/intern'
12541
12552
maxLength: 256
12542
12553
minLength: 1
12543
12554
type: 'string'
12544
12555
session_id:
12545
-
description: 'The daemon session to continue, as returned in `session_id` on the final chunk of an earlier response. Omit it to start a new session. Required when the last message has role `tool`.'
12556
+
description: 'The daemon session to continue, as returned in `session_id` on the final chunk of an earlier response. Omit it to start a new session. An id the intern has not seen before is not an error: it starts a new session under that id, so a mistyped id forks the conversation. Sessions are scoped to the intern''s own daemon. Required when the last message has role `tool`.'
12546
12557
example: 'ses_7f3c9a'
12547
12558
maxLength: 256
12548
12559
minLength: 1
12549
12560
type: 'string'
12550
12561
stream:
12551
12562
const: true
12552
-
description: 'Must be `true`. This endpoint only streams.'
12563
+
description: 'Must be `true`. This endpoint only streams. `false` or an omitted `stream` is refused with `400` and reason `bad_request`.'
12553
12564
example: true
12554
12565
type: 'boolean'
12555
12566
required:
@@ -27809,8 +27820,10 @@ components:
27809
27820
- 'string'
27810
27821
- 'null'
27811
27822
model:
27812
-
description: 'New OpenRouter model slug. Null restores the workspace default.'
27823
+
description: 'New OpenRouter model slug in `author/slug` form (an optional `:variant` suffix is accepted). Other shapes are refused with 400. Null restores the workspace default. Takes effect on the next provision: until then `GET` shows this configured model while chat chunks show the model the running intern reports.'
description: 'Starts safe teardown of the intern, its runtime and its private vault. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.'
36221
+
description: 'Starts safe teardown of the intern, its runtime and its private vault. The body is optional. Send `{"acknowledge_workspace_loss": true}` to delete a `destroy_failed` intern whose `last_failure_message` names `workspace_archive_failed`, accepting that its workspace is not backed up. The request body is capped at 1048576 bytes and a larger body is refused with 413. The API key selects the caller, workspace and visible interns. There is no default workspace fallback. Requests on regional hostnames such as `eu.openrouter.ai` are refused. [API key](/docs/api-reference/authentication) required.'
36209
36222
operationId: 'deleteIntern'
36210
36223
parameters:
36211
36224
- description: 'ID of an intern visible to the authenticated API key.'
@@ -36217,6 +36230,14 @@ paths:
36217
36230
example: '7c9e6679-7425-40de-944b-e07fc1f90ae7'
36218
36231
minLength: 1
36219
36232
type: 'string'
36233
+
requestBody:
36234
+
content:
36235
+
application/json:
36236
+
example:
36237
+
acknowledge_workspace_loss: true
36238
+
schema:
36239
+
$ref: '#/components/schemas/DeleteInternRequest'
36240
+
required: true
36220
36241
responses:
36221
36242
'202':
36222
36243
content:
@@ -36226,6 +36247,16 @@ paths:
36226
36247
schema:
36227
36248
$ref: '#/components/schemas/DeleteInternResponse'
36228
36249
description: 'The operation was accepted.'
36250
+
'400':
36251
+
content:
36252
+
application/json:
36253
+
example:
36254
+
error:
36255
+
code: 'invalid_body'
36256
+
message: 'Invalid request body'
36257
+
schema:
36258
+
$ref: '#/components/schemas/InternLifecycleError'
36259
+
description: 'The request body is invalid.'
36229
36260
'401':
36230
36261
content:
36231
36262
application/json:
@@ -36276,6 +36307,16 @@ paths:
36276
36307
schema:
36277
36308
$ref: '#/components/schemas/InternLifecycleError'
36278
36309
description: 'The intern is not in a state that allows this operation.'
36310
+
'413':
36311
+
content:
36312
+
application/json:
36313
+
example:
36314
+
error:
36315
+
code: 'payload_too_large'
36316
+
message: 'Request body exceeds 1048576 bytes'
36317
+
schema:
36318
+
$ref: '#/components/schemas/InternLifecycleError'
36319
+
description: 'The request body is larger than 1048576 bytes.'
0 commit comments