@opencode-ai/ai 0.0.0-next-16255 → 0.0.0-next-16273

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.
Files changed (42) hide show
  1. package/dist/llm.d.ts +60 -60
  2. package/dist/protocols/anthropic-messages.d.ts +303 -303
  3. package/dist/protocols/anthropic-messages.js +1 -0
  4. package/dist/protocols/bedrock-converse.d.ts +246 -242
  5. package/dist/protocols/gemini.d.ts +136 -132
  6. package/dist/protocols/gemini.js +1 -0
  7. package/dist/protocols/open-responses.d.ts +232 -232
  8. package/dist/protocols/openai-chat.d.ts +147 -141
  9. package/dist/protocols/openai-chat.js +1 -0
  10. package/dist/protocols/openai-compatible-chat.d.ts +48 -46
  11. package/dist/protocols/openai-compatible-responses.d.ts +56 -56
  12. package/dist/protocols/openai-responses.d.ts +388 -388
  13. package/dist/protocols/shared.d.ts +5 -4
  14. package/dist/protocols/shared.js +1 -0
  15. package/dist/protocols/utils/bedrock-media.d.ts +10 -10
  16. package/dist/protocols/utils/tool-stream.d.ts +180 -180
  17. package/dist/providers/amazon-bedrock.d.ts +109 -107
  18. package/dist/providers/anthropic-compatible.d.ts +145 -145
  19. package/dist/providers/anthropic.d.ts +145 -145
  20. package/dist/providers/azure.d.ts +112 -110
  21. package/dist/providers/cloudflare.d.ts +144 -138
  22. package/dist/providers/github-copilot.d.ts +112 -110
  23. package/dist/providers/google-vertex-chat.d.ts +48 -46
  24. package/dist/providers/google-vertex-messages.d.ts +145 -146
  25. package/dist/providers/google-vertex-responses.d.ts +56 -56
  26. package/dist/providers/google-vertex.d.ts +52 -50
  27. package/dist/providers/google.d.ts +52 -50
  28. package/dist/providers/openai-compatible-responses.d.ts +56 -56
  29. package/dist/providers/openai-compatible.d.ts +48 -46
  30. package/dist/providers/openai.d.ts +176 -174
  31. package/dist/providers/openrouter.d.ts +147 -141
  32. package/dist/providers/xai.d.ts +112 -110
  33. package/dist/route/client.d.ts +60 -60
  34. package/dist/schema/errors.d.ts +2 -6
  35. package/dist/schema/errors.js +2 -5
  36. package/dist/schema/events.d.ts +1117 -1115
  37. package/dist/schema/messages.d.ts +9 -9
  38. package/dist/schema/messages.js +3 -4
  39. package/dist/tool-runtime.js +1 -1
  40. package/dist/tool.d.ts +5 -4
  41. package/dist/tool.js +1 -0
  42. 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 (Schema.Struct.ReadonlySide<{
145
- readonly role: Schema.Literal<"user">;
146
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
147
- readonly text: Schema.String;
148
- }>, Schema.Struct<{
149
- readonly image: Schema.Struct<{
150
- readonly format: Schema.Literals<readonly ["png", "jpeg", "gif", "webp"]>;
151
- readonly source: Schema.Struct<{
152
- readonly bytes: Schema.String;
153
- }>;
154
- }>;
155
- }>, Schema.Struct<{
156
- readonly document: Schema.Struct<{
157
- readonly format: Schema.Literals<readonly ["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]>;
158
- readonly name: Schema.String;
159
- readonly source: Schema.Struct<{
160
- readonly bytes: Schema.String;
161
- }>;
162
- }>;
163
- }>, Schema.Struct<{
164
- readonly toolResult: Schema.Struct<{
165
- readonly toolUseId: Schema.String;
166
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
167
- readonly text: Schema.String;
168
- }>, Schema.Struct<{
169
- readonly json: Schema.Unknown;
170
- }>, Schema.Struct<{
171
- readonly image: Schema.Struct<{
172
- readonly format: Schema.Literals<readonly ["png", "jpeg", "gif", "webp"]>;
173
- readonly source: Schema.Struct<{
174
- readonly bytes: Schema.String;
175
- }>;
176
- }>;
177
- }>, Schema.Struct<{
178
- readonly document: Schema.Struct<{
179
- readonly format: Schema.Literals<readonly ["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]>;
180
- readonly name: Schema.String;
181
- readonly source: Schema.Struct<{
182
- readonly bytes: Schema.String;
183
- }>;
184
- }>;
185
- }>]>>;
186
- readonly status: Schema.optional<Schema.Literals<readonly ["success", "error"]>>;
187
- }>;
188
- }>, Schema.Struct<{
189
- readonly cachePoint: Schema.Struct<{
190
- readonly type: Schema.tag<"default">;
191
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
192
- }>;
193
- }>]>>;
194
- }, "Type"> | Schema.Struct.ReadonlySide<{
195
- readonly role: Schema.Literal<"assistant">;
196
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
197
- readonly text: Schema.String;
198
- }>, Schema.Struct<{
199
- readonly reasoningContent: Schema.Union<readonly [Schema.Struct<{
200
- readonly reasoningText: Schema.Struct<{
201
- readonly text: Schema.String;
202
- readonly signature: Schema.optional<Schema.String>;
203
- }>;
204
- }>, Schema.Struct<{
205
- readonly redactedContent: Schema.String;
206
- }>]>;
207
- }>, Schema.Struct<{
208
- readonly toolUse: Schema.Struct<{
209
- readonly toolUseId: Schema.String;
210
- readonly name: Schema.String;
211
- readonly input: Schema.Unknown;
212
- }>;
213
- }>, Schema.Struct<{
214
- readonly cachePoint: Schema.Struct<{
215
- readonly type: Schema.tag<"default">;
216
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
217
- }>;
218
- }>]>>;
219
- }, "Type">)[];
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 (Schema.Struct.ReadonlySide<{
222
- readonly cachePoint: Schema.Struct<{
223
- readonly type: Schema.tag<"default">;
224
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
225
- }>;
226
- }, "Type"> | Schema.Struct.ReadonlySide<{
227
- readonly text: Schema.String;
228
- }, "Type">)[] | undefined;
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 (Schema.Struct.ReadonlySide<{
237
- readonly cachePoint: Schema.Struct<{
238
- readonly type: Schema.tag<"default">;
239
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
240
- }>;
241
- }, "Type"> | Schema.Struct.ReadonlySide<{
242
- readonly toolSpec: Schema.Struct<{
243
- readonly name: Schema.String;
244
- readonly description: Schema.String;
245
- readonly inputSchema: Schema.Struct<{
246
- readonly json: Schema.$Record<Schema.String, Schema.Unknown>;
247
- }>;
248
- }>;
249
- }, "Type">)[];
250
- readonly toolChoice?: Schema.Struct.ReadonlySide<{
251
- readonly auto: Schema.Struct<{}>;
252
- }, "Type"> | Schema.Struct.ReadonlySide<{
253
- readonly any: Schema.Struct<{}>;
254
- }, "Type"> | Schema.Struct.ReadonlySide<{
255
- readonly tool: Schema.Struct<{
256
- readonly name: Schema.String;
257
- }>;
258
- }, "Type"> | undefined;
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?: Schema.Struct.ReadonlySide<{
275
- readonly role: Schema.String;
276
- }, "Encoded"> | undefined;
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?: Schema.Struct.ReadonlySide<{
281
- readonly toolUseId: Schema.String;
282
- readonly name: Schema.String;
283
- }, "Encoded"> | undefined;
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?: Schema.Struct.ReadonlySide<{
291
- readonly input: Schema.String;
292
- }, "Encoded"> | undefined;
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?: Schema.Struct.ReadonlySide<{
302
- readonly contentBlockIndex: Schema.Number;
303
- }, "Encoded"> | undefined;
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?: Schema.Struct.ReadonlySide<{
345
- readonly role: Schema.String;
346
- }, "Type"> | undefined;
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?: Schema.Struct.ReadonlySide<{
351
- readonly toolUseId: Schema.String;
352
- readonly name: Schema.String;
353
- }, "Type"> | undefined;
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?: Schema.Struct.ReadonlySide<{
361
- readonly input: Schema.String;
362
- }, "Type"> | undefined;
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?: Schema.Struct.ReadonlySide<{
372
- readonly contentBlockIndex: Schema.Number;
373
- }, "Type"> | undefined;
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 (Schema.Struct.ReadonlySide<{
406
- readonly role: Schema.Literal<"user">;
407
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
408
- readonly text: Schema.String;
409
- }>, Schema.Struct<{
410
- readonly image: Schema.Struct<{
411
- readonly format: Schema.Literals<readonly ["png", "jpeg", "gif", "webp"]>;
412
- readonly source: Schema.Struct<{
413
- readonly bytes: Schema.String;
414
- }>;
415
- }>;
416
- }>, Schema.Struct<{
417
- readonly document: Schema.Struct<{
418
- readonly format: Schema.Literals<readonly ["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]>;
419
- readonly name: Schema.String;
420
- readonly source: Schema.Struct<{
421
- readonly bytes: Schema.String;
422
- }>;
423
- }>;
424
- }>, Schema.Struct<{
425
- readonly toolResult: Schema.Struct<{
426
- readonly toolUseId: Schema.String;
427
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
428
- readonly text: Schema.String;
429
- }>, Schema.Struct<{
430
- readonly json: Schema.Unknown;
431
- }>, Schema.Struct<{
432
- readonly image: Schema.Struct<{
433
- readonly format: Schema.Literals<readonly ["png", "jpeg", "gif", "webp"]>;
434
- readonly source: Schema.Struct<{
435
- readonly bytes: Schema.String;
436
- }>;
437
- }>;
438
- }>, Schema.Struct<{
439
- readonly document: Schema.Struct<{
440
- readonly format: Schema.Literals<readonly ["pdf", "csv", "doc", "docx", "xls", "xlsx", "html", "txt", "md"]>;
441
- readonly name: Schema.String;
442
- readonly source: Schema.Struct<{
443
- readonly bytes: Schema.String;
444
- }>;
445
- }>;
446
- }>]>>;
447
- readonly status: Schema.optional<Schema.Literals<readonly ["success", "error"]>>;
448
- }>;
449
- }>, Schema.Struct<{
450
- readonly cachePoint: Schema.Struct<{
451
- readonly type: Schema.tag<"default">;
452
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
453
- }>;
454
- }>]>>;
455
- }, "Type"> | Schema.Struct.ReadonlySide<{
456
- readonly role: Schema.Literal<"assistant">;
457
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
458
- readonly text: Schema.String;
459
- }>, Schema.Struct<{
460
- readonly reasoningContent: Schema.Union<readonly [Schema.Struct<{
461
- readonly reasoningText: Schema.Struct<{
462
- readonly text: Schema.String;
463
- readonly signature: Schema.optional<Schema.String>;
464
- }>;
465
- }>, Schema.Struct<{
466
- readonly redactedContent: Schema.String;
467
- }>]>;
468
- }>, Schema.Struct<{
469
- readonly toolUse: Schema.Struct<{
470
- readonly toolUseId: Schema.String;
471
- readonly name: Schema.String;
472
- readonly input: Schema.Unknown;
473
- }>;
474
- }>, Schema.Struct<{
475
- readonly cachePoint: Schema.Struct<{
476
- readonly type: Schema.tag<"default">;
477
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
478
- }>;
479
- }>]>>;
480
- }, "Type">)[];
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 (Schema.Struct.ReadonlySide<{
483
- readonly cachePoint: Schema.Struct<{
484
- readonly type: Schema.tag<"default">;
485
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
486
- }>;
487
- }, "Type"> | Schema.Struct.ReadonlySide<{
488
- readonly text: Schema.String;
489
- }, "Type">)[] | undefined;
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 (Schema.Struct.ReadonlySide<{
498
- readonly cachePoint: Schema.Struct<{
499
- readonly type: Schema.tag<"default">;
500
- readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
501
- }>;
502
- }, "Type"> | Schema.Struct.ReadonlySide<{
503
- readonly toolSpec: Schema.Struct<{
504
- readonly name: Schema.String;
505
- readonly description: Schema.String;
506
- readonly inputSchema: Schema.Struct<{
507
- readonly json: Schema.$Record<Schema.String, Schema.Unknown>;
508
- }>;
509
- }>;
510
- }, "Type">)[];
511
- readonly toolChoice?: Schema.Struct.ReadonlySide<{
512
- readonly auto: Schema.Struct<{}>;
513
- }, "Type"> | Schema.Struct.ReadonlySide<{
514
- readonly any: Schema.Struct<{}>;
515
- }, "Type"> | Schema.Struct.ReadonlySide<{
516
- readonly tool: Schema.Struct<{
517
- readonly name: Schema.String;
518
- }>;
519
- }, "Type"> | undefined;
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;