@convex-dev/agent 0.0.16-alpha.0 → 0.0.17-alpha.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 +92 -71
- package/dist/commonjs/client/index.d.ts +1012 -920
- package/dist/commonjs/client/index.d.ts.map +1 -1
- package/dist/commonjs/client/index.js +188 -31
- package/dist/commonjs/client/index.js.map +1 -1
- package/dist/commonjs/client/playground.d.ts +251 -116
- package/dist/commonjs/client/playground.d.ts.map +1 -1
- package/dist/commonjs/client/playground.js +33 -11
- package/dist/commonjs/client/playground.js.map +1 -1
- package/dist/commonjs/component/messages.d.ts +683 -571
- package/dist/commonjs/component/messages.d.ts.map +1 -1
- package/dist/commonjs/component/messages.js +56 -33
- package/dist/commonjs/component/messages.js.map +1 -1
- package/dist/commonjs/component/schema.d.ts +1080 -1324
- package/dist/commonjs/component/schema.d.ts.map +1 -1
- package/dist/commonjs/component/schema.js +20 -14
- package/dist/commonjs/component/schema.js.map +1 -1
- package/dist/commonjs/component/vector/index.d.ts.map +1 -1
- package/dist/commonjs/component/vector/index.js +4 -6
- package/dist/commonjs/component/vector/index.js.map +1 -1
- package/dist/commonjs/component/vector/tables.d.ts +10 -10
- package/dist/commonjs/component/vector/tables.d.ts.map +1 -1
- package/dist/commonjs/component/vector/tables.js.map +1 -1
- package/dist/commonjs/mapping.d.ts +7 -1
- package/dist/commonjs/mapping.d.ts.map +1 -1
- package/dist/commonjs/mapping.js +39 -18
- package/dist/commonjs/mapping.js.map +1 -1
- package/dist/commonjs/validators.d.ts +1669 -2336
- package/dist/commonjs/validators.d.ts.map +1 -1
- package/dist/commonjs/validators.js +35 -25
- package/dist/commonjs/validators.js.map +1 -1
- package/dist/esm/client/index.d.ts +1012 -920
- package/dist/esm/client/index.d.ts.map +1 -1
- package/dist/esm/client/index.js +188 -31
- package/dist/esm/client/index.js.map +1 -1
- package/dist/esm/client/playground.d.ts +251 -116
- package/dist/esm/client/playground.d.ts.map +1 -1
- package/dist/esm/client/playground.js +33 -11
- package/dist/esm/client/playground.js.map +1 -1
- package/dist/esm/component/messages.d.ts +683 -571
- package/dist/esm/component/messages.d.ts.map +1 -1
- package/dist/esm/component/messages.js +56 -33
- package/dist/esm/component/messages.js.map +1 -1
- package/dist/esm/component/schema.d.ts +1080 -1324
- package/dist/esm/component/schema.d.ts.map +1 -1
- package/dist/esm/component/schema.js +20 -14
- package/dist/esm/component/schema.js.map +1 -1
- package/dist/esm/component/vector/index.d.ts.map +1 -1
- package/dist/esm/component/vector/index.js +4 -6
- package/dist/esm/component/vector/index.js.map +1 -1
- package/dist/esm/component/vector/tables.d.ts +10 -10
- package/dist/esm/component/vector/tables.d.ts.map +1 -1
- package/dist/esm/component/vector/tables.js.map +1 -1
- package/dist/esm/mapping.d.ts +7 -1
- package/dist/esm/mapping.d.ts.map +1 -1
- package/dist/esm/mapping.js +39 -18
- package/dist/esm/mapping.js.map +1 -1
- package/dist/esm/validators.d.ts +1669 -2336
- package/dist/esm/validators.d.ts.map +1 -1
- package/dist/esm/validators.js +35 -25
- package/dist/esm/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.test.ts +68 -0
- package/src/client/index.ts +219 -35
- package/src/client/playground.ts +49 -23
- package/src/component/_generated/api.d.ts +311 -323
- package/src/component/messages.test.ts +23 -0
- package/src/component/messages.ts +75 -42
- package/src/component/schema.ts +26 -13
- package/src/component/vector/index.ts +5 -6
- package/src/component/vector/tables.ts +15 -15
- package/src/mapping.ts +65 -32
- package/src/validators.ts +47 -27
|
@@ -97,7 +97,12 @@ export type Mounts = {
|
|
|
97
97
|
vector: Array<number>;
|
|
98
98
|
};
|
|
99
99
|
error?: string;
|
|
100
|
-
|
|
100
|
+
files?: Array<{
|
|
101
|
+
data?: ArrayBuffer | string;
|
|
102
|
+
fileId?: string;
|
|
103
|
+
mimeType: string;
|
|
104
|
+
url?: string;
|
|
105
|
+
}>;
|
|
101
106
|
finishReason?:
|
|
102
107
|
| "stop"
|
|
103
108
|
| "length"
|
|
@@ -113,28 +118,24 @@ export type Mounts = {
|
|
|
113
118
|
| string
|
|
114
119
|
| Array<
|
|
115
120
|
| {
|
|
116
|
-
|
|
117
|
-
providerOptions?: Record<string, any>;
|
|
121
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
118
122
|
text: string;
|
|
119
123
|
type: "text";
|
|
120
124
|
}
|
|
121
125
|
| {
|
|
122
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
123
126
|
image: string | ArrayBuffer;
|
|
124
127
|
mimeType?: string;
|
|
125
|
-
providerOptions?: Record<string, any
|
|
128
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
126
129
|
type: "image";
|
|
127
130
|
}
|
|
128
131
|
| {
|
|
129
132
|
data: string | ArrayBuffer;
|
|
130
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
131
133
|
mimeType: string;
|
|
132
|
-
providerOptions?: Record<string, any
|
|
134
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
133
135
|
type: "file";
|
|
134
136
|
}
|
|
135
137
|
>;
|
|
136
|
-
|
|
137
|
-
providerOptions?: Record<string, any>;
|
|
138
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
138
139
|
role: "user";
|
|
139
140
|
}
|
|
140
141
|
| {
|
|
@@ -142,41 +143,36 @@ export type Mounts = {
|
|
|
142
143
|
| string
|
|
143
144
|
| Array<
|
|
144
145
|
| {
|
|
145
|
-
|
|
146
|
-
providerOptions?: Record<string, any>;
|
|
146
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
147
147
|
text: string;
|
|
148
148
|
type: "text";
|
|
149
149
|
}
|
|
150
150
|
| {
|
|
151
151
|
data: string | ArrayBuffer;
|
|
152
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
153
152
|
mimeType: string;
|
|
154
|
-
providerOptions?: Record<string, any
|
|
153
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
155
154
|
type: "file";
|
|
156
155
|
}
|
|
157
156
|
| {
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
158
|
+
signature?: string;
|
|
160
159
|
text: string;
|
|
161
160
|
type: "reasoning";
|
|
162
161
|
}
|
|
163
162
|
| {
|
|
164
163
|
data: string;
|
|
165
|
-
|
|
166
|
-
providerOptions?: Record<string, any>;
|
|
164
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
167
165
|
type: "redacted-reasoning";
|
|
168
166
|
}
|
|
169
167
|
| {
|
|
170
168
|
args: any;
|
|
171
|
-
|
|
172
|
-
providerOptions?: Record<string, any>;
|
|
169
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
173
170
|
toolCallId: string;
|
|
174
171
|
toolName: string;
|
|
175
172
|
type: "tool-call";
|
|
176
173
|
}
|
|
177
174
|
>;
|
|
178
|
-
|
|
179
|
-
providerOptions?: Record<string, any>;
|
|
175
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
180
176
|
role: "assistant";
|
|
181
177
|
}
|
|
182
178
|
| {
|
|
@@ -186,31 +182,32 @@ export type Mounts = {
|
|
|
186
182
|
| { text: string; type: "text" }
|
|
187
183
|
| { data: string; mimeType?: string; type: "image" }
|
|
188
184
|
>;
|
|
189
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
190
185
|
isError?: boolean;
|
|
191
|
-
providerOptions?: Record<string, any
|
|
186
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
192
187
|
result: any;
|
|
193
188
|
toolCallId: string;
|
|
194
189
|
toolName: string;
|
|
195
190
|
type: "tool-result";
|
|
196
191
|
}>;
|
|
197
|
-
|
|
198
|
-
providerOptions?: Record<string, any>;
|
|
192
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
199
193
|
role: "tool";
|
|
200
194
|
}
|
|
201
195
|
| {
|
|
202
196
|
content: string;
|
|
203
|
-
|
|
204
|
-
providerOptions?: Record<string, any>;
|
|
197
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
205
198
|
role: "system";
|
|
206
199
|
};
|
|
207
200
|
model?: string;
|
|
208
201
|
provider?: string;
|
|
209
202
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
210
203
|
reasoning?: string;
|
|
204
|
+
reasoningDetails?: Array<
|
|
205
|
+
| { signature?: string; text: string; type: "text" }
|
|
206
|
+
| { data: string; type: "redacted" }
|
|
207
|
+
>;
|
|
211
208
|
sources?: Array<{
|
|
212
209
|
id: string;
|
|
213
|
-
|
|
210
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
214
211
|
sourceType: "url";
|
|
215
212
|
title?: string;
|
|
216
213
|
url: string;
|
|
@@ -249,7 +246,12 @@ export type Mounts = {
|
|
|
249
246
|
| string
|
|
250
247
|
| string;
|
|
251
248
|
error?: string;
|
|
252
|
-
|
|
249
|
+
files?: Array<{
|
|
250
|
+
data?: ArrayBuffer | string;
|
|
251
|
+
fileId?: string;
|
|
252
|
+
mimeType: string;
|
|
253
|
+
url?: string;
|
|
254
|
+
}>;
|
|
253
255
|
finishReason?:
|
|
254
256
|
| "stop"
|
|
255
257
|
| "length"
|
|
@@ -265,28 +267,24 @@ export type Mounts = {
|
|
|
265
267
|
| string
|
|
266
268
|
| Array<
|
|
267
269
|
| {
|
|
268
|
-
|
|
269
|
-
providerOptions?: Record<string, any>;
|
|
270
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
270
271
|
text: string;
|
|
271
272
|
type: "text";
|
|
272
273
|
}
|
|
273
274
|
| {
|
|
274
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
275
275
|
image: string | ArrayBuffer;
|
|
276
276
|
mimeType?: string;
|
|
277
|
-
providerOptions?: Record<string, any
|
|
277
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
278
278
|
type: "image";
|
|
279
279
|
}
|
|
280
280
|
| {
|
|
281
281
|
data: string | ArrayBuffer;
|
|
282
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
283
282
|
mimeType: string;
|
|
284
|
-
providerOptions?: Record<string, any
|
|
283
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
285
284
|
type: "file";
|
|
286
285
|
}
|
|
287
286
|
>;
|
|
288
|
-
|
|
289
|
-
providerOptions?: Record<string, any>;
|
|
287
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
290
288
|
role: "user";
|
|
291
289
|
}
|
|
292
290
|
| {
|
|
@@ -294,41 +292,36 @@ export type Mounts = {
|
|
|
294
292
|
| string
|
|
295
293
|
| Array<
|
|
296
294
|
| {
|
|
297
|
-
|
|
298
|
-
providerOptions?: Record<string, any>;
|
|
295
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
299
296
|
text: string;
|
|
300
297
|
type: "text";
|
|
301
298
|
}
|
|
302
299
|
| {
|
|
303
300
|
data: string | ArrayBuffer;
|
|
304
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
305
301
|
mimeType: string;
|
|
306
|
-
providerOptions?: Record<string, any
|
|
302
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
307
303
|
type: "file";
|
|
308
304
|
}
|
|
309
305
|
| {
|
|
310
|
-
|
|
311
|
-
|
|
306
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
307
|
+
signature?: string;
|
|
312
308
|
text: string;
|
|
313
309
|
type: "reasoning";
|
|
314
310
|
}
|
|
315
311
|
| {
|
|
316
312
|
data: string;
|
|
317
|
-
|
|
318
|
-
providerOptions?: Record<string, any>;
|
|
313
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
319
314
|
type: "redacted-reasoning";
|
|
320
315
|
}
|
|
321
316
|
| {
|
|
322
317
|
args: any;
|
|
323
|
-
|
|
324
|
-
providerOptions?: Record<string, any>;
|
|
318
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
325
319
|
toolCallId: string;
|
|
326
320
|
toolName: string;
|
|
327
321
|
type: "tool-call";
|
|
328
322
|
}
|
|
329
323
|
>;
|
|
330
|
-
|
|
331
|
-
providerOptions?: Record<string, any>;
|
|
324
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
332
325
|
role: "assistant";
|
|
333
326
|
}
|
|
334
327
|
| {
|
|
@@ -338,33 +331,35 @@ export type Mounts = {
|
|
|
338
331
|
| { text: string; type: "text" }
|
|
339
332
|
| { data: string; mimeType?: string; type: "image" }
|
|
340
333
|
>;
|
|
341
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
342
334
|
isError?: boolean;
|
|
343
|
-
providerOptions?: Record<string, any
|
|
335
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
344
336
|
result: any;
|
|
345
337
|
toolCallId: string;
|
|
346
338
|
toolName: string;
|
|
347
339
|
type: "tool-result";
|
|
348
340
|
}>;
|
|
349
|
-
|
|
350
|
-
providerOptions?: Record<string, any>;
|
|
341
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
351
342
|
role: "tool";
|
|
352
343
|
}
|
|
353
344
|
| {
|
|
354
345
|
content: string;
|
|
355
|
-
|
|
356
|
-
providerOptions?: Record<string, any>;
|
|
346
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
357
347
|
role: "system";
|
|
358
348
|
};
|
|
359
349
|
model?: string;
|
|
360
350
|
order: number;
|
|
361
351
|
parentMessageId?: string;
|
|
362
352
|
provider?: string;
|
|
363
|
-
providerMetadata?: Record<string, any
|
|
353
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
354
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
364
355
|
reasoning?: string;
|
|
356
|
+
reasoningDetails?: Array<
|
|
357
|
+
| { signature?: string; text: string; type: "text" }
|
|
358
|
+
| { data: string; type: "redacted" }
|
|
359
|
+
>;
|
|
365
360
|
sources?: Array<{
|
|
366
361
|
id: string;
|
|
367
|
-
|
|
362
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
368
363
|
sourceType: "url";
|
|
369
364
|
title?: string;
|
|
370
365
|
url: string;
|
|
@@ -402,7 +397,12 @@ export type Mounts = {
|
|
|
402
397
|
| string
|
|
403
398
|
| string;
|
|
404
399
|
error?: string;
|
|
405
|
-
|
|
400
|
+
files?: Array<{
|
|
401
|
+
data?: ArrayBuffer | string;
|
|
402
|
+
fileId?: string;
|
|
403
|
+
mimeType: string;
|
|
404
|
+
url?: string;
|
|
405
|
+
}>;
|
|
406
406
|
finishReason?:
|
|
407
407
|
| "stop"
|
|
408
408
|
| "length"
|
|
@@ -418,28 +418,24 @@ export type Mounts = {
|
|
|
418
418
|
| string
|
|
419
419
|
| Array<
|
|
420
420
|
| {
|
|
421
|
-
|
|
422
|
-
providerOptions?: Record<string, any>;
|
|
421
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
423
422
|
text: string;
|
|
424
423
|
type: "text";
|
|
425
424
|
}
|
|
426
425
|
| {
|
|
427
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
428
426
|
image: string | ArrayBuffer;
|
|
429
427
|
mimeType?: string;
|
|
430
|
-
providerOptions?: Record<string, any
|
|
428
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
431
429
|
type: "image";
|
|
432
430
|
}
|
|
433
431
|
| {
|
|
434
432
|
data: string | ArrayBuffer;
|
|
435
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
436
433
|
mimeType: string;
|
|
437
|
-
providerOptions?: Record<string, any
|
|
434
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
438
435
|
type: "file";
|
|
439
436
|
}
|
|
440
437
|
>;
|
|
441
|
-
|
|
442
|
-
providerOptions?: Record<string, any>;
|
|
438
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
443
439
|
role: "user";
|
|
444
440
|
}
|
|
445
441
|
| {
|
|
@@ -447,41 +443,36 @@ export type Mounts = {
|
|
|
447
443
|
| string
|
|
448
444
|
| Array<
|
|
449
445
|
| {
|
|
450
|
-
|
|
451
|
-
providerOptions?: Record<string, any>;
|
|
446
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
452
447
|
text: string;
|
|
453
448
|
type: "text";
|
|
454
449
|
}
|
|
455
450
|
| {
|
|
456
451
|
data: string | ArrayBuffer;
|
|
457
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
458
452
|
mimeType: string;
|
|
459
|
-
providerOptions?: Record<string, any
|
|
453
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
460
454
|
type: "file";
|
|
461
455
|
}
|
|
462
456
|
| {
|
|
463
|
-
|
|
464
|
-
|
|
457
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
458
|
+
signature?: string;
|
|
465
459
|
text: string;
|
|
466
460
|
type: "reasoning";
|
|
467
461
|
}
|
|
468
462
|
| {
|
|
469
463
|
data: string;
|
|
470
|
-
|
|
471
|
-
providerOptions?: Record<string, any>;
|
|
464
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
472
465
|
type: "redacted-reasoning";
|
|
473
466
|
}
|
|
474
467
|
| {
|
|
475
468
|
args: any;
|
|
476
|
-
|
|
477
|
-
providerOptions?: Record<string, any>;
|
|
469
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
478
470
|
toolCallId: string;
|
|
479
471
|
toolName: string;
|
|
480
472
|
type: "tool-call";
|
|
481
473
|
}
|
|
482
474
|
>;
|
|
483
|
-
|
|
484
|
-
providerOptions?: Record<string, any>;
|
|
475
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
485
476
|
role: "assistant";
|
|
486
477
|
}
|
|
487
478
|
| {
|
|
@@ -491,33 +482,35 @@ export type Mounts = {
|
|
|
491
482
|
| { text: string; type: "text" }
|
|
492
483
|
| { data: string; mimeType?: string; type: "image" }
|
|
493
484
|
>;
|
|
494
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
495
485
|
isError?: boolean;
|
|
496
|
-
providerOptions?: Record<string, any
|
|
486
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
497
487
|
result: any;
|
|
498
488
|
toolCallId: string;
|
|
499
489
|
toolName: string;
|
|
500
490
|
type: "tool-result";
|
|
501
491
|
}>;
|
|
502
|
-
|
|
503
|
-
providerOptions?: Record<string, any>;
|
|
492
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
504
493
|
role: "tool";
|
|
505
494
|
}
|
|
506
495
|
| {
|
|
507
496
|
content: string;
|
|
508
|
-
|
|
509
|
-
providerOptions?: Record<string, any>;
|
|
497
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
510
498
|
role: "system";
|
|
511
499
|
};
|
|
512
500
|
model?: string;
|
|
513
501
|
order: number;
|
|
514
502
|
parentMessageId?: string;
|
|
515
503
|
provider?: string;
|
|
516
|
-
providerMetadata?: Record<string, any
|
|
504
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
505
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
517
506
|
reasoning?: string;
|
|
507
|
+
reasoningDetails?: Array<
|
|
508
|
+
| { signature?: string; text: string; type: "text" }
|
|
509
|
+
| { data: string; type: "redacted" }
|
|
510
|
+
>;
|
|
518
511
|
sources?: Array<{
|
|
519
512
|
id: string;
|
|
520
|
-
|
|
513
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
521
514
|
sourceType: "url";
|
|
522
515
|
title?: string;
|
|
523
516
|
url: string;
|
|
@@ -565,7 +558,12 @@ export type Mounts = {
|
|
|
565
558
|
vector: Array<number>;
|
|
566
559
|
};
|
|
567
560
|
error?: string;
|
|
568
|
-
|
|
561
|
+
files?: Array<{
|
|
562
|
+
data?: ArrayBuffer | string;
|
|
563
|
+
fileId?: string;
|
|
564
|
+
mimeType: string;
|
|
565
|
+
url?: string;
|
|
566
|
+
}>;
|
|
569
567
|
finishReason?:
|
|
570
568
|
| "stop"
|
|
571
569
|
| "length"
|
|
@@ -581,28 +579,33 @@ export type Mounts = {
|
|
|
581
579
|
| string
|
|
582
580
|
| Array<
|
|
583
581
|
| {
|
|
584
|
-
|
|
585
|
-
|
|
582
|
+
providerOptions?: Record<
|
|
583
|
+
string,
|
|
584
|
+
Record<string, any>
|
|
585
|
+
>;
|
|
586
586
|
text: string;
|
|
587
587
|
type: "text";
|
|
588
588
|
}
|
|
589
589
|
| {
|
|
590
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
591
590
|
image: string | ArrayBuffer;
|
|
592
591
|
mimeType?: string;
|
|
593
|
-
providerOptions?: Record<
|
|
592
|
+
providerOptions?: Record<
|
|
593
|
+
string,
|
|
594
|
+
Record<string, any>
|
|
595
|
+
>;
|
|
594
596
|
type: "image";
|
|
595
597
|
}
|
|
596
598
|
| {
|
|
597
599
|
data: string | ArrayBuffer;
|
|
598
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
599
600
|
mimeType: string;
|
|
600
|
-
providerOptions?: Record<
|
|
601
|
+
providerOptions?: Record<
|
|
602
|
+
string,
|
|
603
|
+
Record<string, any>
|
|
604
|
+
>;
|
|
601
605
|
type: "file";
|
|
602
606
|
}
|
|
603
607
|
>;
|
|
604
|
-
|
|
605
|
-
providerOptions?: Record<string, any>;
|
|
608
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
606
609
|
role: "user";
|
|
607
610
|
}
|
|
608
611
|
| {
|
|
@@ -610,41 +613,51 @@ export type Mounts = {
|
|
|
610
613
|
| string
|
|
611
614
|
| Array<
|
|
612
615
|
| {
|
|
613
|
-
|
|
614
|
-
|
|
616
|
+
providerOptions?: Record<
|
|
617
|
+
string,
|
|
618
|
+
Record<string, any>
|
|
619
|
+
>;
|
|
615
620
|
text: string;
|
|
616
621
|
type: "text";
|
|
617
622
|
}
|
|
618
623
|
| {
|
|
619
624
|
data: string | ArrayBuffer;
|
|
620
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
621
625
|
mimeType: string;
|
|
622
|
-
providerOptions?: Record<
|
|
626
|
+
providerOptions?: Record<
|
|
627
|
+
string,
|
|
628
|
+
Record<string, any>
|
|
629
|
+
>;
|
|
623
630
|
type: "file";
|
|
624
631
|
}
|
|
625
632
|
| {
|
|
626
|
-
|
|
627
|
-
|
|
633
|
+
providerOptions?: Record<
|
|
634
|
+
string,
|
|
635
|
+
Record<string, any>
|
|
636
|
+
>;
|
|
637
|
+
signature?: string;
|
|
628
638
|
text: string;
|
|
629
639
|
type: "reasoning";
|
|
630
640
|
}
|
|
631
641
|
| {
|
|
632
642
|
data: string;
|
|
633
|
-
|
|
634
|
-
|
|
643
|
+
providerOptions?: Record<
|
|
644
|
+
string,
|
|
645
|
+
Record<string, any>
|
|
646
|
+
>;
|
|
635
647
|
type: "redacted-reasoning";
|
|
636
648
|
}
|
|
637
649
|
| {
|
|
638
650
|
args: any;
|
|
639
|
-
|
|
640
|
-
|
|
651
|
+
providerOptions?: Record<
|
|
652
|
+
string,
|
|
653
|
+
Record<string, any>
|
|
654
|
+
>;
|
|
641
655
|
toolCallId: string;
|
|
642
656
|
toolName: string;
|
|
643
657
|
type: "tool-call";
|
|
644
658
|
}
|
|
645
659
|
>;
|
|
646
|
-
|
|
647
|
-
providerOptions?: Record<string, any>;
|
|
660
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
648
661
|
role: "assistant";
|
|
649
662
|
}
|
|
650
663
|
| {
|
|
@@ -654,31 +667,32 @@ export type Mounts = {
|
|
|
654
667
|
| { text: string; type: "text" }
|
|
655
668
|
| { data: string; mimeType?: string; type: "image" }
|
|
656
669
|
>;
|
|
657
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
658
670
|
isError?: boolean;
|
|
659
|
-
providerOptions?: Record<string, any
|
|
671
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
660
672
|
result: any;
|
|
661
673
|
toolCallId: string;
|
|
662
674
|
toolName: string;
|
|
663
675
|
type: "tool-result";
|
|
664
676
|
}>;
|
|
665
|
-
|
|
666
|
-
providerOptions?: Record<string, any>;
|
|
677
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
667
678
|
role: "tool";
|
|
668
679
|
}
|
|
669
680
|
| {
|
|
670
681
|
content: string;
|
|
671
|
-
|
|
672
|
-
providerOptions?: Record<string, any>;
|
|
682
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
673
683
|
role: "system";
|
|
674
684
|
};
|
|
675
685
|
model?: string;
|
|
676
686
|
provider?: string;
|
|
677
687
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
678
688
|
reasoning?: string;
|
|
689
|
+
reasoningDetails?: Array<
|
|
690
|
+
| { signature?: string; text: string; type: "text" }
|
|
691
|
+
| { data: string; type: "redacted" }
|
|
692
|
+
>;
|
|
679
693
|
sources?: Array<{
|
|
680
694
|
id: string;
|
|
681
|
-
|
|
695
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
682
696
|
sourceType: "url";
|
|
683
697
|
title?: string;
|
|
684
698
|
url: string;
|
|
@@ -700,7 +714,7 @@ export type Mounts = {
|
|
|
700
714
|
>;
|
|
701
715
|
}>;
|
|
702
716
|
step: {
|
|
703
|
-
experimental_providerMetadata?: Record<string, any
|
|
717
|
+
experimental_providerMetadata?: Record<string, Record<string, any>>;
|
|
704
718
|
files?: Array<any>;
|
|
705
719
|
finishReason:
|
|
706
720
|
| "stop"
|
|
@@ -713,9 +727,11 @@ export type Mounts = {
|
|
|
713
727
|
isContinued: boolean;
|
|
714
728
|
logprobs?: any;
|
|
715
729
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
716
|
-
providerOptions?: Record<string, any>;
|
|
717
730
|
reasoning?: string;
|
|
718
|
-
reasoningDetails?: Array<
|
|
731
|
+
reasoningDetails?: Array<
|
|
732
|
+
| { signature?: string; text: string; type: "text" }
|
|
733
|
+
| { data: string; type: "redacted" }
|
|
734
|
+
>;
|
|
719
735
|
request?: {
|
|
720
736
|
body?: any;
|
|
721
737
|
headers?: Record<string, string>;
|
|
@@ -735,37 +751,33 @@ export type Mounts = {
|
|
|
735
751
|
| string
|
|
736
752
|
| Array<
|
|
737
753
|
| {
|
|
738
|
-
|
|
754
|
+
providerOptions?: Record<
|
|
739
755
|
string,
|
|
740
|
-
any
|
|
756
|
+
Record<string, any>
|
|
741
757
|
>;
|
|
742
|
-
providerOptions?: Record<string, any>;
|
|
743
758
|
text: string;
|
|
744
759
|
type: "text";
|
|
745
760
|
}
|
|
746
761
|
| {
|
|
747
|
-
experimental_providerMetadata?: Record<
|
|
748
|
-
string,
|
|
749
|
-
any
|
|
750
|
-
>;
|
|
751
762
|
image: string | ArrayBuffer;
|
|
752
763
|
mimeType?: string;
|
|
753
|
-
providerOptions?: Record<
|
|
764
|
+
providerOptions?: Record<
|
|
765
|
+
string,
|
|
766
|
+
Record<string, any>
|
|
767
|
+
>;
|
|
754
768
|
type: "image";
|
|
755
769
|
}
|
|
756
770
|
| {
|
|
757
771
|
data: string | ArrayBuffer;
|
|
758
|
-
|
|
772
|
+
mimeType: string;
|
|
773
|
+
providerOptions?: Record<
|
|
759
774
|
string,
|
|
760
|
-
any
|
|
775
|
+
Record<string, any>
|
|
761
776
|
>;
|
|
762
|
-
mimeType: string;
|
|
763
|
-
providerOptions?: Record<string, any>;
|
|
764
777
|
type: "file";
|
|
765
778
|
}
|
|
766
779
|
>;
|
|
767
|
-
|
|
768
|
-
providerOptions?: Record<string, any>;
|
|
780
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
769
781
|
role: "user";
|
|
770
782
|
}
|
|
771
783
|
| {
|
|
@@ -773,56 +785,51 @@ export type Mounts = {
|
|
|
773
785
|
| string
|
|
774
786
|
| Array<
|
|
775
787
|
| {
|
|
776
|
-
|
|
788
|
+
providerOptions?: Record<
|
|
777
789
|
string,
|
|
778
|
-
any
|
|
790
|
+
Record<string, any>
|
|
779
791
|
>;
|
|
780
|
-
providerOptions?: Record<string, any>;
|
|
781
792
|
text: string;
|
|
782
793
|
type: "text";
|
|
783
794
|
}
|
|
784
795
|
| {
|
|
785
796
|
data: string | ArrayBuffer;
|
|
786
|
-
|
|
797
|
+
mimeType: string;
|
|
798
|
+
providerOptions?: Record<
|
|
787
799
|
string,
|
|
788
|
-
any
|
|
800
|
+
Record<string, any>
|
|
789
801
|
>;
|
|
790
|
-
mimeType: string;
|
|
791
|
-
providerOptions?: Record<string, any>;
|
|
792
802
|
type: "file";
|
|
793
803
|
}
|
|
794
804
|
| {
|
|
795
|
-
|
|
805
|
+
providerOptions?: Record<
|
|
796
806
|
string,
|
|
797
|
-
any
|
|
807
|
+
Record<string, any>
|
|
798
808
|
>;
|
|
799
|
-
|
|
809
|
+
signature?: string;
|
|
800
810
|
text: string;
|
|
801
811
|
type: "reasoning";
|
|
802
812
|
}
|
|
803
813
|
| {
|
|
804
814
|
data: string;
|
|
805
|
-
|
|
815
|
+
providerOptions?: Record<
|
|
806
816
|
string,
|
|
807
|
-
any
|
|
817
|
+
Record<string, any>
|
|
808
818
|
>;
|
|
809
|
-
providerOptions?: Record<string, any>;
|
|
810
819
|
type: "redacted-reasoning";
|
|
811
820
|
}
|
|
812
821
|
| {
|
|
813
822
|
args: any;
|
|
814
|
-
|
|
823
|
+
providerOptions?: Record<
|
|
815
824
|
string,
|
|
816
|
-
any
|
|
825
|
+
Record<string, any>
|
|
817
826
|
>;
|
|
818
|
-
providerOptions?: Record<string, any>;
|
|
819
827
|
toolCallId: string;
|
|
820
828
|
toolName: string;
|
|
821
829
|
type: "tool-call";
|
|
822
830
|
}
|
|
823
831
|
>;
|
|
824
|
-
|
|
825
|
-
providerOptions?: Record<string, any>;
|
|
832
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
826
833
|
role: "assistant";
|
|
827
834
|
}
|
|
828
835
|
| {
|
|
@@ -832,22 +839,19 @@ export type Mounts = {
|
|
|
832
839
|
| { text: string; type: "text" }
|
|
833
840
|
| { data: string; mimeType?: string; type: "image" }
|
|
834
841
|
>;
|
|
835
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
836
842
|
isError?: boolean;
|
|
837
|
-
providerOptions?: Record<string, any
|
|
843
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
838
844
|
result: any;
|
|
839
845
|
toolCallId: string;
|
|
840
846
|
toolName: string;
|
|
841
847
|
type: "tool-result";
|
|
842
848
|
}>;
|
|
843
|
-
|
|
844
|
-
providerOptions?: Record<string, any>;
|
|
849
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
845
850
|
role: "tool";
|
|
846
851
|
}
|
|
847
852
|
| {
|
|
848
853
|
content: string;
|
|
849
|
-
|
|
850
|
-
providerOptions?: Record<string, any>;
|
|
854
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
851
855
|
role: "system";
|
|
852
856
|
};
|
|
853
857
|
}>;
|
|
@@ -856,7 +860,7 @@ export type Mounts = {
|
|
|
856
860
|
};
|
|
857
861
|
sources?: Array<{
|
|
858
862
|
id: string;
|
|
859
|
-
|
|
863
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
860
864
|
sourceType: "url";
|
|
861
865
|
title?: string;
|
|
862
866
|
url: string;
|
|
@@ -865,8 +869,7 @@ export type Mounts = {
|
|
|
865
869
|
text: string;
|
|
866
870
|
toolCalls: Array<{
|
|
867
871
|
args: any;
|
|
868
|
-
|
|
869
|
-
providerOptions?: Record<string, any>;
|
|
872
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
870
873
|
toolCallId: string;
|
|
871
874
|
toolName: string;
|
|
872
875
|
type: "tool-call";
|
|
@@ -877,9 +880,8 @@ export type Mounts = {
|
|
|
877
880
|
| { text: string; type: "text" }
|
|
878
881
|
| { data: string; mimeType?: string; type: "image" }
|
|
879
882
|
>;
|
|
880
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
881
883
|
isError?: boolean;
|
|
882
|
-
providerOptions?: Record<string, any
|
|
884
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
883
885
|
result: any;
|
|
884
886
|
toolCallId: string;
|
|
885
887
|
toolName: string;
|
|
@@ -911,7 +913,7 @@ export type Mounts = {
|
|
|
911
913
|
parentMessageId: string;
|
|
912
914
|
status: "pending" | "success" | "failed";
|
|
913
915
|
step: {
|
|
914
|
-
experimental_providerMetadata?: Record<string, any
|
|
916
|
+
experimental_providerMetadata?: Record<string, Record<string, any>>;
|
|
915
917
|
files?: Array<any>;
|
|
916
918
|
finishReason:
|
|
917
919
|
| "stop"
|
|
@@ -924,9 +926,11 @@ export type Mounts = {
|
|
|
924
926
|
isContinued: boolean;
|
|
925
927
|
logprobs?: any;
|
|
926
928
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
927
|
-
providerOptions?: Record<string, any>;
|
|
928
929
|
reasoning?: string;
|
|
929
|
-
reasoningDetails?: Array<
|
|
930
|
+
reasoningDetails?: Array<
|
|
931
|
+
| { signature?: string; text: string; type: "text" }
|
|
932
|
+
| { data: string; type: "redacted" }
|
|
933
|
+
>;
|
|
930
934
|
request?: {
|
|
931
935
|
body?: any;
|
|
932
936
|
headers?: Record<string, string>;
|
|
@@ -946,37 +950,33 @@ export type Mounts = {
|
|
|
946
950
|
| string
|
|
947
951
|
| Array<
|
|
948
952
|
| {
|
|
949
|
-
|
|
953
|
+
providerOptions?: Record<
|
|
950
954
|
string,
|
|
951
|
-
any
|
|
955
|
+
Record<string, any>
|
|
952
956
|
>;
|
|
953
|
-
providerOptions?: Record<string, any>;
|
|
954
957
|
text: string;
|
|
955
958
|
type: "text";
|
|
956
959
|
}
|
|
957
960
|
| {
|
|
958
|
-
experimental_providerMetadata?: Record<
|
|
959
|
-
string,
|
|
960
|
-
any
|
|
961
|
-
>;
|
|
962
961
|
image: string | ArrayBuffer;
|
|
963
962
|
mimeType?: string;
|
|
964
|
-
providerOptions?: Record<
|
|
963
|
+
providerOptions?: Record<
|
|
964
|
+
string,
|
|
965
|
+
Record<string, any>
|
|
966
|
+
>;
|
|
965
967
|
type: "image";
|
|
966
968
|
}
|
|
967
969
|
| {
|
|
968
970
|
data: string | ArrayBuffer;
|
|
969
|
-
|
|
971
|
+
mimeType: string;
|
|
972
|
+
providerOptions?: Record<
|
|
970
973
|
string,
|
|
971
|
-
any
|
|
974
|
+
Record<string, any>
|
|
972
975
|
>;
|
|
973
|
-
mimeType: string;
|
|
974
|
-
providerOptions?: Record<string, any>;
|
|
975
976
|
type: "file";
|
|
976
977
|
}
|
|
977
978
|
>;
|
|
978
|
-
|
|
979
|
-
providerOptions?: Record<string, any>;
|
|
979
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
980
980
|
role: "user";
|
|
981
981
|
}
|
|
982
982
|
| {
|
|
@@ -984,56 +984,51 @@ export type Mounts = {
|
|
|
984
984
|
| string
|
|
985
985
|
| Array<
|
|
986
986
|
| {
|
|
987
|
-
|
|
987
|
+
providerOptions?: Record<
|
|
988
988
|
string,
|
|
989
|
-
any
|
|
989
|
+
Record<string, any>
|
|
990
990
|
>;
|
|
991
|
-
providerOptions?: Record<string, any>;
|
|
992
991
|
text: string;
|
|
993
992
|
type: "text";
|
|
994
993
|
}
|
|
995
994
|
| {
|
|
996
995
|
data: string | ArrayBuffer;
|
|
997
|
-
|
|
996
|
+
mimeType: string;
|
|
997
|
+
providerOptions?: Record<
|
|
998
998
|
string,
|
|
999
|
-
any
|
|
999
|
+
Record<string, any>
|
|
1000
1000
|
>;
|
|
1001
|
-
mimeType: string;
|
|
1002
|
-
providerOptions?: Record<string, any>;
|
|
1003
1001
|
type: "file";
|
|
1004
1002
|
}
|
|
1005
1003
|
| {
|
|
1006
|
-
|
|
1004
|
+
providerOptions?: Record<
|
|
1007
1005
|
string,
|
|
1008
|
-
any
|
|
1006
|
+
Record<string, any>
|
|
1009
1007
|
>;
|
|
1010
|
-
|
|
1008
|
+
signature?: string;
|
|
1011
1009
|
text: string;
|
|
1012
1010
|
type: "reasoning";
|
|
1013
1011
|
}
|
|
1014
1012
|
| {
|
|
1015
1013
|
data: string;
|
|
1016
|
-
|
|
1014
|
+
providerOptions?: Record<
|
|
1017
1015
|
string,
|
|
1018
|
-
any
|
|
1016
|
+
Record<string, any>
|
|
1019
1017
|
>;
|
|
1020
|
-
providerOptions?: Record<string, any>;
|
|
1021
1018
|
type: "redacted-reasoning";
|
|
1022
1019
|
}
|
|
1023
1020
|
| {
|
|
1024
1021
|
args: any;
|
|
1025
|
-
|
|
1022
|
+
providerOptions?: Record<
|
|
1026
1023
|
string,
|
|
1027
|
-
any
|
|
1024
|
+
Record<string, any>
|
|
1028
1025
|
>;
|
|
1029
|
-
providerOptions?: Record<string, any>;
|
|
1030
1026
|
toolCallId: string;
|
|
1031
1027
|
toolName: string;
|
|
1032
1028
|
type: "tool-call";
|
|
1033
1029
|
}
|
|
1034
1030
|
>;
|
|
1035
|
-
|
|
1036
|
-
providerOptions?: Record<string, any>;
|
|
1031
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1037
1032
|
role: "assistant";
|
|
1038
1033
|
}
|
|
1039
1034
|
| {
|
|
@@ -1043,22 +1038,19 @@ export type Mounts = {
|
|
|
1043
1038
|
| { text: string; type: "text" }
|
|
1044
1039
|
| { data: string; mimeType?: string; type: "image" }
|
|
1045
1040
|
>;
|
|
1046
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1047
1041
|
isError?: boolean;
|
|
1048
|
-
providerOptions?: Record<string, any
|
|
1042
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1049
1043
|
result: any;
|
|
1050
1044
|
toolCallId: string;
|
|
1051
1045
|
toolName: string;
|
|
1052
1046
|
type: "tool-result";
|
|
1053
1047
|
}>;
|
|
1054
|
-
|
|
1055
|
-
providerOptions?: Record<string, any>;
|
|
1048
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1056
1049
|
role: "tool";
|
|
1057
1050
|
}
|
|
1058
1051
|
| {
|
|
1059
1052
|
content: string;
|
|
1060
|
-
|
|
1061
|
-
providerOptions?: Record<string, any>;
|
|
1053
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1062
1054
|
role: "system";
|
|
1063
1055
|
};
|
|
1064
1056
|
}>;
|
|
@@ -1067,7 +1059,7 @@ export type Mounts = {
|
|
|
1067
1059
|
};
|
|
1068
1060
|
sources?: Array<{
|
|
1069
1061
|
id: string;
|
|
1070
|
-
|
|
1062
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1071
1063
|
sourceType: "url";
|
|
1072
1064
|
title?: string;
|
|
1073
1065
|
url: string;
|
|
@@ -1076,8 +1068,7 @@ export type Mounts = {
|
|
|
1076
1068
|
text: string;
|
|
1077
1069
|
toolCalls: Array<{
|
|
1078
1070
|
args: any;
|
|
1079
|
-
|
|
1080
|
-
providerOptions?: Record<string, any>;
|
|
1071
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1081
1072
|
toolCallId: string;
|
|
1082
1073
|
toolName: string;
|
|
1083
1074
|
type: "tool-call";
|
|
@@ -1088,9 +1079,8 @@ export type Mounts = {
|
|
|
1088
1079
|
| { text: string; type: "text" }
|
|
1089
1080
|
| { data: string; mimeType?: string; type: "image" }
|
|
1090
1081
|
>;
|
|
1091
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1092
1082
|
isError?: boolean;
|
|
1093
|
-
providerOptions?: Record<string, any
|
|
1083
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1094
1084
|
result: any;
|
|
1095
1085
|
toolCallId: string;
|
|
1096
1086
|
toolName: string;
|
|
@@ -1139,7 +1129,12 @@ export type Mounts = {
|
|
|
1139
1129
|
| string
|
|
1140
1130
|
| string;
|
|
1141
1131
|
error?: string;
|
|
1142
|
-
|
|
1132
|
+
files?: Array<{
|
|
1133
|
+
data?: ArrayBuffer | string;
|
|
1134
|
+
fileId?: string;
|
|
1135
|
+
mimeType: string;
|
|
1136
|
+
url?: string;
|
|
1137
|
+
}>;
|
|
1143
1138
|
finishReason?:
|
|
1144
1139
|
| "stop"
|
|
1145
1140
|
| "length"
|
|
@@ -1155,28 +1150,24 @@ export type Mounts = {
|
|
|
1155
1150
|
| string
|
|
1156
1151
|
| Array<
|
|
1157
1152
|
| {
|
|
1158
|
-
|
|
1159
|
-
providerOptions?: Record<string, any>;
|
|
1153
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1160
1154
|
text: string;
|
|
1161
1155
|
type: "text";
|
|
1162
1156
|
}
|
|
1163
1157
|
| {
|
|
1164
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1165
1158
|
image: string | ArrayBuffer;
|
|
1166
1159
|
mimeType?: string;
|
|
1167
|
-
providerOptions?: Record<string, any
|
|
1160
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1168
1161
|
type: "image";
|
|
1169
1162
|
}
|
|
1170
1163
|
| {
|
|
1171
1164
|
data: string | ArrayBuffer;
|
|
1172
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1173
1165
|
mimeType: string;
|
|
1174
|
-
providerOptions?: Record<string, any
|
|
1166
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1175
1167
|
type: "file";
|
|
1176
1168
|
}
|
|
1177
1169
|
>;
|
|
1178
|
-
|
|
1179
|
-
providerOptions?: Record<string, any>;
|
|
1170
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1180
1171
|
role: "user";
|
|
1181
1172
|
}
|
|
1182
1173
|
| {
|
|
@@ -1184,41 +1175,36 @@ export type Mounts = {
|
|
|
1184
1175
|
| string
|
|
1185
1176
|
| Array<
|
|
1186
1177
|
| {
|
|
1187
|
-
|
|
1188
|
-
providerOptions?: Record<string, any>;
|
|
1178
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1189
1179
|
text: string;
|
|
1190
1180
|
type: "text";
|
|
1191
1181
|
}
|
|
1192
1182
|
| {
|
|
1193
1183
|
data: string | ArrayBuffer;
|
|
1194
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1195
1184
|
mimeType: string;
|
|
1196
|
-
providerOptions?: Record<string, any
|
|
1185
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1197
1186
|
type: "file";
|
|
1198
1187
|
}
|
|
1199
1188
|
| {
|
|
1200
|
-
|
|
1201
|
-
|
|
1189
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1190
|
+
signature?: string;
|
|
1202
1191
|
text: string;
|
|
1203
1192
|
type: "reasoning";
|
|
1204
1193
|
}
|
|
1205
1194
|
| {
|
|
1206
1195
|
data: string;
|
|
1207
|
-
|
|
1208
|
-
providerOptions?: Record<string, any>;
|
|
1196
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1209
1197
|
type: "redacted-reasoning";
|
|
1210
1198
|
}
|
|
1211
1199
|
| {
|
|
1212
1200
|
args: any;
|
|
1213
|
-
|
|
1214
|
-
providerOptions?: Record<string, any>;
|
|
1201
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1215
1202
|
toolCallId: string;
|
|
1216
1203
|
toolName: string;
|
|
1217
1204
|
type: "tool-call";
|
|
1218
1205
|
}
|
|
1219
1206
|
>;
|
|
1220
|
-
|
|
1221
|
-
providerOptions?: Record<string, any>;
|
|
1207
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1222
1208
|
role: "assistant";
|
|
1223
1209
|
}
|
|
1224
1210
|
| {
|
|
@@ -1228,33 +1214,35 @@ export type Mounts = {
|
|
|
1228
1214
|
| { text: string; type: "text" }
|
|
1229
1215
|
| { data: string; mimeType?: string; type: "image" }
|
|
1230
1216
|
>;
|
|
1231
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1232
1217
|
isError?: boolean;
|
|
1233
|
-
providerOptions?: Record<string, any
|
|
1218
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1234
1219
|
result: any;
|
|
1235
1220
|
toolCallId: string;
|
|
1236
1221
|
toolName: string;
|
|
1237
1222
|
type: "tool-result";
|
|
1238
1223
|
}>;
|
|
1239
|
-
|
|
1240
|
-
providerOptions?: Record<string, any>;
|
|
1224
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1241
1225
|
role: "tool";
|
|
1242
1226
|
}
|
|
1243
1227
|
| {
|
|
1244
1228
|
content: string;
|
|
1245
|
-
|
|
1246
|
-
providerOptions?: Record<string, any>;
|
|
1229
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1247
1230
|
role: "system";
|
|
1248
1231
|
};
|
|
1249
1232
|
model?: string;
|
|
1250
1233
|
order: number;
|
|
1251
1234
|
parentMessageId?: string;
|
|
1252
1235
|
provider?: string;
|
|
1253
|
-
providerMetadata?: Record<string, any
|
|
1236
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1237
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1254
1238
|
reasoning?: string;
|
|
1239
|
+
reasoningDetails?: Array<
|
|
1240
|
+
| { signature?: string; text: string; type: "text" }
|
|
1241
|
+
| { data: string; type: "redacted" }
|
|
1242
|
+
>;
|
|
1255
1243
|
sources?: Array<{
|
|
1256
1244
|
id: string;
|
|
1257
|
-
|
|
1245
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1258
1246
|
sourceType: "url";
|
|
1259
1247
|
title?: string;
|
|
1260
1248
|
url: string;
|
|
@@ -1318,7 +1306,12 @@ export type Mounts = {
|
|
|
1318
1306
|
| string
|
|
1319
1307
|
| string;
|
|
1320
1308
|
error?: string;
|
|
1321
|
-
|
|
1309
|
+
files?: Array<{
|
|
1310
|
+
data?: ArrayBuffer | string;
|
|
1311
|
+
fileId?: string;
|
|
1312
|
+
mimeType: string;
|
|
1313
|
+
url?: string;
|
|
1314
|
+
}>;
|
|
1322
1315
|
finishReason?:
|
|
1323
1316
|
| "stop"
|
|
1324
1317
|
| "length"
|
|
@@ -1334,28 +1327,24 @@ export type Mounts = {
|
|
|
1334
1327
|
| string
|
|
1335
1328
|
| Array<
|
|
1336
1329
|
| {
|
|
1337
|
-
|
|
1338
|
-
providerOptions?: Record<string, any>;
|
|
1330
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1339
1331
|
text: string;
|
|
1340
1332
|
type: "text";
|
|
1341
1333
|
}
|
|
1342
1334
|
| {
|
|
1343
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1344
1335
|
image: string | ArrayBuffer;
|
|
1345
1336
|
mimeType?: string;
|
|
1346
|
-
providerOptions?: Record<string, any
|
|
1337
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1347
1338
|
type: "image";
|
|
1348
1339
|
}
|
|
1349
1340
|
| {
|
|
1350
1341
|
data: string | ArrayBuffer;
|
|
1351
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1352
1342
|
mimeType: string;
|
|
1353
|
-
providerOptions?: Record<string, any
|
|
1343
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1354
1344
|
type: "file";
|
|
1355
1345
|
}
|
|
1356
1346
|
>;
|
|
1357
|
-
|
|
1358
|
-
providerOptions?: Record<string, any>;
|
|
1347
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1359
1348
|
role: "user";
|
|
1360
1349
|
}
|
|
1361
1350
|
| {
|
|
@@ -1363,41 +1352,36 @@ export type Mounts = {
|
|
|
1363
1352
|
| string
|
|
1364
1353
|
| Array<
|
|
1365
1354
|
| {
|
|
1366
|
-
|
|
1367
|
-
providerOptions?: Record<string, any>;
|
|
1355
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1368
1356
|
text: string;
|
|
1369
1357
|
type: "text";
|
|
1370
1358
|
}
|
|
1371
1359
|
| {
|
|
1372
1360
|
data: string | ArrayBuffer;
|
|
1373
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1374
1361
|
mimeType: string;
|
|
1375
|
-
providerOptions?: Record<string, any
|
|
1362
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1376
1363
|
type: "file";
|
|
1377
1364
|
}
|
|
1378
1365
|
| {
|
|
1379
|
-
|
|
1380
|
-
|
|
1366
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1367
|
+
signature?: string;
|
|
1381
1368
|
text: string;
|
|
1382
1369
|
type: "reasoning";
|
|
1383
1370
|
}
|
|
1384
1371
|
| {
|
|
1385
1372
|
data: string;
|
|
1386
|
-
|
|
1387
|
-
providerOptions?: Record<string, any>;
|
|
1373
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1388
1374
|
type: "redacted-reasoning";
|
|
1389
1375
|
}
|
|
1390
1376
|
| {
|
|
1391
1377
|
args: any;
|
|
1392
|
-
|
|
1393
|
-
providerOptions?: Record<string, any>;
|
|
1378
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1394
1379
|
toolCallId: string;
|
|
1395
1380
|
toolName: string;
|
|
1396
1381
|
type: "tool-call";
|
|
1397
1382
|
}
|
|
1398
1383
|
>;
|
|
1399
|
-
|
|
1400
|
-
providerOptions?: Record<string, any>;
|
|
1384
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1401
1385
|
role: "assistant";
|
|
1402
1386
|
}
|
|
1403
1387
|
| {
|
|
@@ -1407,33 +1391,35 @@ export type Mounts = {
|
|
|
1407
1391
|
| { text: string; type: "text" }
|
|
1408
1392
|
| { data: string; mimeType?: string; type: "image" }
|
|
1409
1393
|
>;
|
|
1410
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1411
1394
|
isError?: boolean;
|
|
1412
|
-
providerOptions?: Record<string, any
|
|
1395
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1413
1396
|
result: any;
|
|
1414
1397
|
toolCallId: string;
|
|
1415
1398
|
toolName: string;
|
|
1416
1399
|
type: "tool-result";
|
|
1417
1400
|
}>;
|
|
1418
|
-
|
|
1419
|
-
providerOptions?: Record<string, any>;
|
|
1401
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1420
1402
|
role: "tool";
|
|
1421
1403
|
}
|
|
1422
1404
|
| {
|
|
1423
1405
|
content: string;
|
|
1424
|
-
|
|
1425
|
-
providerOptions?: Record<string, any>;
|
|
1406
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1426
1407
|
role: "system";
|
|
1427
1408
|
};
|
|
1428
1409
|
model?: string;
|
|
1429
1410
|
order: number;
|
|
1430
1411
|
parentMessageId?: string;
|
|
1431
1412
|
provider?: string;
|
|
1432
|
-
providerMetadata?: Record<string, any
|
|
1413
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1414
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1433
1415
|
reasoning?: string;
|
|
1416
|
+
reasoningDetails?: Array<
|
|
1417
|
+
| { signature?: string; text: string; type: "text" }
|
|
1418
|
+
| { data: string; type: "redacted" }
|
|
1419
|
+
>;
|
|
1434
1420
|
sources?: Array<{
|
|
1435
1421
|
id: string;
|
|
1436
|
-
|
|
1422
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1437
1423
|
sourceType: "url";
|
|
1438
1424
|
title?: string;
|
|
1439
1425
|
url: string;
|
|
@@ -1495,7 +1481,12 @@ export type Mounts = {
|
|
|
1495
1481
|
| string
|
|
1496
1482
|
| string;
|
|
1497
1483
|
error?: string;
|
|
1498
|
-
|
|
1484
|
+
files?: Array<{
|
|
1485
|
+
data?: ArrayBuffer | string;
|
|
1486
|
+
fileId?: string;
|
|
1487
|
+
mimeType: string;
|
|
1488
|
+
url?: string;
|
|
1489
|
+
}>;
|
|
1499
1490
|
finishReason?:
|
|
1500
1491
|
| "stop"
|
|
1501
1492
|
| "length"
|
|
@@ -1511,28 +1502,24 @@ export type Mounts = {
|
|
|
1511
1502
|
| string
|
|
1512
1503
|
| Array<
|
|
1513
1504
|
| {
|
|
1514
|
-
|
|
1515
|
-
providerOptions?: Record<string, any>;
|
|
1505
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1516
1506
|
text: string;
|
|
1517
1507
|
type: "text";
|
|
1518
1508
|
}
|
|
1519
1509
|
| {
|
|
1520
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1521
1510
|
image: string | ArrayBuffer;
|
|
1522
1511
|
mimeType?: string;
|
|
1523
|
-
providerOptions?: Record<string, any
|
|
1512
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1524
1513
|
type: "image";
|
|
1525
1514
|
}
|
|
1526
1515
|
| {
|
|
1527
1516
|
data: string | ArrayBuffer;
|
|
1528
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1529
1517
|
mimeType: string;
|
|
1530
|
-
providerOptions?: Record<string, any
|
|
1518
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1531
1519
|
type: "file";
|
|
1532
1520
|
}
|
|
1533
1521
|
>;
|
|
1534
|
-
|
|
1535
|
-
providerOptions?: Record<string, any>;
|
|
1522
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1536
1523
|
role: "user";
|
|
1537
1524
|
}
|
|
1538
1525
|
| {
|
|
@@ -1540,41 +1527,36 @@ export type Mounts = {
|
|
|
1540
1527
|
| string
|
|
1541
1528
|
| Array<
|
|
1542
1529
|
| {
|
|
1543
|
-
|
|
1544
|
-
providerOptions?: Record<string, any>;
|
|
1530
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1545
1531
|
text: string;
|
|
1546
1532
|
type: "text";
|
|
1547
1533
|
}
|
|
1548
1534
|
| {
|
|
1549
1535
|
data: string | ArrayBuffer;
|
|
1550
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1551
1536
|
mimeType: string;
|
|
1552
|
-
providerOptions?: Record<string, any
|
|
1537
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1553
1538
|
type: "file";
|
|
1554
1539
|
}
|
|
1555
1540
|
| {
|
|
1556
|
-
|
|
1557
|
-
|
|
1541
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1542
|
+
signature?: string;
|
|
1558
1543
|
text: string;
|
|
1559
1544
|
type: "reasoning";
|
|
1560
1545
|
}
|
|
1561
1546
|
| {
|
|
1562
1547
|
data: string;
|
|
1563
|
-
|
|
1564
|
-
providerOptions?: Record<string, any>;
|
|
1548
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1565
1549
|
type: "redacted-reasoning";
|
|
1566
1550
|
}
|
|
1567
1551
|
| {
|
|
1568
1552
|
args: any;
|
|
1569
|
-
|
|
1570
|
-
providerOptions?: Record<string, any>;
|
|
1553
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1571
1554
|
toolCallId: string;
|
|
1572
1555
|
toolName: string;
|
|
1573
1556
|
type: "tool-call";
|
|
1574
1557
|
}
|
|
1575
1558
|
>;
|
|
1576
|
-
|
|
1577
|
-
providerOptions?: Record<string, any>;
|
|
1559
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1578
1560
|
role: "assistant";
|
|
1579
1561
|
}
|
|
1580
1562
|
| {
|
|
@@ -1584,33 +1566,35 @@ export type Mounts = {
|
|
|
1584
1566
|
| { text: string; type: "text" }
|
|
1585
1567
|
| { data: string; mimeType?: string; type: "image" }
|
|
1586
1568
|
>;
|
|
1587
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1588
1569
|
isError?: boolean;
|
|
1589
|
-
providerOptions?: Record<string, any
|
|
1570
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1590
1571
|
result: any;
|
|
1591
1572
|
toolCallId: string;
|
|
1592
1573
|
toolName: string;
|
|
1593
1574
|
type: "tool-result";
|
|
1594
1575
|
}>;
|
|
1595
|
-
|
|
1596
|
-
providerOptions?: Record<string, any>;
|
|
1576
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1597
1577
|
role: "tool";
|
|
1598
1578
|
}
|
|
1599
1579
|
| {
|
|
1600
1580
|
content: string;
|
|
1601
|
-
|
|
1602
|
-
providerOptions?: Record<string, any>;
|
|
1581
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1603
1582
|
role: "system";
|
|
1604
1583
|
};
|
|
1605
1584
|
model?: string;
|
|
1606
1585
|
order: number;
|
|
1607
1586
|
parentMessageId?: string;
|
|
1608
1587
|
provider?: string;
|
|
1609
|
-
providerMetadata?: Record<string, any
|
|
1588
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1589
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1610
1590
|
reasoning?: string;
|
|
1591
|
+
reasoningDetails?: Array<
|
|
1592
|
+
| { signature?: string; text: string; type: "text" }
|
|
1593
|
+
| { data: string; type: "redacted" }
|
|
1594
|
+
>;
|
|
1611
1595
|
sources?: Array<{
|
|
1612
1596
|
id: string;
|
|
1613
|
-
|
|
1597
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1614
1598
|
sourceType: "url";
|
|
1615
1599
|
title?: string;
|
|
1616
1600
|
url: string;
|
|
@@ -1637,7 +1621,13 @@ export type Mounts = {
|
|
|
1637
1621
|
textSearch: FunctionReference<
|
|
1638
1622
|
"query",
|
|
1639
1623
|
"public",
|
|
1640
|
-
{
|
|
1624
|
+
{
|
|
1625
|
+
beforeMessageId?: string;
|
|
1626
|
+
limit: number;
|
|
1627
|
+
text: string;
|
|
1628
|
+
threadId?: string;
|
|
1629
|
+
userId?: string;
|
|
1630
|
+
},
|
|
1641
1631
|
Array<{
|
|
1642
1632
|
_creationTime: number;
|
|
1643
1633
|
_id: string;
|
|
@@ -1653,7 +1643,12 @@ export type Mounts = {
|
|
|
1653
1643
|
| string
|
|
1654
1644
|
| string;
|
|
1655
1645
|
error?: string;
|
|
1656
|
-
|
|
1646
|
+
files?: Array<{
|
|
1647
|
+
data?: ArrayBuffer | string;
|
|
1648
|
+
fileId?: string;
|
|
1649
|
+
mimeType: string;
|
|
1650
|
+
url?: string;
|
|
1651
|
+
}>;
|
|
1657
1652
|
finishReason?:
|
|
1658
1653
|
| "stop"
|
|
1659
1654
|
| "length"
|
|
@@ -1669,28 +1664,24 @@ export type Mounts = {
|
|
|
1669
1664
|
| string
|
|
1670
1665
|
| Array<
|
|
1671
1666
|
| {
|
|
1672
|
-
|
|
1673
|
-
providerOptions?: Record<string, any>;
|
|
1667
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1674
1668
|
text: string;
|
|
1675
1669
|
type: "text";
|
|
1676
1670
|
}
|
|
1677
1671
|
| {
|
|
1678
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1679
1672
|
image: string | ArrayBuffer;
|
|
1680
1673
|
mimeType?: string;
|
|
1681
|
-
providerOptions?: Record<string, any
|
|
1674
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1682
1675
|
type: "image";
|
|
1683
1676
|
}
|
|
1684
1677
|
| {
|
|
1685
1678
|
data: string | ArrayBuffer;
|
|
1686
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1687
1679
|
mimeType: string;
|
|
1688
|
-
providerOptions?: Record<string, any
|
|
1680
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1689
1681
|
type: "file";
|
|
1690
1682
|
}
|
|
1691
1683
|
>;
|
|
1692
|
-
|
|
1693
|
-
providerOptions?: Record<string, any>;
|
|
1684
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1694
1685
|
role: "user";
|
|
1695
1686
|
}
|
|
1696
1687
|
| {
|
|
@@ -1698,41 +1689,36 @@ export type Mounts = {
|
|
|
1698
1689
|
| string
|
|
1699
1690
|
| Array<
|
|
1700
1691
|
| {
|
|
1701
|
-
|
|
1702
|
-
providerOptions?: Record<string, any>;
|
|
1692
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1703
1693
|
text: string;
|
|
1704
1694
|
type: "text";
|
|
1705
1695
|
}
|
|
1706
1696
|
| {
|
|
1707
1697
|
data: string | ArrayBuffer;
|
|
1708
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1709
1698
|
mimeType: string;
|
|
1710
|
-
providerOptions?: Record<string, any
|
|
1699
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1711
1700
|
type: "file";
|
|
1712
1701
|
}
|
|
1713
1702
|
| {
|
|
1714
|
-
|
|
1715
|
-
|
|
1703
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1704
|
+
signature?: string;
|
|
1716
1705
|
text: string;
|
|
1717
1706
|
type: "reasoning";
|
|
1718
1707
|
}
|
|
1719
1708
|
| {
|
|
1720
1709
|
data: string;
|
|
1721
|
-
|
|
1722
|
-
providerOptions?: Record<string, any>;
|
|
1710
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1723
1711
|
type: "redacted-reasoning";
|
|
1724
1712
|
}
|
|
1725
1713
|
| {
|
|
1726
1714
|
args: any;
|
|
1727
|
-
|
|
1728
|
-
providerOptions?: Record<string, any>;
|
|
1715
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1729
1716
|
toolCallId: string;
|
|
1730
1717
|
toolName: string;
|
|
1731
1718
|
type: "tool-call";
|
|
1732
1719
|
}
|
|
1733
1720
|
>;
|
|
1734
|
-
|
|
1735
|
-
providerOptions?: Record<string, any>;
|
|
1721
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1736
1722
|
role: "assistant";
|
|
1737
1723
|
}
|
|
1738
1724
|
| {
|
|
@@ -1742,33 +1728,35 @@ export type Mounts = {
|
|
|
1742
1728
|
| { text: string; type: "text" }
|
|
1743
1729
|
| { data: string; mimeType?: string; type: "image" }
|
|
1744
1730
|
>;
|
|
1745
|
-
experimental_providerMetadata?: Record<string, any>;
|
|
1746
1731
|
isError?: boolean;
|
|
1747
|
-
providerOptions?: Record<string, any
|
|
1732
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1748
1733
|
result: any;
|
|
1749
1734
|
toolCallId: string;
|
|
1750
1735
|
toolName: string;
|
|
1751
1736
|
type: "tool-result";
|
|
1752
1737
|
}>;
|
|
1753
|
-
|
|
1754
|
-
providerOptions?: Record<string, any>;
|
|
1738
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1755
1739
|
role: "tool";
|
|
1756
1740
|
}
|
|
1757
1741
|
| {
|
|
1758
1742
|
content: string;
|
|
1759
|
-
|
|
1760
|
-
providerOptions?: Record<string, any>;
|
|
1743
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1761
1744
|
role: "system";
|
|
1762
1745
|
};
|
|
1763
1746
|
model?: string;
|
|
1764
1747
|
order: number;
|
|
1765
1748
|
parentMessageId?: string;
|
|
1766
1749
|
provider?: string;
|
|
1767
|
-
providerMetadata?: Record<string, any
|
|
1750
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1751
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1768
1752
|
reasoning?: string;
|
|
1753
|
+
reasoningDetails?: Array<
|
|
1754
|
+
| { signature?: string; text: string; type: "text" }
|
|
1755
|
+
| { data: string; type: "redacted" }
|
|
1756
|
+
>;
|
|
1769
1757
|
sources?: Array<{
|
|
1770
1758
|
id: string;
|
|
1771
|
-
|
|
1759
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1772
1760
|
sourceType: "url";
|
|
1773
1761
|
title?: string;
|
|
1774
1762
|
url: string;
|