omp-channel 0.6.0 → 0.7.0
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/CHANGELOG.md +11 -0
- package/README.md +10 -3
- package/dist/adapter.d.ts +6 -1
- package/dist/adapter.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.js.map +1 -1
- package/dist/dispatcher.d.ts +3 -2
- package/dist/dispatcher.js +4 -4
- package/dist/dispatcher.js.map +1 -1
- package/dist/extension.d.ts +1 -0
- package/dist/extension.js +18 -1
- package/dist/extension.js.map +1 -1
- package/dist/http-adapter.d.ts +1 -0
- package/dist/http-adapter.js +9 -0
- package/dist/http-adapter.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +28 -0
- package/dist/protocol.js +13 -0
- package/dist/protocol.js.map +1 -1
- package/dist/reasoning.d.ts +57 -0
- package/dist/reasoning.js +362 -0
- package/dist/reasoning.js.map +1 -0
- package/dist/redact.d.ts +11 -0
- package/dist/redact.js +24 -0
- package/dist/redact.js.map +1 -1
- package/docs/protocol.md +75 -3
- package/package.json +1 -1
- package/schema/config.schema.json +10 -0
- package/schema/reasoning.schema.json +41 -0
|
@@ -72,6 +72,11 @@
|
|
|
72
72
|
"description": "Where activity reports are posted. No default: without it none are sent.",
|
|
73
73
|
"type": "string",
|
|
74
74
|
"pattern": "^/"
|
|
75
|
+
},
|
|
76
|
+
"reasoning": {
|
|
77
|
+
"description": "Where pieces of the agent's reasoning are posted. No default: without it none are sent.",
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^/"
|
|
75
80
|
}
|
|
76
81
|
},
|
|
77
82
|
"default": {}
|
|
@@ -176,6 +181,11 @@
|
|
|
176
181
|
"description": "Report the tools used for a message (name and intent, never arguments or results), when the transport takes it.",
|
|
177
182
|
"type": "boolean",
|
|
178
183
|
"default": true
|
|
184
|
+
},
|
|
185
|
+
"reasoning": {
|
|
186
|
+
"description": "Report the reasoning of the agent for a message (secrets hidden, line breaks kept), when the transport takes it.",
|
|
187
|
+
"type": "boolean",
|
|
188
|
+
"default": true
|
|
179
189
|
}
|
|
180
190
|
},
|
|
181
191
|
"default": {}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://example.com/omp-channel/schema/reasoning.schema.json",
|
|
4
|
+
"title": "Reasoning (agent to service)",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["type", "conversationId", "messageId", "replyTo", "seq", "text", "final", "at"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": { "const": "reasoning" },
|
|
10
|
+
"conversationId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"maxLength": 128,
|
|
14
|
+
"pattern": "^[A-Za-z0-9._:-]+$"
|
|
15
|
+
},
|
|
16
|
+
"messageId": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 128,
|
|
20
|
+
"pattern": "^[A-Za-z0-9._:-]+$"
|
|
21
|
+
},
|
|
22
|
+
"replyTo": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 128,
|
|
26
|
+
"pattern": "^[A-Za-z0-9._:-]+$"
|
|
27
|
+
},
|
|
28
|
+
"seq": { "type": "integer", "minimum": 0 },
|
|
29
|
+
"text": {
|
|
30
|
+
"description": "At most 4000 characters. Empty only on a final report.",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"maxLength": 4000
|
|
33
|
+
},
|
|
34
|
+
"final": { "type": "boolean" },
|
|
35
|
+
"truncated": { "const": true },
|
|
36
|
+
"at": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|