@mhome/conversation-protocol 2.0.0 → 3.0.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/README.md +12 -0
- package/fixtures/execution/enqueue.v1.json +152 -16
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/execution/envelope.v1.schema.json +135 -12
package/README.md
CHANGED
|
@@ -29,3 +29,15 @@ from the retired Agent contract/protocol crates. Client-facing root modules rema
|
|
|
29
29
|
Model data is re-exported from `llm-api`; there is one model-message representation. User-facing
|
|
30
30
|
messages intentionally use separate content types and never contain private model continuation.
|
|
31
31
|
Runtime state machines, checkpoint formats, prompts and recovery policy remain in Agent Runtime.
|
|
32
|
+
|
|
33
|
+
## Cloud admission model snapshot
|
|
34
|
+
|
|
35
|
+
Every cloud `LlmRoute` carries a required `model_snapshot` containing confirmed capabilities
|
|
36
|
+
and catalog `generation_support` (the camelCase `metadata.generationSupport` shape). Lion
|
|
37
|
+
persists it with desired parameters at request admission. Deployments adapt preferences against
|
|
38
|
+
these immutable facts; tool rounds and approval resumption never rediscover current metadata.
|
|
39
|
+
The portable `CompletionRequest` and its caller-owned constraints remain separate from this
|
|
40
|
+
snapshot. Version 3 stores `capabilities.input` as `image|video|audio|file` instead of
|
|
41
|
+
`vision: bool`. An old plan without the snapshot, or with `vision`, fails decoding instead
|
|
42
|
+
of silently changing behavior. This development contract change must be published and
|
|
43
|
+
adopted by Lion and Cloud together before deployment.
|
|
@@ -72,10 +72,27 @@
|
|
|
72
72
|
"OpenAI"
|
|
73
73
|
],
|
|
74
74
|
"temperature": 0.5,
|
|
75
|
-
"max_output_tokens": 8192,
|
|
76
75
|
"context_window_tokens": 128000,
|
|
77
76
|
"cache_control": true,
|
|
78
|
-
"reasoning_effort": null
|
|
77
|
+
"reasoning_effort": null,
|
|
78
|
+
"model_snapshot": {
|
|
79
|
+
"capabilities": {
|
|
80
|
+
"input": ["image"],
|
|
81
|
+
"tool_calling": true,
|
|
82
|
+
"structured_output": true
|
|
83
|
+
},
|
|
84
|
+
"generation_support": {
|
|
85
|
+
"temperature": true,
|
|
86
|
+
"maxTokens": true,
|
|
87
|
+
"thinking": true,
|
|
88
|
+
"reasoningEfforts": [
|
|
89
|
+
"high"
|
|
90
|
+
],
|
|
91
|
+
"temperatureWithReasoning": true,
|
|
92
|
+
"temperatureMax": null,
|
|
93
|
+
"maxOutputTokens": null
|
|
94
|
+
}
|
|
95
|
+
}
|
|
79
96
|
}
|
|
80
97
|
},
|
|
81
98
|
{
|
|
@@ -90,10 +107,27 @@
|
|
|
90
107
|
"OpenAI"
|
|
91
108
|
],
|
|
92
109
|
"temperature": 0.5,
|
|
93
|
-
"max_output_tokens": 8192,
|
|
94
110
|
"context_window_tokens": 128000,
|
|
95
111
|
"cache_control": true,
|
|
96
|
-
"reasoning_effort": null
|
|
112
|
+
"reasoning_effort": null,
|
|
113
|
+
"model_snapshot": {
|
|
114
|
+
"capabilities": {
|
|
115
|
+
"input": ["image"],
|
|
116
|
+
"tool_calling": true,
|
|
117
|
+
"structured_output": true
|
|
118
|
+
},
|
|
119
|
+
"generation_support": {
|
|
120
|
+
"temperature": true,
|
|
121
|
+
"maxTokens": true,
|
|
122
|
+
"thinking": true,
|
|
123
|
+
"reasoningEfforts": [
|
|
124
|
+
"high"
|
|
125
|
+
],
|
|
126
|
+
"temperatureWithReasoning": true,
|
|
127
|
+
"temperatureMax": null,
|
|
128
|
+
"maxOutputTokens": null
|
|
129
|
+
}
|
|
130
|
+
}
|
|
97
131
|
}
|
|
98
132
|
},
|
|
99
133
|
{
|
|
@@ -108,10 +142,27 @@
|
|
|
108
142
|
"OpenAI"
|
|
109
143
|
],
|
|
110
144
|
"temperature": 0.5,
|
|
111
|
-
"max_output_tokens": 8192,
|
|
112
145
|
"context_window_tokens": 128000,
|
|
113
146
|
"cache_control": true,
|
|
114
|
-
"reasoning_effort": null
|
|
147
|
+
"reasoning_effort": null,
|
|
148
|
+
"model_snapshot": {
|
|
149
|
+
"capabilities": {
|
|
150
|
+
"input": ["image"],
|
|
151
|
+
"tool_calling": true,
|
|
152
|
+
"structured_output": true
|
|
153
|
+
},
|
|
154
|
+
"generation_support": {
|
|
155
|
+
"temperature": true,
|
|
156
|
+
"maxTokens": true,
|
|
157
|
+
"thinking": true,
|
|
158
|
+
"reasoningEfforts": [
|
|
159
|
+
"high"
|
|
160
|
+
],
|
|
161
|
+
"temperatureWithReasoning": true,
|
|
162
|
+
"temperatureMax": null,
|
|
163
|
+
"maxOutputTokens": null
|
|
164
|
+
}
|
|
165
|
+
}
|
|
115
166
|
}
|
|
116
167
|
},
|
|
117
168
|
{
|
|
@@ -126,10 +177,27 @@
|
|
|
126
177
|
"OpenAI"
|
|
127
178
|
],
|
|
128
179
|
"temperature": 0.5,
|
|
129
|
-
"max_output_tokens": 8192,
|
|
130
180
|
"context_window_tokens": 128000,
|
|
131
181
|
"cache_control": true,
|
|
132
|
-
"reasoning_effort": null
|
|
182
|
+
"reasoning_effort": null,
|
|
183
|
+
"model_snapshot": {
|
|
184
|
+
"capabilities": {
|
|
185
|
+
"input": ["image"],
|
|
186
|
+
"tool_calling": true,
|
|
187
|
+
"structured_output": true
|
|
188
|
+
},
|
|
189
|
+
"generation_support": {
|
|
190
|
+
"temperature": true,
|
|
191
|
+
"maxTokens": true,
|
|
192
|
+
"thinking": true,
|
|
193
|
+
"reasoningEfforts": [
|
|
194
|
+
"high"
|
|
195
|
+
],
|
|
196
|
+
"temperatureWithReasoning": true,
|
|
197
|
+
"temperatureMax": null,
|
|
198
|
+
"maxOutputTokens": null
|
|
199
|
+
}
|
|
200
|
+
}
|
|
133
201
|
}
|
|
134
202
|
},
|
|
135
203
|
{
|
|
@@ -144,10 +212,27 @@
|
|
|
144
212
|
"OpenAI"
|
|
145
213
|
],
|
|
146
214
|
"temperature": 0.5,
|
|
147
|
-
"max_output_tokens": 8192,
|
|
148
215
|
"context_window_tokens": 128000,
|
|
149
216
|
"cache_control": true,
|
|
150
|
-
"reasoning_effort": null
|
|
217
|
+
"reasoning_effort": null,
|
|
218
|
+
"model_snapshot": {
|
|
219
|
+
"capabilities": {
|
|
220
|
+
"input": ["image"],
|
|
221
|
+
"tool_calling": true,
|
|
222
|
+
"structured_output": true
|
|
223
|
+
},
|
|
224
|
+
"generation_support": {
|
|
225
|
+
"temperature": true,
|
|
226
|
+
"maxTokens": true,
|
|
227
|
+
"thinking": true,
|
|
228
|
+
"reasoningEfforts": [
|
|
229
|
+
"high"
|
|
230
|
+
],
|
|
231
|
+
"temperatureWithReasoning": true,
|
|
232
|
+
"temperatureMax": null,
|
|
233
|
+
"maxOutputTokens": null
|
|
234
|
+
}
|
|
235
|
+
}
|
|
151
236
|
}
|
|
152
237
|
},
|
|
153
238
|
{
|
|
@@ -162,10 +247,27 @@
|
|
|
162
247
|
"OpenAI"
|
|
163
248
|
],
|
|
164
249
|
"temperature": 0.5,
|
|
165
|
-
"max_output_tokens": 8192,
|
|
166
250
|
"context_window_tokens": 128000,
|
|
167
251
|
"cache_control": true,
|
|
168
|
-
"reasoning_effort": null
|
|
252
|
+
"reasoning_effort": null,
|
|
253
|
+
"model_snapshot": {
|
|
254
|
+
"capabilities": {
|
|
255
|
+
"input": ["image"],
|
|
256
|
+
"tool_calling": true,
|
|
257
|
+
"structured_output": true
|
|
258
|
+
},
|
|
259
|
+
"generation_support": {
|
|
260
|
+
"temperature": true,
|
|
261
|
+
"maxTokens": true,
|
|
262
|
+
"thinking": true,
|
|
263
|
+
"reasoningEfforts": [
|
|
264
|
+
"high"
|
|
265
|
+
],
|
|
266
|
+
"temperatureWithReasoning": true,
|
|
267
|
+
"temperatureMax": null,
|
|
268
|
+
"maxOutputTokens": null
|
|
269
|
+
}
|
|
270
|
+
}
|
|
169
271
|
}
|
|
170
272
|
},
|
|
171
273
|
{
|
|
@@ -180,10 +282,27 @@
|
|
|
180
282
|
"OpenAI"
|
|
181
283
|
],
|
|
182
284
|
"temperature": 0.5,
|
|
183
|
-
"max_output_tokens": 8192,
|
|
184
285
|
"context_window_tokens": 128000,
|
|
185
286
|
"cache_control": true,
|
|
186
|
-
"reasoning_effort": null
|
|
287
|
+
"reasoning_effort": null,
|
|
288
|
+
"model_snapshot": {
|
|
289
|
+
"capabilities": {
|
|
290
|
+
"input": ["image"],
|
|
291
|
+
"tool_calling": true,
|
|
292
|
+
"structured_output": true
|
|
293
|
+
},
|
|
294
|
+
"generation_support": {
|
|
295
|
+
"temperature": true,
|
|
296
|
+
"maxTokens": true,
|
|
297
|
+
"thinking": true,
|
|
298
|
+
"reasoningEfforts": [
|
|
299
|
+
"high"
|
|
300
|
+
],
|
|
301
|
+
"temperatureWithReasoning": true,
|
|
302
|
+
"temperatureMax": null,
|
|
303
|
+
"maxOutputTokens": null
|
|
304
|
+
}
|
|
305
|
+
}
|
|
187
306
|
}
|
|
188
307
|
},
|
|
189
308
|
{
|
|
@@ -198,10 +317,27 @@
|
|
|
198
317
|
"OpenAI"
|
|
199
318
|
],
|
|
200
319
|
"temperature": 0.5,
|
|
201
|
-
"max_output_tokens": 8192,
|
|
202
320
|
"context_window_tokens": 128000,
|
|
203
321
|
"cache_control": true,
|
|
204
|
-
"reasoning_effort": null
|
|
322
|
+
"reasoning_effort": null,
|
|
323
|
+
"model_snapshot": {
|
|
324
|
+
"capabilities": {
|
|
325
|
+
"input": ["image"],
|
|
326
|
+
"tool_calling": true,
|
|
327
|
+
"structured_output": true
|
|
328
|
+
},
|
|
329
|
+
"generation_support": {
|
|
330
|
+
"temperature": true,
|
|
331
|
+
"maxTokens": true,
|
|
332
|
+
"thinking": true,
|
|
333
|
+
"reasoningEfforts": [
|
|
334
|
+
"high"
|
|
335
|
+
],
|
|
336
|
+
"temperatureWithReasoning": true,
|
|
337
|
+
"temperatureMax": null,
|
|
338
|
+
"maxOutputTokens": null
|
|
339
|
+
}
|
|
340
|
+
}
|
|
205
341
|
}
|
|
206
342
|
}
|
|
207
343
|
]
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -534,10 +534,10 @@
|
|
|
534
534
|
"model",
|
|
535
535
|
"provider_preferences",
|
|
536
536
|
"temperature",
|
|
537
|
-
"max_output_tokens",
|
|
538
537
|
"context_window_tokens",
|
|
539
538
|
"cache_control",
|
|
540
|
-
"reasoning_effort"
|
|
539
|
+
"reasoning_effort",
|
|
540
|
+
"model_snapshot"
|
|
541
541
|
],
|
|
542
542
|
"properties": {
|
|
543
543
|
"backend": {
|
|
@@ -565,22 +565,32 @@
|
|
|
565
565
|
}
|
|
566
566
|
]
|
|
567
567
|
},
|
|
568
|
-
"
|
|
568
|
+
"context_window_tokens": {
|
|
569
|
+
"type": "integer",
|
|
570
|
+
"exclusiveMinimum": 20000
|
|
571
|
+
},
|
|
572
|
+
"cache_control": {
|
|
569
573
|
"oneOf": [
|
|
570
574
|
{
|
|
571
|
-
"type": "
|
|
572
|
-
"minimum": 1
|
|
575
|
+
"type": "boolean"
|
|
573
576
|
},
|
|
574
577
|
{
|
|
575
578
|
"type": "null"
|
|
576
579
|
}
|
|
577
580
|
]
|
|
578
581
|
},
|
|
579
|
-
"
|
|
580
|
-
"
|
|
581
|
-
|
|
582
|
+
"reasoning_effort": {
|
|
583
|
+
"oneOf": [
|
|
584
|
+
{
|
|
585
|
+
"type": "string",
|
|
586
|
+
"minLength": 1
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"type": "null"
|
|
590
|
+
}
|
|
591
|
+
]
|
|
582
592
|
},
|
|
583
|
-
"
|
|
593
|
+
"thinking": {
|
|
584
594
|
"oneOf": [
|
|
585
595
|
{
|
|
586
596
|
"type": "boolean"
|
|
@@ -590,16 +600,18 @@
|
|
|
590
600
|
}
|
|
591
601
|
]
|
|
592
602
|
},
|
|
593
|
-
"
|
|
603
|
+
"fast_mode": {
|
|
594
604
|
"oneOf": [
|
|
595
605
|
{
|
|
596
|
-
"type": "
|
|
597
|
-
"minLength": 1
|
|
606
|
+
"type": "boolean"
|
|
598
607
|
},
|
|
599
608
|
{
|
|
600
609
|
"type": "null"
|
|
601
610
|
}
|
|
602
611
|
]
|
|
612
|
+
},
|
|
613
|
+
"model_snapshot": {
|
|
614
|
+
"$ref": "#/$defs/llm_model_snapshot"
|
|
603
615
|
}
|
|
604
616
|
}
|
|
605
617
|
},
|
|
@@ -1841,6 +1853,117 @@
|
|
|
1841
1853
|
"type": "integer"
|
|
1842
1854
|
}
|
|
1843
1855
|
}
|
|
1856
|
+
},
|
|
1857
|
+
"llm_generation_support": {
|
|
1858
|
+
"type": "object",
|
|
1859
|
+
"additionalProperties": false,
|
|
1860
|
+
"properties": {
|
|
1861
|
+
"temperature": {
|
|
1862
|
+
"type": [
|
|
1863
|
+
"boolean",
|
|
1864
|
+
"null"
|
|
1865
|
+
]
|
|
1866
|
+
},
|
|
1867
|
+
"maxTokens": {
|
|
1868
|
+
"type": [
|
|
1869
|
+
"boolean",
|
|
1870
|
+
"null"
|
|
1871
|
+
]
|
|
1872
|
+
},
|
|
1873
|
+
"thinking": {
|
|
1874
|
+
"type": [
|
|
1875
|
+
"boolean",
|
|
1876
|
+
"null"
|
|
1877
|
+
]
|
|
1878
|
+
},
|
|
1879
|
+
"reasoningEffortDefault": {
|
|
1880
|
+
"type": [
|
|
1881
|
+
"string",
|
|
1882
|
+
"null"
|
|
1883
|
+
]
|
|
1884
|
+
},
|
|
1885
|
+
"temperatureWithReasoning": {
|
|
1886
|
+
"type": [
|
|
1887
|
+
"boolean",
|
|
1888
|
+
"null"
|
|
1889
|
+
]
|
|
1890
|
+
},
|
|
1891
|
+
"reasoningEfforts": {
|
|
1892
|
+
"type": [
|
|
1893
|
+
"array",
|
|
1894
|
+
"null"
|
|
1895
|
+
],
|
|
1896
|
+
"items": {
|
|
1897
|
+
"enum": [
|
|
1898
|
+
"minimal",
|
|
1899
|
+
"low",
|
|
1900
|
+
"medium",
|
|
1901
|
+
"high",
|
|
1902
|
+
"xhigh",
|
|
1903
|
+
"max",
|
|
1904
|
+
"ultra"
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
"temperatureMax": {
|
|
1909
|
+
"type": [
|
|
1910
|
+
"number",
|
|
1911
|
+
"null"
|
|
1912
|
+
],
|
|
1913
|
+
"minimum": 0
|
|
1914
|
+
},
|
|
1915
|
+
"maxOutputTokens": {
|
|
1916
|
+
"type": [
|
|
1917
|
+
"integer",
|
|
1918
|
+
"null"
|
|
1919
|
+
],
|
|
1920
|
+
"minimum": 1
|
|
1921
|
+
},
|
|
1922
|
+
"fastMode": {
|
|
1923
|
+
"type": [
|
|
1924
|
+
"boolean",
|
|
1925
|
+
"null"
|
|
1926
|
+
]
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
"llm_model_snapshot": {
|
|
1931
|
+
"type": "object",
|
|
1932
|
+
"additionalProperties": false,
|
|
1933
|
+
"required": [
|
|
1934
|
+
"capabilities",
|
|
1935
|
+
"generation_support"
|
|
1936
|
+
],
|
|
1937
|
+
"properties": {
|
|
1938
|
+
"capabilities": {
|
|
1939
|
+
"type": "object",
|
|
1940
|
+
"additionalProperties": false,
|
|
1941
|
+
"required": [
|
|
1942
|
+
"input",
|
|
1943
|
+
"tool_calling",
|
|
1944
|
+
"structured_output"
|
|
1945
|
+
],
|
|
1946
|
+
"properties": {
|
|
1947
|
+
"input": {
|
|
1948
|
+
"type": "array",
|
|
1949
|
+
"uniqueItems": true,
|
|
1950
|
+
"items": {
|
|
1951
|
+
"type": "string",
|
|
1952
|
+
"enum": ["image", "video", "audio", "file"]
|
|
1953
|
+
}
|
|
1954
|
+
},
|
|
1955
|
+
"tool_calling": {
|
|
1956
|
+
"type": "boolean"
|
|
1957
|
+
},
|
|
1958
|
+
"structured_output": {
|
|
1959
|
+
"type": "boolean"
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"generation_support": {
|
|
1964
|
+
"$ref": "#/$defs/llm_generation_support"
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1844
1967
|
}
|
|
1845
1968
|
}
|
|
1846
1969
|
}
|