@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16274
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/dist/llm.d.ts +60 -60
- package/dist/protocols/anthropic-messages.d.ts +303 -303
- package/dist/protocols/anthropic-messages.js +1 -0
- package/dist/protocols/bedrock-converse.d.ts +246 -242
- package/dist/protocols/gemini.d.ts +136 -132
- package/dist/protocols/gemini.js +1 -0
- package/dist/protocols/open-responses.d.ts +232 -232
- package/dist/protocols/openai-chat.d.ts +147 -141
- package/dist/protocols/openai-chat.js +1 -0
- package/dist/protocols/openai-compatible-chat.d.ts +48 -46
- package/dist/protocols/openai-compatible-responses.d.ts +56 -56
- package/dist/protocols/openai-responses.d.ts +388 -388
- package/dist/protocols/shared.d.ts +5 -4
- package/dist/protocols/shared.js +1 -0
- package/dist/protocols/utils/bedrock-media.d.ts +10 -10
- package/dist/protocols/utils/tool-stream.d.ts +180 -180
- package/dist/providers/amazon-bedrock.d.ts +109 -107
- package/dist/providers/anthropic-compatible.d.ts +145 -145
- package/dist/providers/anthropic.d.ts +145 -145
- package/dist/providers/azure.d.ts +112 -110
- package/dist/providers/cloudflare.d.ts +144 -138
- package/dist/providers/github-copilot.d.ts +112 -110
- package/dist/providers/google-vertex-chat.d.ts +48 -46
- package/dist/providers/google-vertex-messages.d.ts +145 -146
- package/dist/providers/google-vertex-responses.d.ts +56 -56
- package/dist/providers/google-vertex.d.ts +52 -50
- package/dist/providers/google.d.ts +52 -50
- package/dist/providers/openai-compatible-responses.d.ts +56 -56
- package/dist/providers/openai-compatible.d.ts +48 -46
- package/dist/providers/openai.d.ts +176 -174
- package/dist/providers/openrouter.d.ts +147 -141
- package/dist/providers/xai.d.ts +112 -110
- package/dist/route/client.d.ts +60 -60
- package/dist/schema/errors.d.ts +2 -6
- package/dist/schema/errors.js +2 -5
- package/dist/schema/events.d.ts +1117 -1115
- package/dist/schema/messages.d.ts +9 -9
- package/dist/schema/messages.js +3 -4
- package/dist/tool-runtime.js +1 -1
- package/dist/tool.d.ts +5 -4
- package/dist/tool.js +1 -0
- package/package.json +5 -5
|
@@ -141,91 +141,91 @@ interface ParserState {
|
|
|
141
141
|
* the streaming-event state machine.
|
|
142
142
|
*/
|
|
143
143
|
export declare const protocol: Protocol<{
|
|
144
|
-
readonly messages: readonly (
|
|
145
|
-
readonly role:
|
|
146
|
-
readonly content:
|
|
147
|
-
readonly
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
readonly image:
|
|
172
|
-
readonly format:
|
|
173
|
-
readonly source:
|
|
174
|
-
readonly bytes:
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
readonly document:
|
|
179
|
-
readonly format:
|
|
180
|
-
readonly name:
|
|
181
|
-
readonly source:
|
|
182
|
-
readonly bytes:
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
readonly role:
|
|
196
|
-
readonly content:
|
|
197
|
-
readonly
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
readonly
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
readonly
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
readonly
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
144
|
+
readonly messages: readonly ({
|
|
145
|
+
readonly role: "user";
|
|
146
|
+
readonly content: readonly ({
|
|
147
|
+
readonly cachePoint: {
|
|
148
|
+
readonly type: "default";
|
|
149
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
150
|
+
};
|
|
151
|
+
} | {
|
|
152
|
+
readonly image: {
|
|
153
|
+
readonly format: "png" | "jpeg" | "gif" | "webp";
|
|
154
|
+
readonly source: {
|
|
155
|
+
readonly bytes: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
} | {
|
|
159
|
+
readonly document: {
|
|
160
|
+
readonly format: "pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md";
|
|
161
|
+
readonly name: string;
|
|
162
|
+
readonly source: {
|
|
163
|
+
readonly bytes: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
} | {
|
|
167
|
+
readonly text: string;
|
|
168
|
+
} | {
|
|
169
|
+
readonly toolResult: {
|
|
170
|
+
readonly content: readonly ({
|
|
171
|
+
readonly image: {
|
|
172
|
+
readonly format: "png" | "jpeg" | "gif" | "webp";
|
|
173
|
+
readonly source: {
|
|
174
|
+
readonly bytes: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
} | {
|
|
178
|
+
readonly document: {
|
|
179
|
+
readonly format: "pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md";
|
|
180
|
+
readonly name: string;
|
|
181
|
+
readonly source: {
|
|
182
|
+
readonly bytes: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
} | {
|
|
186
|
+
readonly text: string;
|
|
187
|
+
} | {
|
|
188
|
+
readonly json: unknown;
|
|
189
|
+
})[];
|
|
190
|
+
readonly toolUseId: string;
|
|
191
|
+
readonly status?: "error" | "success" | undefined;
|
|
192
|
+
};
|
|
193
|
+
})[];
|
|
194
|
+
} | {
|
|
195
|
+
readonly role: "assistant";
|
|
196
|
+
readonly content: readonly ({
|
|
197
|
+
readonly cachePoint: {
|
|
198
|
+
readonly type: "default";
|
|
199
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
200
|
+
};
|
|
201
|
+
} | {
|
|
202
|
+
readonly text: string;
|
|
203
|
+
} | {
|
|
204
|
+
readonly toolUse: {
|
|
205
|
+
readonly toolUseId: string;
|
|
206
|
+
readonly name: string;
|
|
207
|
+
readonly input: unknown;
|
|
208
|
+
};
|
|
209
|
+
} | {
|
|
210
|
+
readonly reasoningContent: {
|
|
211
|
+
readonly reasoningText: {
|
|
212
|
+
readonly text: string;
|
|
213
|
+
readonly signature?: string | undefined;
|
|
214
|
+
};
|
|
215
|
+
} | {
|
|
216
|
+
readonly redactedContent: string;
|
|
217
|
+
};
|
|
218
|
+
})[];
|
|
219
|
+
})[];
|
|
220
220
|
readonly modelId: string;
|
|
221
|
-
readonly system?: readonly (
|
|
222
|
-
readonly cachePoint:
|
|
223
|
-
readonly type:
|
|
224
|
-
readonly ttl
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
readonly text:
|
|
228
|
-
}
|
|
221
|
+
readonly system?: readonly ({
|
|
222
|
+
readonly cachePoint: {
|
|
223
|
+
readonly type: "default";
|
|
224
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
225
|
+
};
|
|
226
|
+
} | {
|
|
227
|
+
readonly text: string;
|
|
228
|
+
})[] | undefined;
|
|
229
229
|
readonly inferenceConfig?: {
|
|
230
230
|
readonly maxTokens?: number | undefined;
|
|
231
231
|
readonly temperature?: number | undefined;
|
|
@@ -233,29 +233,31 @@ export declare const protocol: Protocol<{
|
|
|
233
233
|
readonly stopSequences?: readonly string[] | undefined;
|
|
234
234
|
} | undefined;
|
|
235
235
|
readonly toolConfig?: {
|
|
236
|
-
readonly tools: readonly (
|
|
237
|
-
readonly cachePoint:
|
|
238
|
-
readonly type:
|
|
239
|
-
readonly ttl
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
readonly toolSpec:
|
|
243
|
-
readonly name:
|
|
244
|
-
readonly description:
|
|
245
|
-
readonly inputSchema:
|
|
246
|
-
readonly json:
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
readonly
|
|
254
|
-
}
|
|
255
|
-
readonly
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
236
|
+
readonly tools: readonly ({
|
|
237
|
+
readonly cachePoint: {
|
|
238
|
+
readonly type: "default";
|
|
239
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
240
|
+
};
|
|
241
|
+
} | {
|
|
242
|
+
readonly toolSpec: {
|
|
243
|
+
readonly name: string;
|
|
244
|
+
readonly description: string;
|
|
245
|
+
readonly inputSchema: {
|
|
246
|
+
readonly json: {
|
|
247
|
+
readonly [x: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
})[];
|
|
252
|
+
readonly toolChoice?: {
|
|
253
|
+
readonly auto: {};
|
|
254
|
+
} | {
|
|
255
|
+
readonly any: {};
|
|
256
|
+
} | {
|
|
257
|
+
readonly tool: {
|
|
258
|
+
readonly name: string;
|
|
259
|
+
};
|
|
260
|
+
} | undefined;
|
|
259
261
|
} | undefined;
|
|
260
262
|
readonly additionalModelRequestFields?: {
|
|
261
263
|
readonly [x: string]: unknown;
|
|
@@ -271,36 +273,36 @@ export declare const protocol: Protocol<{
|
|
|
271
273
|
} | undefined;
|
|
272
274
|
readonly metrics?: unknown;
|
|
273
275
|
} | undefined;
|
|
274
|
-
readonly messageStart?:
|
|
275
|
-
readonly role:
|
|
276
|
-
}
|
|
276
|
+
readonly messageStart?: {
|
|
277
|
+
readonly role: string;
|
|
278
|
+
} | undefined;
|
|
277
279
|
readonly contentBlockStart?: {
|
|
278
280
|
readonly contentBlockIndex: number;
|
|
279
281
|
readonly start?: {
|
|
280
|
-
readonly toolUse?:
|
|
281
|
-
readonly toolUseId:
|
|
282
|
-
readonly name:
|
|
283
|
-
}
|
|
282
|
+
readonly toolUse?: {
|
|
283
|
+
readonly toolUseId: string;
|
|
284
|
+
readonly name: string;
|
|
285
|
+
} | undefined;
|
|
284
286
|
} | undefined;
|
|
285
287
|
} | undefined;
|
|
286
288
|
readonly contentBlockDelta?: {
|
|
287
289
|
readonly contentBlockIndex: number;
|
|
288
290
|
readonly delta?: {
|
|
289
291
|
readonly text?: string | undefined;
|
|
290
|
-
readonly toolUse?:
|
|
291
|
-
readonly input:
|
|
292
|
-
}
|
|
292
|
+
readonly toolUse?: {
|
|
293
|
+
readonly input: string;
|
|
294
|
+
} | undefined;
|
|
293
295
|
readonly reasoningContent?: {
|
|
294
|
-
readonly text?: string | undefined;
|
|
295
296
|
readonly data?: string | undefined;
|
|
297
|
+
readonly text?: string | undefined;
|
|
296
298
|
readonly signature?: string | undefined;
|
|
297
299
|
readonly redactedContent?: string | undefined;
|
|
298
300
|
} | undefined;
|
|
299
301
|
} | undefined;
|
|
300
302
|
} | undefined;
|
|
301
|
-
readonly contentBlockStop?:
|
|
302
|
-
readonly contentBlockIndex:
|
|
303
|
-
}
|
|
303
|
+
readonly contentBlockStop?: {
|
|
304
|
+
readonly contentBlockIndex: number;
|
|
305
|
+
} | undefined;
|
|
304
306
|
readonly messageStop?: {
|
|
305
307
|
readonly stopReason: string;
|
|
306
308
|
readonly additionalModelResponseFields?: unknown;
|
|
@@ -341,36 +343,36 @@ export declare const protocol: Protocol<{
|
|
|
341
343
|
} | undefined;
|
|
342
344
|
readonly metrics?: unknown;
|
|
343
345
|
} | undefined;
|
|
344
|
-
readonly messageStart?:
|
|
345
|
-
readonly role:
|
|
346
|
-
}
|
|
346
|
+
readonly messageStart?: {
|
|
347
|
+
readonly role: string;
|
|
348
|
+
} | undefined;
|
|
347
349
|
readonly contentBlockStart?: {
|
|
348
350
|
readonly contentBlockIndex: number;
|
|
349
351
|
readonly start?: {
|
|
350
|
-
readonly toolUse?:
|
|
351
|
-
readonly toolUseId:
|
|
352
|
-
readonly name:
|
|
353
|
-
}
|
|
352
|
+
readonly toolUse?: {
|
|
353
|
+
readonly toolUseId: string;
|
|
354
|
+
readonly name: string;
|
|
355
|
+
} | undefined;
|
|
354
356
|
} | undefined;
|
|
355
357
|
} | undefined;
|
|
356
358
|
readonly contentBlockDelta?: {
|
|
357
359
|
readonly contentBlockIndex: number;
|
|
358
360
|
readonly delta?: {
|
|
359
361
|
readonly text?: string | undefined;
|
|
360
|
-
readonly toolUse?:
|
|
361
|
-
readonly input:
|
|
362
|
-
}
|
|
362
|
+
readonly toolUse?: {
|
|
363
|
+
readonly input: string;
|
|
364
|
+
} | undefined;
|
|
363
365
|
readonly reasoningContent?: {
|
|
364
|
-
readonly text?: string | undefined;
|
|
365
366
|
readonly data?: string | undefined;
|
|
367
|
+
readonly text?: string | undefined;
|
|
366
368
|
readonly signature?: string | undefined;
|
|
367
369
|
readonly redactedContent?: string | undefined;
|
|
368
370
|
} | undefined;
|
|
369
371
|
} | undefined;
|
|
370
372
|
} | undefined;
|
|
371
|
-
readonly contentBlockStop?:
|
|
372
|
-
readonly contentBlockIndex:
|
|
373
|
-
}
|
|
373
|
+
readonly contentBlockStop?: {
|
|
374
|
+
readonly contentBlockIndex: number;
|
|
375
|
+
} | undefined;
|
|
374
376
|
readonly messageStop?: {
|
|
375
377
|
readonly stopReason: string;
|
|
376
378
|
readonly additionalModelResponseFields?: unknown;
|
|
@@ -402,91 +404,91 @@ export declare const protocol: Protocol<{
|
|
|
402
404
|
} | undefined;
|
|
403
405
|
}, ParserState>;
|
|
404
406
|
export declare const route: Route<{
|
|
405
|
-
readonly messages: readonly (
|
|
406
|
-
readonly role:
|
|
407
|
-
readonly content:
|
|
408
|
-
readonly
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
readonly image:
|
|
433
|
-
readonly format:
|
|
434
|
-
readonly source:
|
|
435
|
-
readonly bytes:
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
readonly document:
|
|
440
|
-
readonly format:
|
|
441
|
-
readonly name:
|
|
442
|
-
readonly source:
|
|
443
|
-
readonly bytes:
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
readonly
|
|
452
|
-
readonly
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
readonly role:
|
|
457
|
-
readonly content:
|
|
458
|
-
readonly
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
readonly
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
readonly
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
readonly
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
407
|
+
readonly messages: readonly ({
|
|
408
|
+
readonly role: "user";
|
|
409
|
+
readonly content: readonly ({
|
|
410
|
+
readonly cachePoint: {
|
|
411
|
+
readonly type: "default";
|
|
412
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
413
|
+
};
|
|
414
|
+
} | {
|
|
415
|
+
readonly image: {
|
|
416
|
+
readonly format: "png" | "jpeg" | "gif" | "webp";
|
|
417
|
+
readonly source: {
|
|
418
|
+
readonly bytes: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
} | {
|
|
422
|
+
readonly document: {
|
|
423
|
+
readonly format: "pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md";
|
|
424
|
+
readonly name: string;
|
|
425
|
+
readonly source: {
|
|
426
|
+
readonly bytes: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
} | {
|
|
430
|
+
readonly text: string;
|
|
431
|
+
} | {
|
|
432
|
+
readonly toolResult: {
|
|
433
|
+
readonly content: readonly ({
|
|
434
|
+
readonly image: {
|
|
435
|
+
readonly format: "png" | "jpeg" | "gif" | "webp";
|
|
436
|
+
readonly source: {
|
|
437
|
+
readonly bytes: string;
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
} | {
|
|
441
|
+
readonly document: {
|
|
442
|
+
readonly format: "pdf" | "csv" | "doc" | "docx" | "xls" | "xlsx" | "html" | "txt" | "md";
|
|
443
|
+
readonly name: string;
|
|
444
|
+
readonly source: {
|
|
445
|
+
readonly bytes: string;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
} | {
|
|
449
|
+
readonly text: string;
|
|
450
|
+
} | {
|
|
451
|
+
readonly json: unknown;
|
|
452
|
+
})[];
|
|
453
|
+
readonly toolUseId: string;
|
|
454
|
+
readonly status?: "error" | "success" | undefined;
|
|
455
|
+
};
|
|
456
|
+
})[];
|
|
457
|
+
} | {
|
|
458
|
+
readonly role: "assistant";
|
|
459
|
+
readonly content: readonly ({
|
|
460
|
+
readonly cachePoint: {
|
|
461
|
+
readonly type: "default";
|
|
462
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
463
|
+
};
|
|
464
|
+
} | {
|
|
465
|
+
readonly text: string;
|
|
466
|
+
} | {
|
|
467
|
+
readonly toolUse: {
|
|
468
|
+
readonly toolUseId: string;
|
|
469
|
+
readonly name: string;
|
|
470
|
+
readonly input: unknown;
|
|
471
|
+
};
|
|
472
|
+
} | {
|
|
473
|
+
readonly reasoningContent: {
|
|
474
|
+
readonly reasoningText: {
|
|
475
|
+
readonly text: string;
|
|
476
|
+
readonly signature?: string | undefined;
|
|
477
|
+
};
|
|
478
|
+
} | {
|
|
479
|
+
readonly redactedContent: string;
|
|
480
|
+
};
|
|
481
|
+
})[];
|
|
482
|
+
})[];
|
|
481
483
|
readonly modelId: string;
|
|
482
|
-
readonly system?: readonly (
|
|
483
|
-
readonly cachePoint:
|
|
484
|
-
readonly type:
|
|
485
|
-
readonly ttl
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
readonly text:
|
|
489
|
-
}
|
|
484
|
+
readonly system?: readonly ({
|
|
485
|
+
readonly cachePoint: {
|
|
486
|
+
readonly type: "default";
|
|
487
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
488
|
+
};
|
|
489
|
+
} | {
|
|
490
|
+
readonly text: string;
|
|
491
|
+
})[] | undefined;
|
|
490
492
|
readonly inferenceConfig?: {
|
|
491
493
|
readonly maxTokens?: number | undefined;
|
|
492
494
|
readonly temperature?: number | undefined;
|
|
@@ -494,29 +496,31 @@ export declare const route: Route<{
|
|
|
494
496
|
readonly stopSequences?: readonly string[] | undefined;
|
|
495
497
|
} | undefined;
|
|
496
498
|
readonly toolConfig?: {
|
|
497
|
-
readonly tools: readonly (
|
|
498
|
-
readonly cachePoint:
|
|
499
|
-
readonly type:
|
|
500
|
-
readonly ttl
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
readonly toolSpec:
|
|
504
|
-
readonly name:
|
|
505
|
-
readonly description:
|
|
506
|
-
readonly inputSchema:
|
|
507
|
-
readonly json:
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
readonly
|
|
515
|
-
}
|
|
516
|
-
readonly
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
499
|
+
readonly tools: readonly ({
|
|
500
|
+
readonly cachePoint: {
|
|
501
|
+
readonly type: "default";
|
|
502
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
503
|
+
};
|
|
504
|
+
} | {
|
|
505
|
+
readonly toolSpec: {
|
|
506
|
+
readonly name: string;
|
|
507
|
+
readonly description: string;
|
|
508
|
+
readonly inputSchema: {
|
|
509
|
+
readonly json: {
|
|
510
|
+
readonly [x: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
})[];
|
|
515
|
+
readonly toolChoice?: {
|
|
516
|
+
readonly auto: {};
|
|
517
|
+
} | {
|
|
518
|
+
readonly any: {};
|
|
519
|
+
} | {
|
|
520
|
+
readonly tool: {
|
|
521
|
+
readonly name: string;
|
|
522
|
+
};
|
|
523
|
+
} | undefined;
|
|
520
524
|
} | undefined;
|
|
521
525
|
readonly additionalModelRequestFields?: {
|
|
522
526
|
readonly [x: string]: unknown;
|