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 e5c35f9
Browse filesBrowse the repository at this point in the historyBrowse files
description: 'The session the run belongs to. Send it back to continue the conversation.'
13045
+
example: 'b51a0e21-368b-4780-a220-14655bf28c55'
13046
+
type: 'string'
13047
+
status:
13048
+
description: '`started` when a new run began. `steered` when the session already had a run going and the prompt was delivered into it instead.'
13049
+
enum:
13050
+
- 'started'
13051
+
- 'steered'
13052
+
example: 'started'
13053
+
type: 'string'
13054
+
required:
13055
+
- 'session_id'
13056
+
- 'status'
13057
+
type: 'object'
13058
+
InternInvokeRequest:
13059
+
description: 'A prompt to run on the intern without holding a connection open.'
13060
+
example:
13061
+
input: 'New support ticket 48213. Case token: ct_9f2c. Investigate and reply.'
13062
+
properties:
13063
+
input:
13064
+
description: 'The prompt for the run, at most 32000 characters.'
13065
+
example: 'New support ticket 48213. Case token: ct_9f2c. Investigate and reply.'
13066
+
maxLength: 32000
13067
+
minLength: 1
13068
+
type: 'string'
13069
+
session_id:
13070
+
description: 'The session to run in. Send the `session_id` from an earlier `202` to continue that conversation, for example to hand the intern a decision on a case it is working. Omit it to start a new session. Only a `session_id` this endpoint issued to the same caller on the same intern is accepted; any other is refused with `404`.'
13071
+
example: 'b51a0e21-368b-4780-a220-14655bf28c55'
13072
+
maxLength: 256
13073
+
minLength: 1
13074
+
type: 'string'
13075
+
required:
13076
+
- 'input'
13077
+
type: 'object'
13037
13078
InternLifecycleError:
13038
13079
additionalProperties: false
13039
13080
description: 'Intern lifecycle request failure.'
@@ -37235,6 +37276,213 @@ paths:
37235
37276
- 'Interns'
37236
37277
x-speakeasy-group: 'interns'
37237
37278
x-speakeasy-name-override: 'chat'
37279
+
/interns/{internId}/invoke:
37280
+
post:
37281
+
description: "Starts a run on one of your interns and answers `202` with the `session_id` as soon as the intern accepts it. The run keeps going on the intern after the response. Nothing about its progress comes back on this request; the intern reports through its own tools, such as Slack.\n\nSend the same `session_id` later to continue the conversation, for example to hand the intern a decision on work it started. If that session already has a run going, the prompt is delivered into it and the status is `steered`. A `session_id` is accepted only from the caller it was issued to, on the same intern; any other, including sessions started from Slack or the chat endpoint, is refused with `404`.\n\nRuns started here self-drive: the intern consents to its own tool approvals, and a question it asks is answered by its own fallback. A run ends when the intern finishes it or after its execution deadline (1 hour by default).\n\nAvailable to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`."
description: 'The caller is outside the interns programme, the intern does not exist for this key, or the `session_id` was not issued to this caller on this intern (`not_found`).'
37351
+
'408':
37352
+
content:
37353
+
application/json:
37354
+
example:
37355
+
error:
37356
+
code: 408
37357
+
message: 'Operation timed out after 60s. Please try again later.'
description: 'The intern is not running or its runtime is too old to keep a run going without a connection (`intern_not_ready`), or the session already has a run that did not take the prompt (`busy`). A `busy` refusal carries `Retry-After`.'
37377
+
headers:
37378
+
Retry-After:
37379
+
description: 'Seconds to wait before retrying this request. Present only on a `busy` refusal.'
37380
+
required: false
37381
+
schema:
37382
+
description: 'Seconds to wait before retrying this request. Present only on a `busy` refusal.'
description: 'The intern did not accept the turn in time (`timeout`).'
37479
+
security:
37480
+
- apiKey: []
37481
+
summary: 'Start an intern run without waiting for it'
37482
+
tags:
37483
+
- 'Interns'
37484
+
x-speakeasy-group: 'interns'
37485
+
x-speakeasy-name-override: 'invoke'
37238
37486
/interns/{internId}/provision:
37239
37487
post:
37240
37488
description: 'Starts the first boot, or resumes an intern after suspension. This operation takes no request body. A body carrying any field is refused with 400 rather than ignored. 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.'
0 commit comments