@claudexor/schema 3.9.8 → 3.10.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.
@@ -0,0 +1,316 @@
1
+ {
2
+ "$ref": "#/definitions/ModelCallRequest",
3
+ "definitions": {
4
+ "ModelCallRequest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "source": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Non-empty identifier string."
11
+ },
12
+ "model": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "pattern": "\\S",
16
+ "description": "User-supplied string that must contain visible content, not just whitespace."
17
+ },
18
+ "account": {
19
+ "anyOf": [
20
+ {
21
+ "type": "object",
22
+ "properties": {
23
+ "mode": {
24
+ "type": "string",
25
+ "const": "auto"
26
+ },
27
+ "preferredProfileId": {
28
+ "$ref": "#/definitions/ModelCallRequest/properties/source",
29
+ "description": "Non-empty identifier string."
30
+ }
31
+ },
32
+ "required": [
33
+ "mode"
34
+ ],
35
+ "additionalProperties": false
36
+ },
37
+ {
38
+ "type": "object",
39
+ "properties": {
40
+ "mode": {
41
+ "type": "string",
42
+ "const": "pin"
43
+ },
44
+ "profileId": {
45
+ "$ref": "#/definitions/ModelCallRequest/properties/source"
46
+ }
47
+ },
48
+ "required": [
49
+ "mode",
50
+ "profileId"
51
+ ],
52
+ "additionalProperties": false
53
+ }
54
+ ],
55
+ "description": "Auto keeps a usable prior account; pin never selects another account."
56
+ },
57
+ "messages": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "properties": {
62
+ "role": {
63
+ "type": "string",
64
+ "enum": [
65
+ "system",
66
+ "developer",
67
+ "user",
68
+ "assistant",
69
+ "tool"
70
+ ]
71
+ },
72
+ "content": {
73
+ "anyOf": [
74
+ {
75
+ "anyOf": [
76
+ {
77
+ "type": "string"
78
+ },
79
+ {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object",
83
+ "additionalProperties": {}
84
+ }
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "type": "null"
90
+ }
91
+ ]
92
+ },
93
+ "name": {
94
+ "type": "string"
95
+ },
96
+ "tool_call_id": {
97
+ "$ref": "#/definitions/ModelCallRequest/properties/source",
98
+ "description": "Non-empty identifier string."
99
+ },
100
+ "tool_calls": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "object",
104
+ "properties": {
105
+ "id": {
106
+ "$ref": "#/definitions/ModelCallRequest/properties/source"
107
+ },
108
+ "type": {
109
+ "type": "string",
110
+ "const": "function"
111
+ },
112
+ "function": {
113
+ "type": "object",
114
+ "properties": {
115
+ "name": {
116
+ "$ref": "#/definitions/ModelCallRequest/properties/model"
117
+ },
118
+ "arguments": {
119
+ "type": "string"
120
+ }
121
+ },
122
+ "required": [
123
+ "name",
124
+ "arguments"
125
+ ],
126
+ "additionalProperties": false
127
+ }
128
+ },
129
+ "required": [
130
+ "id",
131
+ "type",
132
+ "function"
133
+ ],
134
+ "additionalProperties": false
135
+ }
136
+ },
137
+ "nativeContinuation": {
138
+ "type": "object",
139
+ "properties": {
140
+ "route": {
141
+ "type": "object",
142
+ "properties": {
143
+ "source": {
144
+ "$ref": "#/definitions/ModelCallRequest/properties/source"
145
+ },
146
+ "credentialProfileId": {
147
+ "$ref": "#/definitions/ModelCallRequest/properties/source"
148
+ },
149
+ "accountFingerprint": {
150
+ "type": [
151
+ "string",
152
+ "null"
153
+ ]
154
+ },
155
+ "model": {
156
+ "type": [
157
+ "string",
158
+ "null"
159
+ ]
160
+ }
161
+ },
162
+ "required": [
163
+ "source",
164
+ "credentialProfileId",
165
+ "accountFingerprint",
166
+ "model"
167
+ ],
168
+ "additionalProperties": false,
169
+ "description": "Selected route at dispatch; a result records the actually observed model, or null."
170
+ },
171
+ "format": {
172
+ "$ref": "#/definitions/ModelCallRequest/properties/model"
173
+ },
174
+ "payload": {}
175
+ },
176
+ "required": [
177
+ "route",
178
+ "format"
179
+ ],
180
+ "additionalProperties": false,
181
+ "description": "Complete provider-native assistant turn, bound to its account and model; replaces reconstruction on replay."
182
+ }
183
+ },
184
+ "required": [
185
+ "role",
186
+ "content"
187
+ ],
188
+ "additionalProperties": false,
189
+ "description": "Caller-owned conversation message. Text, content blocks, and tool arguments are not redacted or rewritten."
190
+ },
191
+ "minItems": 1
192
+ },
193
+ "tools": {
194
+ "type": "array",
195
+ "items": {
196
+ "type": "object",
197
+ "properties": {
198
+ "type": {
199
+ "type": "string",
200
+ "const": "function"
201
+ },
202
+ "function": {
203
+ "type": "object",
204
+ "properties": {
205
+ "name": {
206
+ "$ref": "#/definitions/ModelCallRequest/properties/model"
207
+ },
208
+ "description": {
209
+ "type": "string"
210
+ },
211
+ "parameters": {
212
+ "type": "object",
213
+ "additionalProperties": {}
214
+ },
215
+ "strict": {
216
+ "type": "boolean"
217
+ }
218
+ },
219
+ "required": [
220
+ "name",
221
+ "parameters"
222
+ ],
223
+ "additionalProperties": false
224
+ }
225
+ },
226
+ "required": [
227
+ "type",
228
+ "function"
229
+ ],
230
+ "additionalProperties": false,
231
+ "description": "A caller-executed function; the model transport never executes it or rewrites its JSON schema."
232
+ },
233
+ "default": []
234
+ },
235
+ "toolChoice": {
236
+ "anyOf": [
237
+ {
238
+ "type": "string",
239
+ "enum": [
240
+ "auto",
241
+ "none",
242
+ "required"
243
+ ]
244
+ },
245
+ {
246
+ "type": "object",
247
+ "properties": {
248
+ "type": {
249
+ "type": "string",
250
+ "const": "function"
251
+ },
252
+ "function": {
253
+ "type": "object",
254
+ "properties": {
255
+ "name": {
256
+ "$ref": "#/definitions/ModelCallRequest/properties/model"
257
+ }
258
+ },
259
+ "required": [
260
+ "name"
261
+ ],
262
+ "additionalProperties": false
263
+ }
264
+ },
265
+ "required": [
266
+ "type",
267
+ "function"
268
+ ],
269
+ "additionalProperties": false
270
+ }
271
+ ],
272
+ "default": "auto"
273
+ },
274
+ "options": {
275
+ "type": "object",
276
+ "properties": {
277
+ "reasoningEffort": {
278
+ "$ref": "#/definitions/ModelCallRequest/properties/model",
279
+ "description": "User-supplied string that must contain visible content, not just whitespace."
280
+ },
281
+ "serviceTier": {
282
+ "$ref": "#/definitions/ModelCallRequest/properties/model",
283
+ "description": "User-supplied string that must contain visible content, not just whitespace."
284
+ },
285
+ "parallelToolCalls": {
286
+ "type": "boolean"
287
+ },
288
+ "cacheKey": {
289
+ "$ref": "#/definitions/ModelCallRequest/properties/model",
290
+ "description": "User-supplied string that must contain visible content, not just whitespace."
291
+ },
292
+ "maxOutputTokens": {
293
+ "type": "integer",
294
+ "exclusiveMinimum": 0
295
+ },
296
+ "temperature": {
297
+ "type": "number"
298
+ }
299
+ },
300
+ "additionalProperties": false,
301
+ "description": "Generation options only, not a caller's context/output reserve; unsupported explicit options refuse before inference.",
302
+ "default": {}
303
+ }
304
+ },
305
+ "required": [
306
+ "source",
307
+ "model",
308
+ "account",
309
+ "messages"
310
+ ],
311
+ "additionalProperties": false,
312
+ "description": "One model generation request, stored only in a model-purpose payload outside the command journal."
313
+ }
314
+ },
315
+ "$schema": "http://json-schema.org/draft-07/schema#"
316
+ }