@1claw/openapi-spec 0.43.2 → 0.43.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openapi.json +89 -0
- package/openapi.yaml +67 -0
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -11281,6 +11281,67 @@
|
|
|
11281
11281
|
}
|
|
11282
11282
|
}
|
|
11283
11283
|
},
|
|
11284
|
+
"/v1/runtimes/{runtimeId}/chat": {
|
|
11285
|
+
"post": {
|
|
11286
|
+
"tags": [
|
|
11287
|
+
"Runtimes"
|
|
11288
|
+
],
|
|
11289
|
+
"summary": "Chat with a running runtime agent",
|
|
11290
|
+
"description": "Human-only. Proxies to the runtime container's OpenAI-compatible\n`POST /v1/chat/completions` (hermes / openclaw / openclaude chat bridge).\nStarts the runtime if stopped. Streams SSE when `Accept: text/event-stream`\nor `stream: true`. Conversation history is ephemeral (pass `messages`).\nRequires a public URL (shell access, Shroud sidecar, or HTTP hosting).\n",
|
|
11291
|
+
"operationId": "runtimeChat",
|
|
11292
|
+
"parameters": [
|
|
11293
|
+
{
|
|
11294
|
+
"name": "runtimeId",
|
|
11295
|
+
"in": "path",
|
|
11296
|
+
"required": true,
|
|
11297
|
+
"schema": {
|
|
11298
|
+
"type": "string",
|
|
11299
|
+
"format": "uuid"
|
|
11300
|
+
}
|
|
11301
|
+
}
|
|
11302
|
+
],
|
|
11303
|
+
"requestBody": {
|
|
11304
|
+
"required": true,
|
|
11305
|
+
"content": {
|
|
11306
|
+
"application/json": {
|
|
11307
|
+
"schema": {
|
|
11308
|
+
"$ref": "#/components/schemas/RuntimeChatRequest"
|
|
11309
|
+
}
|
|
11310
|
+
}
|
|
11311
|
+
}
|
|
11312
|
+
},
|
|
11313
|
+
"responses": {
|
|
11314
|
+
"200": {
|
|
11315
|
+
"description": "Chat completion (JSON) or SSE stream",
|
|
11316
|
+
"content": {
|
|
11317
|
+
"application/json": {
|
|
11318
|
+
"schema": {
|
|
11319
|
+
"type": "object",
|
|
11320
|
+
"additionalProperties": true
|
|
11321
|
+
}
|
|
11322
|
+
},
|
|
11323
|
+
"text/event-stream": {
|
|
11324
|
+
"schema": {
|
|
11325
|
+
"type": "string"
|
|
11326
|
+
}
|
|
11327
|
+
}
|
|
11328
|
+
}
|
|
11329
|
+
},
|
|
11330
|
+
"400": {
|
|
11331
|
+
"$ref": "#/components/responses/BadRequest"
|
|
11332
|
+
},
|
|
11333
|
+
"401": {
|
|
11334
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
11335
|
+
},
|
|
11336
|
+
"403": {
|
|
11337
|
+
"$ref": "#/components/responses/Forbidden"
|
|
11338
|
+
},
|
|
11339
|
+
"404": {
|
|
11340
|
+
"$ref": "#/components/responses/NotFound"
|
|
11341
|
+
}
|
|
11342
|
+
}
|
|
11343
|
+
}
|
|
11344
|
+
},
|
|
11284
11345
|
"/v1/agents/{agent_id}/memory": {
|
|
11285
11346
|
"get": {
|
|
11286
11347
|
"tags": [
|
|
@@ -20884,6 +20945,34 @@
|
|
|
20884
20945
|
}
|
|
20885
20946
|
}
|
|
20886
20947
|
},
|
|
20948
|
+
"RuntimeChatRequest": {
|
|
20949
|
+
"type": "object",
|
|
20950
|
+
"description": "Chat with the agent inside a runtime. Provide `message` and/or\na full OpenAI-style `messages` array (ephemeral history).\n",
|
|
20951
|
+
"properties": {
|
|
20952
|
+
"message": {
|
|
20953
|
+
"type": "string",
|
|
20954
|
+
"description": "Latest user message"
|
|
20955
|
+
},
|
|
20956
|
+
"messages": {
|
|
20957
|
+
"type": "array",
|
|
20958
|
+
"items": {
|
|
20959
|
+
"type": "object",
|
|
20960
|
+
"additionalProperties": true
|
|
20961
|
+
},
|
|
20962
|
+
"description": "OpenAI chat messages (optional history)"
|
|
20963
|
+
},
|
|
20964
|
+
"model": {
|
|
20965
|
+
"type": "string"
|
|
20966
|
+
},
|
|
20967
|
+
"provider": {
|
|
20968
|
+
"type": "string"
|
|
20969
|
+
},
|
|
20970
|
+
"stream": {
|
|
20971
|
+
"type": "boolean",
|
|
20972
|
+
"description": "Request SSE streaming (default true when Accept is text/event-stream)"
|
|
20973
|
+
}
|
|
20974
|
+
}
|
|
20975
|
+
},
|
|
20887
20976
|
"MemoryEntry": {
|
|
20888
20977
|
"type": "object",
|
|
20889
20978
|
"required": [
|
package/openapi.yaml
CHANGED
|
@@ -7190,6 +7190,50 @@ paths:
|
|
|
7190
7190
|
"404":
|
|
7191
7191
|
$ref: "#/components/responses/NotFound"
|
|
7192
7192
|
|
|
7193
|
+
/v1/runtimes/{runtimeId}/chat:
|
|
7194
|
+
post:
|
|
7195
|
+
tags: [Runtimes]
|
|
7196
|
+
summary: Chat with a running runtime agent
|
|
7197
|
+
description: |
|
|
7198
|
+
Human-only. Proxies to the runtime container's OpenAI-compatible
|
|
7199
|
+
`POST /v1/chat/completions` (hermes / openclaw / openclaude chat bridge).
|
|
7200
|
+
Starts the runtime if stopped. Streams SSE when `Accept: text/event-stream`
|
|
7201
|
+
or `stream: true`. Conversation history is ephemeral (pass `messages`).
|
|
7202
|
+
Requires a public URL (shell access, Shroud sidecar, or HTTP hosting).
|
|
7203
|
+
operationId: runtimeChat
|
|
7204
|
+
parameters:
|
|
7205
|
+
- name: runtimeId
|
|
7206
|
+
in: path
|
|
7207
|
+
required: true
|
|
7208
|
+
schema:
|
|
7209
|
+
type: string
|
|
7210
|
+
format: uuid
|
|
7211
|
+
requestBody:
|
|
7212
|
+
required: true
|
|
7213
|
+
content:
|
|
7214
|
+
application/json:
|
|
7215
|
+
schema:
|
|
7216
|
+
$ref: "#/components/schemas/RuntimeChatRequest"
|
|
7217
|
+
responses:
|
|
7218
|
+
"200":
|
|
7219
|
+
description: Chat completion (JSON) or SSE stream
|
|
7220
|
+
content:
|
|
7221
|
+
application/json:
|
|
7222
|
+
schema:
|
|
7223
|
+
type: object
|
|
7224
|
+
additionalProperties: true
|
|
7225
|
+
text/event-stream:
|
|
7226
|
+
schema:
|
|
7227
|
+
type: string
|
|
7228
|
+
"400":
|
|
7229
|
+
$ref: "#/components/responses/BadRequest"
|
|
7230
|
+
"401":
|
|
7231
|
+
$ref: "#/components/responses/Unauthorized"
|
|
7232
|
+
"403":
|
|
7233
|
+
$ref: "#/components/responses/Forbidden"
|
|
7234
|
+
"404":
|
|
7235
|
+
$ref: "#/components/responses/NotFound"
|
|
7236
|
+
|
|
7193
7237
|
# ---------------------------------------------------------------------------
|
|
7194
7238
|
# Agent Memory
|
|
7195
7239
|
# ---------------------------------------------------------------------------
|
|
@@ -13724,6 +13768,29 @@ components:
|
|
|
13724
13768
|
max_session_minutes:
|
|
13725
13769
|
type: integer
|
|
13726
13770
|
|
|
13771
|
+
RuntimeChatRequest:
|
|
13772
|
+
type: object
|
|
13773
|
+
description: |
|
|
13774
|
+
Chat with the agent inside a runtime. Provide `message` and/or
|
|
13775
|
+
a full OpenAI-style `messages` array (ephemeral history).
|
|
13776
|
+
properties:
|
|
13777
|
+
message:
|
|
13778
|
+
type: string
|
|
13779
|
+
description: Latest user message
|
|
13780
|
+
messages:
|
|
13781
|
+
type: array
|
|
13782
|
+
items:
|
|
13783
|
+
type: object
|
|
13784
|
+
additionalProperties: true
|
|
13785
|
+
description: OpenAI chat messages (optional history)
|
|
13786
|
+
model:
|
|
13787
|
+
type: string
|
|
13788
|
+
provider:
|
|
13789
|
+
type: string
|
|
13790
|
+
stream:
|
|
13791
|
+
type: boolean
|
|
13792
|
+
description: Request SSE streaming (default true when Accept is text/event-stream)
|
|
13793
|
+
|
|
13727
13794
|
# --- Agent Memory ---
|
|
13728
13795
|
|
|
13729
13796
|
MemoryEntry:
|