@convex-dev/agent 0.3.2 → 0.6.0-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/dist/UIMessages.d.ts +3 -2
- package/dist/UIMessages.d.ts.map +1 -1
- package/dist/UIMessages.js +100 -19
- package/dist/UIMessages.js.map +1 -1
- package/dist/client/createTool.d.ts +129 -25
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +65 -8
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +560 -35
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js +4 -2
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +462 -37
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +26 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +114 -9
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/mockModel.d.ts +17 -17
- package/dist/client/mockModel.d.ts.map +1 -1
- package/dist/client/mockModel.js +8 -6
- package/dist/client/mockModel.js.map +1 -1
- package/dist/client/saveInputMessages.d.ts +1 -1
- package/dist/client/saveInputMessages.d.ts.map +1 -1
- package/dist/client/saveInputMessages.js +1 -1
- package/dist/client/saveInputMessages.js.map +1 -1
- package/dist/client/search.d.ts +132 -14
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +66 -19
- package/dist/client/search.js.map +1 -1
- package/dist/client/streamText.d.ts +4 -4
- package/dist/client/streamText.d.ts.map +1 -1
- package/dist/client/streamText.js.map +1 -1
- package/dist/client/streaming.d.ts +1491 -87
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/types.d.ts +26 -6
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +862 -19
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/files.d.ts +12 -6
- package/dist/component/files.d.ts.map +1 -1
- package/dist/component/files.js +10 -2
- package/dist/component/files.js.map +1 -1
- package/dist/component/messages.d.ts +1247 -92
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/schema.d.ts +2823 -217
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +3 -1
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.js +1 -1
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts +10 -10
- package/dist/component/vector/index.d.ts +1 -1
- package/dist/deltas.d.ts.map +1 -1
- package/dist/deltas.js +40 -5
- package/dist/deltas.js.map +1 -1
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +117 -25
- package/dist/mapping.js.map +1 -1
- package/dist/react/useThreadMessages.d.ts.map +1 -1
- package/dist/react/useThreadMessages.js +17 -9
- package/dist/react/useThreadMessages.js.map +1 -1
- package/dist/shared.d.ts +2 -2
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +12196 -624
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +152 -9
- package/dist/validators.js.map +1 -1
- package/package.json +24 -22
- package/src/UIMessages.combineUIMessages.test.ts +239 -0
- package/src/UIMessages.ts +184 -66
- package/src/client/createTool.ts +291 -67
- package/src/client/files.ts +4 -2
- package/src/client/index.test.ts +1 -0
- package/src/client/index.ts +46 -25
- package/src/client/mockModel.ts +36 -34
- package/src/client/saveInputMessages.ts +2 -2
- package/src/client/search.test.ts +166 -0
- package/src/client/search.ts +121 -38
- package/src/client/streamText.ts +5 -5
- package/src/client/types.ts +31 -18
- package/src/component/_generated/component.ts +2329 -338
- package/src/component/files.ts +11 -2
- package/src/component/messages.test.ts +7 -7
- package/src/component/schema.ts +3 -1
- package/src/component/setup.test.ts +7 -0
- package/src/component/streams.ts +1 -1
- package/src/deltas.test.ts +90 -0
- package/src/deltas.ts +47 -8
- package/src/fromUIMessages.test.ts +32 -27
- package/src/mapping.test.ts +48 -0
- package/src/mapping.ts +234 -142
- package/src/react/useThreadMessages.ts +21 -9
- package/src/shared.ts +2 -0
- package/src/toUIMessages.test.ts +539 -1
- package/src/validators.ts +179 -20
- package/src/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +0 -1
|
@@ -51,8 +51,8 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
51
51
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
52
52
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
53
53
|
id: string;
|
|
54
|
-
sourceType: "url";
|
|
55
54
|
url: string;
|
|
55
|
+
sourceType: "url";
|
|
56
56
|
} | {
|
|
57
57
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
58
58
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -75,7 +75,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
75
75
|
type: "other";
|
|
76
76
|
message: string;
|
|
77
77
|
})[] | undefined;
|
|
78
|
-
finishReason?: "
|
|
78
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
79
79
|
reasoningDetails?: ({
|
|
80
80
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
81
81
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -100,15 +100,17 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
100
100
|
text: string;
|
|
101
101
|
} | {
|
|
102
102
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
103
|
+
mediaType?: string | undefined;
|
|
103
104
|
mimeType?: string | undefined;
|
|
104
105
|
type: "image";
|
|
105
106
|
image: string | ArrayBuffer;
|
|
106
107
|
} | {
|
|
107
108
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
108
109
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
110
|
+
mediaType?: string | undefined;
|
|
111
|
+
mimeType?: string | undefined;
|
|
109
112
|
filename?: string | undefined;
|
|
110
113
|
type: "file";
|
|
111
|
-
mimeType: string;
|
|
112
114
|
data: string | ArrayBuffer;
|
|
113
115
|
})[];
|
|
114
116
|
} | {
|
|
@@ -122,9 +124,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
122
124
|
} | {
|
|
123
125
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
124
126
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
127
|
+
mediaType?: string | undefined;
|
|
128
|
+
mimeType?: string | undefined;
|
|
125
129
|
filename?: string | undefined;
|
|
126
130
|
type: "file";
|
|
127
|
-
mimeType: string;
|
|
128
131
|
data: string | ArrayBuffer;
|
|
129
132
|
} | {
|
|
130
133
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -140,6 +143,16 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
140
143
|
} | {
|
|
141
144
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
142
145
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
146
|
+
args?: any;
|
|
147
|
+
providerExecuted?: boolean | undefined;
|
|
148
|
+
type: "tool-call";
|
|
149
|
+
toolCallId: string;
|
|
150
|
+
toolName: string;
|
|
151
|
+
input: any;
|
|
152
|
+
} | {
|
|
153
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
154
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
155
|
+
input?: any;
|
|
143
156
|
providerExecuted?: boolean | undefined;
|
|
144
157
|
type: "tool-call";
|
|
145
158
|
toolCallId: string;
|
|
@@ -151,26 +164,65 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
151
164
|
args?: any;
|
|
152
165
|
providerExecuted?: boolean | undefined;
|
|
153
166
|
output?: {
|
|
167
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
154
168
|
type: "text";
|
|
155
169
|
value: string;
|
|
156
170
|
} | {
|
|
171
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
157
172
|
type: "json";
|
|
158
173
|
value: any;
|
|
159
174
|
} | {
|
|
175
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
160
176
|
type: "error-text";
|
|
161
177
|
value: string;
|
|
162
178
|
} | {
|
|
179
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
163
180
|
type: "error-json";
|
|
164
181
|
value: any;
|
|
182
|
+
} | {
|
|
183
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
184
|
+
reason?: string | undefined;
|
|
185
|
+
type: "execution-denied";
|
|
165
186
|
} | {
|
|
166
187
|
type: "content";
|
|
167
188
|
value: ({
|
|
189
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
168
190
|
type: "text";
|
|
169
191
|
text: string;
|
|
170
192
|
} | {
|
|
171
193
|
type: "media";
|
|
194
|
+
mediaType: string;
|
|
172
195
|
data: string;
|
|
196
|
+
} | {
|
|
197
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
198
|
+
filename?: string | undefined;
|
|
199
|
+
type: "file-data";
|
|
173
200
|
mediaType: string;
|
|
201
|
+
data: string;
|
|
202
|
+
} | {
|
|
203
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
204
|
+
type: "file-url";
|
|
205
|
+
url: string;
|
|
206
|
+
} | {
|
|
207
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
208
|
+
type: "file-id";
|
|
209
|
+
fileId: string | Record<string, string>;
|
|
210
|
+
} | {
|
|
211
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
212
|
+
type: "image-data";
|
|
213
|
+
mediaType: string;
|
|
214
|
+
data: string;
|
|
215
|
+
} | {
|
|
216
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
217
|
+
type: "image-url";
|
|
218
|
+
url: string;
|
|
219
|
+
} | {
|
|
220
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
221
|
+
type: "image-file-id";
|
|
222
|
+
fileId: string | Record<string, string>;
|
|
223
|
+
} | {
|
|
224
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
225
|
+
type: "custom";
|
|
174
226
|
})[];
|
|
175
227
|
} | undefined;
|
|
176
228
|
result?: any;
|
|
@@ -192,8 +244,8 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
192
244
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
193
245
|
id: string;
|
|
194
246
|
type: "source";
|
|
195
|
-
sourceType: "url";
|
|
196
247
|
url: string;
|
|
248
|
+
sourceType: "url";
|
|
197
249
|
} | {
|
|
198
250
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
199
251
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -203,36 +255,81 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
203
255
|
type: "source";
|
|
204
256
|
mediaType: string;
|
|
205
257
|
sourceType: "document";
|
|
258
|
+
} | {
|
|
259
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
260
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
261
|
+
type: "tool-approval-request";
|
|
262
|
+
toolCallId: string;
|
|
263
|
+
approvalId: string;
|
|
206
264
|
})[];
|
|
207
265
|
} | {
|
|
208
266
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
209
267
|
role: "tool";
|
|
210
|
-
content: {
|
|
268
|
+
content: ({
|
|
211
269
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
212
270
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
213
271
|
args?: any;
|
|
214
272
|
providerExecuted?: boolean | undefined;
|
|
215
273
|
output?: {
|
|
274
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
216
275
|
type: "text";
|
|
217
276
|
value: string;
|
|
218
277
|
} | {
|
|
278
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
219
279
|
type: "json";
|
|
220
280
|
value: any;
|
|
221
281
|
} | {
|
|
282
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
222
283
|
type: "error-text";
|
|
223
284
|
value: string;
|
|
224
285
|
} | {
|
|
286
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
225
287
|
type: "error-json";
|
|
226
288
|
value: any;
|
|
289
|
+
} | {
|
|
290
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
291
|
+
reason?: string | undefined;
|
|
292
|
+
type: "execution-denied";
|
|
227
293
|
} | {
|
|
228
294
|
type: "content";
|
|
229
295
|
value: ({
|
|
296
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
230
297
|
type: "text";
|
|
231
298
|
text: string;
|
|
232
299
|
} | {
|
|
233
300
|
type: "media";
|
|
301
|
+
mediaType: string;
|
|
302
|
+
data: string;
|
|
303
|
+
} | {
|
|
304
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
305
|
+
filename?: string | undefined;
|
|
306
|
+
type: "file-data";
|
|
307
|
+
mediaType: string;
|
|
234
308
|
data: string;
|
|
309
|
+
} | {
|
|
310
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
311
|
+
type: "file-url";
|
|
312
|
+
url: string;
|
|
313
|
+
} | {
|
|
314
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
315
|
+
type: "file-id";
|
|
316
|
+
fileId: string | Record<string, string>;
|
|
317
|
+
} | {
|
|
318
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
319
|
+
type: "image-data";
|
|
235
320
|
mediaType: string;
|
|
321
|
+
data: string;
|
|
322
|
+
} | {
|
|
323
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
324
|
+
type: "image-url";
|
|
325
|
+
url: string;
|
|
326
|
+
} | {
|
|
327
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
328
|
+
type: "image-file-id";
|
|
329
|
+
fileId: string | Record<string, string>;
|
|
330
|
+
} | {
|
|
331
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
332
|
+
type: "custom";
|
|
236
333
|
})[];
|
|
237
334
|
} | undefined;
|
|
238
335
|
result?: any;
|
|
@@ -248,7 +345,15 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
248
345
|
type: "tool-result";
|
|
249
346
|
toolCallId: string;
|
|
250
347
|
toolName: string;
|
|
251
|
-
}
|
|
348
|
+
} | {
|
|
349
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
350
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
351
|
+
providerExecuted?: boolean | undefined;
|
|
352
|
+
reason?: string | undefined;
|
|
353
|
+
type: "tool-approval-response";
|
|
354
|
+
approvalId: string;
|
|
355
|
+
approved: boolean;
|
|
356
|
+
})[];
|
|
252
357
|
} | {
|
|
253
358
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
254
359
|
role: "system";
|
|
@@ -276,15 +381,17 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
276
381
|
text: string;
|
|
277
382
|
} | {
|
|
278
383
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
384
|
+
mediaType?: string | undefined;
|
|
279
385
|
mimeType?: string | undefined;
|
|
280
386
|
type: "image";
|
|
281
387
|
image: string | ArrayBuffer;
|
|
282
388
|
} | {
|
|
283
389
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
284
390
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
391
|
+
mediaType?: string | undefined;
|
|
392
|
+
mimeType?: string | undefined;
|
|
285
393
|
filename?: string | undefined;
|
|
286
394
|
type: "file";
|
|
287
|
-
mimeType: string;
|
|
288
395
|
data: string | ArrayBuffer;
|
|
289
396
|
})[];
|
|
290
397
|
} | {
|
|
@@ -298,9 +405,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
298
405
|
} | {
|
|
299
406
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
300
407
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
408
|
+
mediaType?: string | undefined;
|
|
409
|
+
mimeType?: string | undefined;
|
|
301
410
|
filename?: string | undefined;
|
|
302
411
|
type: "file";
|
|
303
|
-
mimeType: string;
|
|
304
412
|
data: string | ArrayBuffer;
|
|
305
413
|
} | {
|
|
306
414
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -316,6 +424,16 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
316
424
|
} | {
|
|
317
425
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
318
426
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
427
|
+
args?: any;
|
|
428
|
+
providerExecuted?: boolean | undefined;
|
|
429
|
+
type: "tool-call";
|
|
430
|
+
toolCallId: string;
|
|
431
|
+
toolName: string;
|
|
432
|
+
input: any;
|
|
433
|
+
} | {
|
|
434
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
435
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
436
|
+
input?: any;
|
|
319
437
|
providerExecuted?: boolean | undefined;
|
|
320
438
|
type: "tool-call";
|
|
321
439
|
toolCallId: string;
|
|
@@ -327,26 +445,65 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
327
445
|
args?: any;
|
|
328
446
|
providerExecuted?: boolean | undefined;
|
|
329
447
|
output?: {
|
|
448
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
330
449
|
type: "text";
|
|
331
450
|
value: string;
|
|
332
451
|
} | {
|
|
452
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
333
453
|
type: "json";
|
|
334
454
|
value: any;
|
|
335
455
|
} | {
|
|
456
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
336
457
|
type: "error-text";
|
|
337
458
|
value: string;
|
|
338
459
|
} | {
|
|
460
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
339
461
|
type: "error-json";
|
|
340
462
|
value: any;
|
|
463
|
+
} | {
|
|
464
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
465
|
+
reason?: string | undefined;
|
|
466
|
+
type: "execution-denied";
|
|
341
467
|
} | {
|
|
342
468
|
type: "content";
|
|
343
469
|
value: ({
|
|
470
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
344
471
|
type: "text";
|
|
345
472
|
text: string;
|
|
346
473
|
} | {
|
|
347
474
|
type: "media";
|
|
475
|
+
mediaType: string;
|
|
348
476
|
data: string;
|
|
477
|
+
} | {
|
|
478
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
479
|
+
filename?: string | undefined;
|
|
480
|
+
type: "file-data";
|
|
349
481
|
mediaType: string;
|
|
482
|
+
data: string;
|
|
483
|
+
} | {
|
|
484
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
485
|
+
type: "file-url";
|
|
486
|
+
url: string;
|
|
487
|
+
} | {
|
|
488
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
489
|
+
type: "file-id";
|
|
490
|
+
fileId: string | Record<string, string>;
|
|
491
|
+
} | {
|
|
492
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
493
|
+
type: "image-data";
|
|
494
|
+
mediaType: string;
|
|
495
|
+
data: string;
|
|
496
|
+
} | {
|
|
497
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
498
|
+
type: "image-url";
|
|
499
|
+
url: string;
|
|
500
|
+
} | {
|
|
501
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
502
|
+
type: "image-file-id";
|
|
503
|
+
fileId: string | Record<string, string>;
|
|
504
|
+
} | {
|
|
505
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
506
|
+
type: "custom";
|
|
350
507
|
})[];
|
|
351
508
|
} | undefined;
|
|
352
509
|
result?: any;
|
|
@@ -368,8 +525,8 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
368
525
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
369
526
|
id: string;
|
|
370
527
|
type: "source";
|
|
371
|
-
sourceType: "url";
|
|
372
528
|
url: string;
|
|
529
|
+
sourceType: "url";
|
|
373
530
|
} | {
|
|
374
531
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
375
532
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -379,36 +536,81 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
379
536
|
type: "source";
|
|
380
537
|
mediaType: string;
|
|
381
538
|
sourceType: "document";
|
|
539
|
+
} | {
|
|
540
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
541
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
542
|
+
type: "tool-approval-request";
|
|
543
|
+
toolCallId: string;
|
|
544
|
+
approvalId: string;
|
|
382
545
|
})[];
|
|
383
546
|
} | {
|
|
384
547
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
385
548
|
role: "tool";
|
|
386
|
-
content: {
|
|
549
|
+
content: ({
|
|
387
550
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
388
551
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
389
552
|
args?: any;
|
|
390
553
|
providerExecuted?: boolean | undefined;
|
|
391
554
|
output?: {
|
|
555
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
392
556
|
type: "text";
|
|
393
557
|
value: string;
|
|
394
558
|
} | {
|
|
559
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
395
560
|
type: "json";
|
|
396
561
|
value: any;
|
|
397
562
|
} | {
|
|
563
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
398
564
|
type: "error-text";
|
|
399
565
|
value: string;
|
|
400
566
|
} | {
|
|
567
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
401
568
|
type: "error-json";
|
|
402
569
|
value: any;
|
|
570
|
+
} | {
|
|
571
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
572
|
+
reason?: string | undefined;
|
|
573
|
+
type: "execution-denied";
|
|
403
574
|
} | {
|
|
404
575
|
type: "content";
|
|
405
576
|
value: ({
|
|
577
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
406
578
|
type: "text";
|
|
407
579
|
text: string;
|
|
408
580
|
} | {
|
|
409
581
|
type: "media";
|
|
582
|
+
mediaType: string;
|
|
410
583
|
data: string;
|
|
584
|
+
} | {
|
|
585
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
586
|
+
filename?: string | undefined;
|
|
587
|
+
type: "file-data";
|
|
588
|
+
mediaType: string;
|
|
589
|
+
data: string;
|
|
590
|
+
} | {
|
|
591
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
592
|
+
type: "file-url";
|
|
593
|
+
url: string;
|
|
594
|
+
} | {
|
|
595
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
596
|
+
type: "file-id";
|
|
597
|
+
fileId: string | Record<string, string>;
|
|
598
|
+
} | {
|
|
599
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
600
|
+
type: "image-data";
|
|
411
601
|
mediaType: string;
|
|
602
|
+
data: string;
|
|
603
|
+
} | {
|
|
604
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
605
|
+
type: "image-url";
|
|
606
|
+
url: string;
|
|
607
|
+
} | {
|
|
608
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
609
|
+
type: "image-file-id";
|
|
610
|
+
fileId: string | Record<string, string>;
|
|
611
|
+
} | {
|
|
612
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
613
|
+
type: "custom";
|
|
412
614
|
})[];
|
|
413
615
|
} | undefined;
|
|
414
616
|
result?: any;
|
|
@@ -424,7 +626,15 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
424
626
|
type: "tool-result";
|
|
425
627
|
toolCallId: string;
|
|
426
628
|
toolName: string;
|
|
427
|
-
}
|
|
629
|
+
} | {
|
|
630
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
631
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
632
|
+
providerExecuted?: boolean | undefined;
|
|
633
|
+
reason?: string | undefined;
|
|
634
|
+
type: "tool-approval-response";
|
|
635
|
+
approvalId: string;
|
|
636
|
+
approved: boolean;
|
|
637
|
+
})[];
|
|
428
638
|
} | {
|
|
429
639
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
430
640
|
role: "system";
|
|
@@ -446,8 +656,8 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
446
656
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
447
657
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
448
658
|
id: string;
|
|
449
|
-
sourceType: "url";
|
|
450
659
|
url: string;
|
|
660
|
+
sourceType: "url";
|
|
451
661
|
} | {
|
|
452
662
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
453
663
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -470,7 +680,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
470
680
|
type: "other";
|
|
471
681
|
message: string;
|
|
472
682
|
})[] | undefined;
|
|
473
|
-
finishReason?: "
|
|
683
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
474
684
|
reasoningDetails?: ({
|
|
475
685
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
476
686
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -485,13 +695,13 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
485
695
|
type: "redacted";
|
|
486
696
|
data: string;
|
|
487
697
|
})[] | undefined;
|
|
488
|
-
_id: string;
|
|
489
|
-
_creationTime: number;
|
|
490
698
|
status: "pending" | "success" | "failed";
|
|
491
699
|
order: number;
|
|
700
|
+
_creationTime: number;
|
|
492
701
|
threadId: string;
|
|
493
702
|
stepOrder: number;
|
|
494
703
|
tool: boolean;
|
|
704
|
+
_id: string;
|
|
495
705
|
}[];
|
|
496
706
|
}>>;
|
|
497
707
|
export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, order?: number): Promise<{
|
|
@@ -517,15 +727,17 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
517
727
|
text: string;
|
|
518
728
|
} | {
|
|
519
729
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
730
|
+
mediaType?: string | undefined;
|
|
520
731
|
mimeType?: string | undefined;
|
|
521
732
|
type: "image";
|
|
522
733
|
image: string | ArrayBuffer;
|
|
523
734
|
} | {
|
|
524
735
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
525
736
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
737
|
+
mediaType?: string | undefined;
|
|
738
|
+
mimeType?: string | undefined;
|
|
526
739
|
filename?: string | undefined;
|
|
527
740
|
type: "file";
|
|
528
|
-
mimeType: string;
|
|
529
741
|
data: string | ArrayBuffer;
|
|
530
742
|
})[];
|
|
531
743
|
} | {
|
|
@@ -539,9 +751,10 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
539
751
|
} | {
|
|
540
752
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
541
753
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
754
|
+
mediaType?: string | undefined;
|
|
755
|
+
mimeType?: string | undefined;
|
|
542
756
|
filename?: string | undefined;
|
|
543
757
|
type: "file";
|
|
544
|
-
mimeType: string;
|
|
545
758
|
data: string | ArrayBuffer;
|
|
546
759
|
} | {
|
|
547
760
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -557,6 +770,16 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
557
770
|
} | {
|
|
558
771
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
559
772
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
773
|
+
args?: any;
|
|
774
|
+
providerExecuted?: boolean | undefined;
|
|
775
|
+
type: "tool-call";
|
|
776
|
+
toolCallId: string;
|
|
777
|
+
toolName: string;
|
|
778
|
+
input: any;
|
|
779
|
+
} | {
|
|
780
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
781
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
782
|
+
input?: any;
|
|
560
783
|
providerExecuted?: boolean | undefined;
|
|
561
784
|
type: "tool-call";
|
|
562
785
|
toolCallId: string;
|
|
@@ -568,26 +791,65 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
568
791
|
args?: any;
|
|
569
792
|
providerExecuted?: boolean | undefined;
|
|
570
793
|
output?: {
|
|
794
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
571
795
|
type: "text";
|
|
572
796
|
value: string;
|
|
573
797
|
} | {
|
|
798
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
574
799
|
type: "json";
|
|
575
800
|
value: any;
|
|
576
801
|
} | {
|
|
802
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
577
803
|
type: "error-text";
|
|
578
804
|
value: string;
|
|
579
805
|
} | {
|
|
806
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
580
807
|
type: "error-json";
|
|
581
808
|
value: any;
|
|
809
|
+
} | {
|
|
810
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
811
|
+
reason?: string | undefined;
|
|
812
|
+
type: "execution-denied";
|
|
582
813
|
} | {
|
|
583
814
|
type: "content";
|
|
584
815
|
value: ({
|
|
816
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
585
817
|
type: "text";
|
|
586
818
|
text: string;
|
|
587
819
|
} | {
|
|
588
820
|
type: "media";
|
|
821
|
+
mediaType: string;
|
|
589
822
|
data: string;
|
|
823
|
+
} | {
|
|
824
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
825
|
+
filename?: string | undefined;
|
|
826
|
+
type: "file-data";
|
|
827
|
+
mediaType: string;
|
|
828
|
+
data: string;
|
|
829
|
+
} | {
|
|
830
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
831
|
+
type: "file-url";
|
|
832
|
+
url: string;
|
|
833
|
+
} | {
|
|
834
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
835
|
+
type: "file-id";
|
|
836
|
+
fileId: string | Record<string, string>;
|
|
837
|
+
} | {
|
|
838
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
839
|
+
type: "image-data";
|
|
590
840
|
mediaType: string;
|
|
841
|
+
data: string;
|
|
842
|
+
} | {
|
|
843
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
844
|
+
type: "image-url";
|
|
845
|
+
url: string;
|
|
846
|
+
} | {
|
|
847
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
848
|
+
type: "image-file-id";
|
|
849
|
+
fileId: string | Record<string, string>;
|
|
850
|
+
} | {
|
|
851
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
852
|
+
type: "custom";
|
|
591
853
|
})[];
|
|
592
854
|
} | undefined;
|
|
593
855
|
result?: any;
|
|
@@ -609,8 +871,8 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
609
871
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
610
872
|
id: string;
|
|
611
873
|
type: "source";
|
|
612
|
-
sourceType: "url";
|
|
613
874
|
url: string;
|
|
875
|
+
sourceType: "url";
|
|
614
876
|
} | {
|
|
615
877
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
616
878
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -620,36 +882,81 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
620
882
|
type: "source";
|
|
621
883
|
mediaType: string;
|
|
622
884
|
sourceType: "document";
|
|
885
|
+
} | {
|
|
886
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
887
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
888
|
+
type: "tool-approval-request";
|
|
889
|
+
toolCallId: string;
|
|
890
|
+
approvalId: string;
|
|
623
891
|
})[];
|
|
624
892
|
} | {
|
|
625
893
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
626
894
|
role: "tool";
|
|
627
|
-
content: {
|
|
895
|
+
content: ({
|
|
628
896
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
629
897
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
630
898
|
args?: any;
|
|
631
899
|
providerExecuted?: boolean | undefined;
|
|
632
900
|
output?: {
|
|
901
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
633
902
|
type: "text";
|
|
634
903
|
value: string;
|
|
635
904
|
} | {
|
|
905
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
636
906
|
type: "json";
|
|
637
907
|
value: any;
|
|
638
908
|
} | {
|
|
909
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
639
910
|
type: "error-text";
|
|
640
911
|
value: string;
|
|
641
912
|
} | {
|
|
913
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
642
914
|
type: "error-json";
|
|
643
915
|
value: any;
|
|
916
|
+
} | {
|
|
917
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
918
|
+
reason?: string | undefined;
|
|
919
|
+
type: "execution-denied";
|
|
644
920
|
} | {
|
|
645
921
|
type: "content";
|
|
646
922
|
value: ({
|
|
923
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
647
924
|
type: "text";
|
|
648
925
|
text: string;
|
|
649
926
|
} | {
|
|
650
927
|
type: "media";
|
|
928
|
+
mediaType: string;
|
|
651
929
|
data: string;
|
|
930
|
+
} | {
|
|
931
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
932
|
+
filename?: string | undefined;
|
|
933
|
+
type: "file-data";
|
|
934
|
+
mediaType: string;
|
|
935
|
+
data: string;
|
|
936
|
+
} | {
|
|
937
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
938
|
+
type: "file-url";
|
|
939
|
+
url: string;
|
|
940
|
+
} | {
|
|
941
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
942
|
+
type: "file-id";
|
|
943
|
+
fileId: string | Record<string, string>;
|
|
944
|
+
} | {
|
|
945
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
946
|
+
type: "image-data";
|
|
652
947
|
mediaType: string;
|
|
948
|
+
data: string;
|
|
949
|
+
} | {
|
|
950
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
951
|
+
type: "image-url";
|
|
952
|
+
url: string;
|
|
953
|
+
} | {
|
|
954
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
955
|
+
type: "image-file-id";
|
|
956
|
+
fileId: string | Record<string, string>;
|
|
957
|
+
} | {
|
|
958
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
959
|
+
type: "custom";
|
|
653
960
|
})[];
|
|
654
961
|
} | undefined;
|
|
655
962
|
result?: any;
|
|
@@ -665,7 +972,15 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
665
972
|
type: "tool-result";
|
|
666
973
|
toolCallId: string;
|
|
667
974
|
toolName: string;
|
|
668
|
-
}
|
|
975
|
+
} | {
|
|
976
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
977
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
978
|
+
providerExecuted?: boolean | undefined;
|
|
979
|
+
reason?: string | undefined;
|
|
980
|
+
type: "tool-approval-response";
|
|
981
|
+
approvalId: string;
|
|
982
|
+
approved: boolean;
|
|
983
|
+
})[];
|
|
669
984
|
} | {
|
|
670
985
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
671
986
|
role: "system";
|
|
@@ -687,8 +1002,8 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
687
1002
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
688
1003
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
689
1004
|
id: string;
|
|
690
|
-
sourceType: "url";
|
|
691
1005
|
url: string;
|
|
1006
|
+
sourceType: "url";
|
|
692
1007
|
} | {
|
|
693
1008
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
694
1009
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -711,7 +1026,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
711
1026
|
type: "other";
|
|
712
1027
|
message: string;
|
|
713
1028
|
})[] | undefined;
|
|
714
|
-
finishReason?: "
|
|
1029
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
715
1030
|
reasoningDetails?: ({
|
|
716
1031
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
717
1032
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -762,15 +1077,17 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
762
1077
|
text: string;
|
|
763
1078
|
} | {
|
|
764
1079
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1080
|
+
mediaType?: string | undefined;
|
|
765
1081
|
mimeType?: string | undefined;
|
|
766
1082
|
type: "image";
|
|
767
1083
|
image: string | ArrayBuffer;
|
|
768
1084
|
} | {
|
|
769
1085
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
770
1086
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1087
|
+
mediaType?: string | undefined;
|
|
1088
|
+
mimeType?: string | undefined;
|
|
771
1089
|
filename?: string | undefined;
|
|
772
1090
|
type: "file";
|
|
773
|
-
mimeType: string;
|
|
774
1091
|
data: string | ArrayBuffer;
|
|
775
1092
|
})[];
|
|
776
1093
|
} | {
|
|
@@ -784,9 +1101,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
784
1101
|
} | {
|
|
785
1102
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
786
1103
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1104
|
+
mediaType?: string | undefined;
|
|
1105
|
+
mimeType?: string | undefined;
|
|
787
1106
|
filename?: string | undefined;
|
|
788
1107
|
type: "file";
|
|
789
|
-
mimeType: string;
|
|
790
1108
|
data: string | ArrayBuffer;
|
|
791
1109
|
} | {
|
|
792
1110
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -802,6 +1120,16 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
802
1120
|
} | {
|
|
803
1121
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
804
1122
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1123
|
+
args?: any;
|
|
1124
|
+
providerExecuted?: boolean | undefined;
|
|
1125
|
+
type: "tool-call";
|
|
1126
|
+
toolCallId: string;
|
|
1127
|
+
toolName: string;
|
|
1128
|
+
input: any;
|
|
1129
|
+
} | {
|
|
1130
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1131
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1132
|
+
input?: any;
|
|
805
1133
|
providerExecuted?: boolean | undefined;
|
|
806
1134
|
type: "tool-call";
|
|
807
1135
|
toolCallId: string;
|
|
@@ -813,26 +1141,65 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
813
1141
|
args?: any;
|
|
814
1142
|
providerExecuted?: boolean | undefined;
|
|
815
1143
|
output?: {
|
|
1144
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
816
1145
|
type: "text";
|
|
817
1146
|
value: string;
|
|
818
1147
|
} | {
|
|
1148
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
819
1149
|
type: "json";
|
|
820
1150
|
value: any;
|
|
821
1151
|
} | {
|
|
1152
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
822
1153
|
type: "error-text";
|
|
823
1154
|
value: string;
|
|
824
1155
|
} | {
|
|
1156
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
825
1157
|
type: "error-json";
|
|
826
1158
|
value: any;
|
|
1159
|
+
} | {
|
|
1160
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1161
|
+
reason?: string | undefined;
|
|
1162
|
+
type: "execution-denied";
|
|
827
1163
|
} | {
|
|
828
1164
|
type: "content";
|
|
829
1165
|
value: ({
|
|
1166
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
830
1167
|
type: "text";
|
|
831
1168
|
text: string;
|
|
832
1169
|
} | {
|
|
833
1170
|
type: "media";
|
|
1171
|
+
mediaType: string;
|
|
834
1172
|
data: string;
|
|
1173
|
+
} | {
|
|
1174
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1175
|
+
filename?: string | undefined;
|
|
1176
|
+
type: "file-data";
|
|
835
1177
|
mediaType: string;
|
|
1178
|
+
data: string;
|
|
1179
|
+
} | {
|
|
1180
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1181
|
+
type: "file-url";
|
|
1182
|
+
url: string;
|
|
1183
|
+
} | {
|
|
1184
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1185
|
+
type: "file-id";
|
|
1186
|
+
fileId: string | Record<string, string>;
|
|
1187
|
+
} | {
|
|
1188
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1189
|
+
type: "image-data";
|
|
1190
|
+
mediaType: string;
|
|
1191
|
+
data: string;
|
|
1192
|
+
} | {
|
|
1193
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1194
|
+
type: "image-url";
|
|
1195
|
+
url: string;
|
|
1196
|
+
} | {
|
|
1197
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1198
|
+
type: "image-file-id";
|
|
1199
|
+
fileId: string | Record<string, string>;
|
|
1200
|
+
} | {
|
|
1201
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1202
|
+
type: "custom";
|
|
836
1203
|
})[];
|
|
837
1204
|
} | undefined;
|
|
838
1205
|
result?: any;
|
|
@@ -854,8 +1221,8 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
854
1221
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
855
1222
|
id: string;
|
|
856
1223
|
type: "source";
|
|
857
|
-
sourceType: "url";
|
|
858
1224
|
url: string;
|
|
1225
|
+
sourceType: "url";
|
|
859
1226
|
} | {
|
|
860
1227
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
861
1228
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -865,36 +1232,81 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
865
1232
|
type: "source";
|
|
866
1233
|
mediaType: string;
|
|
867
1234
|
sourceType: "document";
|
|
1235
|
+
} | {
|
|
1236
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1237
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1238
|
+
type: "tool-approval-request";
|
|
1239
|
+
toolCallId: string;
|
|
1240
|
+
approvalId: string;
|
|
868
1241
|
})[];
|
|
869
1242
|
} | {
|
|
870
1243
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
871
1244
|
role: "tool";
|
|
872
|
-
content: {
|
|
1245
|
+
content: ({
|
|
873
1246
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
874
1247
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
875
1248
|
args?: any;
|
|
876
1249
|
providerExecuted?: boolean | undefined;
|
|
877
1250
|
output?: {
|
|
1251
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
878
1252
|
type: "text";
|
|
879
1253
|
value: string;
|
|
880
1254
|
} | {
|
|
1255
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
881
1256
|
type: "json";
|
|
882
1257
|
value: any;
|
|
883
1258
|
} | {
|
|
1259
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
884
1260
|
type: "error-text";
|
|
885
1261
|
value: string;
|
|
886
1262
|
} | {
|
|
1263
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
887
1264
|
type: "error-json";
|
|
888
1265
|
value: any;
|
|
1266
|
+
} | {
|
|
1267
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1268
|
+
reason?: string | undefined;
|
|
1269
|
+
type: "execution-denied";
|
|
889
1270
|
} | {
|
|
890
1271
|
type: "content";
|
|
891
1272
|
value: ({
|
|
1273
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
892
1274
|
type: "text";
|
|
893
1275
|
text: string;
|
|
894
1276
|
} | {
|
|
895
1277
|
type: "media";
|
|
1278
|
+
mediaType: string;
|
|
1279
|
+
data: string;
|
|
1280
|
+
} | {
|
|
1281
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1282
|
+
filename?: string | undefined;
|
|
1283
|
+
type: "file-data";
|
|
1284
|
+
mediaType: string;
|
|
896
1285
|
data: string;
|
|
1286
|
+
} | {
|
|
1287
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1288
|
+
type: "file-url";
|
|
1289
|
+
url: string;
|
|
1290
|
+
} | {
|
|
1291
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1292
|
+
type: "file-id";
|
|
1293
|
+
fileId: string | Record<string, string>;
|
|
1294
|
+
} | {
|
|
1295
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1296
|
+
type: "image-data";
|
|
897
1297
|
mediaType: string;
|
|
1298
|
+
data: string;
|
|
1299
|
+
} | {
|
|
1300
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1301
|
+
type: "image-url";
|
|
1302
|
+
url: string;
|
|
1303
|
+
} | {
|
|
1304
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1305
|
+
type: "image-file-id";
|
|
1306
|
+
fileId: string | Record<string, string>;
|
|
1307
|
+
} | {
|
|
1308
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1309
|
+
type: "custom";
|
|
898
1310
|
})[];
|
|
899
1311
|
} | undefined;
|
|
900
1312
|
result?: any;
|
|
@@ -910,13 +1322,21 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
910
1322
|
type: "tool-result";
|
|
911
1323
|
toolCallId: string;
|
|
912
1324
|
toolName: string;
|
|
913
|
-
}
|
|
1325
|
+
} | {
|
|
1326
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1327
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1328
|
+
providerExecuted?: boolean | undefined;
|
|
1329
|
+
reason?: string | undefined;
|
|
1330
|
+
type: "tool-approval-response";
|
|
1331
|
+
approvalId: string;
|
|
1332
|
+
approved: boolean;
|
|
1333
|
+
})[];
|
|
914
1334
|
} | {
|
|
915
1335
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
916
1336
|
role: "system";
|
|
917
1337
|
content: string;
|
|
918
1338
|
} | undefined;
|
|
919
|
-
finishReason?: "
|
|
1339
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
920
1340
|
};
|
|
921
1341
|
}, Promise<{
|
|
922
1342
|
id?: string | undefined;
|
|
@@ -938,15 +1358,17 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
938
1358
|
text: string;
|
|
939
1359
|
} | {
|
|
940
1360
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1361
|
+
mediaType?: string | undefined;
|
|
941
1362
|
mimeType?: string | undefined;
|
|
942
1363
|
type: "image";
|
|
943
1364
|
image: string | ArrayBuffer;
|
|
944
1365
|
} | {
|
|
945
1366
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
946
1367
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1368
|
+
mediaType?: string | undefined;
|
|
1369
|
+
mimeType?: string | undefined;
|
|
947
1370
|
filename?: string | undefined;
|
|
948
1371
|
type: "file";
|
|
949
|
-
mimeType: string;
|
|
950
1372
|
data: string | ArrayBuffer;
|
|
951
1373
|
})[];
|
|
952
1374
|
} | {
|
|
@@ -960,9 +1382,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
960
1382
|
} | {
|
|
961
1383
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
962
1384
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1385
|
+
mediaType?: string | undefined;
|
|
1386
|
+
mimeType?: string | undefined;
|
|
963
1387
|
filename?: string | undefined;
|
|
964
1388
|
type: "file";
|
|
965
|
-
mimeType: string;
|
|
966
1389
|
data: string | ArrayBuffer;
|
|
967
1390
|
} | {
|
|
968
1391
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -978,6 +1401,16 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
978
1401
|
} | {
|
|
979
1402
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
980
1403
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1404
|
+
args?: any;
|
|
1405
|
+
providerExecuted?: boolean | undefined;
|
|
1406
|
+
type: "tool-call";
|
|
1407
|
+
toolCallId: string;
|
|
1408
|
+
toolName: string;
|
|
1409
|
+
input: any;
|
|
1410
|
+
} | {
|
|
1411
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1412
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1413
|
+
input?: any;
|
|
981
1414
|
providerExecuted?: boolean | undefined;
|
|
982
1415
|
type: "tool-call";
|
|
983
1416
|
toolCallId: string;
|
|
@@ -989,26 +1422,65 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
989
1422
|
args?: any;
|
|
990
1423
|
providerExecuted?: boolean | undefined;
|
|
991
1424
|
output?: {
|
|
1425
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
992
1426
|
type: "text";
|
|
993
1427
|
value: string;
|
|
994
1428
|
} | {
|
|
1429
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
995
1430
|
type: "json";
|
|
996
1431
|
value: any;
|
|
997
1432
|
} | {
|
|
1433
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
998
1434
|
type: "error-text";
|
|
999
1435
|
value: string;
|
|
1000
1436
|
} | {
|
|
1437
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1001
1438
|
type: "error-json";
|
|
1002
1439
|
value: any;
|
|
1440
|
+
} | {
|
|
1441
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1442
|
+
reason?: string | undefined;
|
|
1443
|
+
type: "execution-denied";
|
|
1003
1444
|
} | {
|
|
1004
1445
|
type: "content";
|
|
1005
1446
|
value: ({
|
|
1447
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1006
1448
|
type: "text";
|
|
1007
1449
|
text: string;
|
|
1008
1450
|
} | {
|
|
1009
1451
|
type: "media";
|
|
1452
|
+
mediaType: string;
|
|
1453
|
+
data: string;
|
|
1454
|
+
} | {
|
|
1455
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1456
|
+
filename?: string | undefined;
|
|
1457
|
+
type: "file-data";
|
|
1458
|
+
mediaType: string;
|
|
1010
1459
|
data: string;
|
|
1460
|
+
} | {
|
|
1461
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1462
|
+
type: "file-url";
|
|
1463
|
+
url: string;
|
|
1464
|
+
} | {
|
|
1465
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1466
|
+
type: "file-id";
|
|
1467
|
+
fileId: string | Record<string, string>;
|
|
1468
|
+
} | {
|
|
1469
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1470
|
+
type: "image-data";
|
|
1011
1471
|
mediaType: string;
|
|
1472
|
+
data: string;
|
|
1473
|
+
} | {
|
|
1474
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1475
|
+
type: "image-url";
|
|
1476
|
+
url: string;
|
|
1477
|
+
} | {
|
|
1478
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1479
|
+
type: "image-file-id";
|
|
1480
|
+
fileId: string | Record<string, string>;
|
|
1481
|
+
} | {
|
|
1482
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1483
|
+
type: "custom";
|
|
1012
1484
|
})[];
|
|
1013
1485
|
} | undefined;
|
|
1014
1486
|
result?: any;
|
|
@@ -1030,8 +1502,8 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1030
1502
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1031
1503
|
id: string;
|
|
1032
1504
|
type: "source";
|
|
1033
|
-
sourceType: "url";
|
|
1034
1505
|
url: string;
|
|
1506
|
+
sourceType: "url";
|
|
1035
1507
|
} | {
|
|
1036
1508
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1037
1509
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1041,36 +1513,81 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1041
1513
|
type: "source";
|
|
1042
1514
|
mediaType: string;
|
|
1043
1515
|
sourceType: "document";
|
|
1516
|
+
} | {
|
|
1517
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1518
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1519
|
+
type: "tool-approval-request";
|
|
1520
|
+
toolCallId: string;
|
|
1521
|
+
approvalId: string;
|
|
1044
1522
|
})[];
|
|
1045
1523
|
} | {
|
|
1046
1524
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1047
1525
|
role: "tool";
|
|
1048
|
-
content: {
|
|
1526
|
+
content: ({
|
|
1049
1527
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1050
1528
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1051
1529
|
args?: any;
|
|
1052
1530
|
providerExecuted?: boolean | undefined;
|
|
1053
1531
|
output?: {
|
|
1532
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1054
1533
|
type: "text";
|
|
1055
1534
|
value: string;
|
|
1056
1535
|
} | {
|
|
1536
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1057
1537
|
type: "json";
|
|
1058
1538
|
value: any;
|
|
1059
1539
|
} | {
|
|
1540
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1060
1541
|
type: "error-text";
|
|
1061
1542
|
value: string;
|
|
1062
1543
|
} | {
|
|
1544
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1063
1545
|
type: "error-json";
|
|
1064
1546
|
value: any;
|
|
1547
|
+
} | {
|
|
1548
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1549
|
+
reason?: string | undefined;
|
|
1550
|
+
type: "execution-denied";
|
|
1065
1551
|
} | {
|
|
1066
1552
|
type: "content";
|
|
1067
1553
|
value: ({
|
|
1554
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1068
1555
|
type: "text";
|
|
1069
1556
|
text: string;
|
|
1070
1557
|
} | {
|
|
1071
1558
|
type: "media";
|
|
1559
|
+
mediaType: string;
|
|
1560
|
+
data: string;
|
|
1561
|
+
} | {
|
|
1562
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1563
|
+
filename?: string | undefined;
|
|
1564
|
+
type: "file-data";
|
|
1565
|
+
mediaType: string;
|
|
1072
1566
|
data: string;
|
|
1567
|
+
} | {
|
|
1568
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1569
|
+
type: "file-url";
|
|
1570
|
+
url: string;
|
|
1571
|
+
} | {
|
|
1572
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1573
|
+
type: "file-id";
|
|
1574
|
+
fileId: string | Record<string, string>;
|
|
1575
|
+
} | {
|
|
1576
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1577
|
+
type: "image-data";
|
|
1073
1578
|
mediaType: string;
|
|
1579
|
+
data: string;
|
|
1580
|
+
} | {
|
|
1581
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1582
|
+
type: "image-url";
|
|
1583
|
+
url: string;
|
|
1584
|
+
} | {
|
|
1585
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1586
|
+
type: "image-file-id";
|
|
1587
|
+
fileId: string | Record<string, string>;
|
|
1588
|
+
} | {
|
|
1589
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1590
|
+
type: "custom";
|
|
1074
1591
|
})[];
|
|
1075
1592
|
} | undefined;
|
|
1076
1593
|
result?: any;
|
|
@@ -1086,7 +1603,15 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1086
1603
|
type: "tool-result";
|
|
1087
1604
|
toolCallId: string;
|
|
1088
1605
|
toolName: string;
|
|
1089
|
-
}
|
|
1606
|
+
} | {
|
|
1607
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1608
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1609
|
+
providerExecuted?: boolean | undefined;
|
|
1610
|
+
reason?: string | undefined;
|
|
1611
|
+
type: "tool-approval-response";
|
|
1612
|
+
approvalId: string;
|
|
1613
|
+
approved: boolean;
|
|
1614
|
+
})[];
|
|
1090
1615
|
} | {
|
|
1091
1616
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1092
1617
|
role: "system";
|
|
@@ -1108,8 +1633,8 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1108
1633
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1109
1634
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1110
1635
|
id: string;
|
|
1111
|
-
sourceType: "url";
|
|
1112
1636
|
url: string;
|
|
1637
|
+
sourceType: "url";
|
|
1113
1638
|
} | {
|
|
1114
1639
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1115
1640
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1132,7 +1657,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1132
1657
|
type: "other";
|
|
1133
1658
|
message: string;
|
|
1134
1659
|
})[] | undefined;
|
|
1135
|
-
finishReason?: "
|
|
1660
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1136
1661
|
reasoningDetails?: ({
|
|
1137
1662
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1138
1663
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1147,13 +1672,13 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1147
1672
|
type: "redacted";
|
|
1148
1673
|
data: string;
|
|
1149
1674
|
})[] | undefined;
|
|
1150
|
-
_id: string;
|
|
1151
|
-
_creationTime: number;
|
|
1152
1675
|
status: "pending" | "success" | "failed";
|
|
1153
1676
|
order: number;
|
|
1677
|
+
_creationTime: number;
|
|
1154
1678
|
threadId: string;
|
|
1155
1679
|
stepOrder: number;
|
|
1156
1680
|
tool: boolean;
|
|
1681
|
+
_id: string;
|
|
1157
1682
|
}>>;
|
|
1158
1683
|
export declare const cloneMessageBatch: import("convex/server").RegisteredMutation<"internal", {
|
|
1159
1684
|
excludeToolMessages?: boolean | undefined;
|
|
@@ -1245,15 +1770,17 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1245
1770
|
text: string;
|
|
1246
1771
|
} | {
|
|
1247
1772
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1773
|
+
mediaType?: string | undefined;
|
|
1248
1774
|
mimeType?: string | undefined;
|
|
1249
1775
|
type: "image";
|
|
1250
1776
|
image: string | ArrayBuffer;
|
|
1251
1777
|
} | {
|
|
1252
1778
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1253
1779
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1780
|
+
mediaType?: string | undefined;
|
|
1781
|
+
mimeType?: string | undefined;
|
|
1254
1782
|
filename?: string | undefined;
|
|
1255
1783
|
type: "file";
|
|
1256
|
-
mimeType: string;
|
|
1257
1784
|
data: string | ArrayBuffer;
|
|
1258
1785
|
})[];
|
|
1259
1786
|
} | {
|
|
@@ -1267,9 +1794,10 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1267
1794
|
} | {
|
|
1268
1795
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1269
1796
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1797
|
+
mediaType?: string | undefined;
|
|
1798
|
+
mimeType?: string | undefined;
|
|
1270
1799
|
filename?: string | undefined;
|
|
1271
1800
|
type: "file";
|
|
1272
|
-
mimeType: string;
|
|
1273
1801
|
data: string | ArrayBuffer;
|
|
1274
1802
|
} | {
|
|
1275
1803
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1285,6 +1813,16 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1285
1813
|
} | {
|
|
1286
1814
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1287
1815
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1816
|
+
args?: any;
|
|
1817
|
+
providerExecuted?: boolean | undefined;
|
|
1818
|
+
type: "tool-call";
|
|
1819
|
+
toolCallId: string;
|
|
1820
|
+
toolName: string;
|
|
1821
|
+
input: any;
|
|
1822
|
+
} | {
|
|
1823
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1824
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1825
|
+
input?: any;
|
|
1288
1826
|
providerExecuted?: boolean | undefined;
|
|
1289
1827
|
type: "tool-call";
|
|
1290
1828
|
toolCallId: string;
|
|
@@ -1296,26 +1834,65 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1296
1834
|
args?: any;
|
|
1297
1835
|
providerExecuted?: boolean | undefined;
|
|
1298
1836
|
output?: {
|
|
1837
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1299
1838
|
type: "text";
|
|
1300
1839
|
value: string;
|
|
1301
1840
|
} | {
|
|
1841
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1302
1842
|
type: "json";
|
|
1303
1843
|
value: any;
|
|
1304
1844
|
} | {
|
|
1845
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1305
1846
|
type: "error-text";
|
|
1306
1847
|
value: string;
|
|
1307
1848
|
} | {
|
|
1849
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1308
1850
|
type: "error-json";
|
|
1309
1851
|
value: any;
|
|
1852
|
+
} | {
|
|
1853
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1854
|
+
reason?: string | undefined;
|
|
1855
|
+
type: "execution-denied";
|
|
1310
1856
|
} | {
|
|
1311
1857
|
type: "content";
|
|
1312
1858
|
value: ({
|
|
1859
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1313
1860
|
type: "text";
|
|
1314
1861
|
text: string;
|
|
1315
1862
|
} | {
|
|
1316
1863
|
type: "media";
|
|
1864
|
+
mediaType: string;
|
|
1865
|
+
data: string;
|
|
1866
|
+
} | {
|
|
1867
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1868
|
+
filename?: string | undefined;
|
|
1869
|
+
type: "file-data";
|
|
1870
|
+
mediaType: string;
|
|
1317
1871
|
data: string;
|
|
1872
|
+
} | {
|
|
1873
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1874
|
+
type: "file-url";
|
|
1875
|
+
url: string;
|
|
1876
|
+
} | {
|
|
1877
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1878
|
+
type: "file-id";
|
|
1879
|
+
fileId: string | Record<string, string>;
|
|
1880
|
+
} | {
|
|
1881
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1882
|
+
type: "image-data";
|
|
1318
1883
|
mediaType: string;
|
|
1884
|
+
data: string;
|
|
1885
|
+
} | {
|
|
1886
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1887
|
+
type: "image-url";
|
|
1888
|
+
url: string;
|
|
1889
|
+
} | {
|
|
1890
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1891
|
+
type: "image-file-id";
|
|
1892
|
+
fileId: string | Record<string, string>;
|
|
1893
|
+
} | {
|
|
1894
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1895
|
+
type: "custom";
|
|
1319
1896
|
})[];
|
|
1320
1897
|
} | undefined;
|
|
1321
1898
|
result?: any;
|
|
@@ -1337,8 +1914,8 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1337
1914
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1338
1915
|
id: string;
|
|
1339
1916
|
type: "source";
|
|
1340
|
-
sourceType: "url";
|
|
1341
1917
|
url: string;
|
|
1918
|
+
sourceType: "url";
|
|
1342
1919
|
} | {
|
|
1343
1920
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1344
1921
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1348,36 +1925,81 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1348
1925
|
type: "source";
|
|
1349
1926
|
mediaType: string;
|
|
1350
1927
|
sourceType: "document";
|
|
1928
|
+
} | {
|
|
1929
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1930
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1931
|
+
type: "tool-approval-request";
|
|
1932
|
+
toolCallId: string;
|
|
1933
|
+
approvalId: string;
|
|
1351
1934
|
})[];
|
|
1352
1935
|
} | {
|
|
1353
1936
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1354
1937
|
role: "tool";
|
|
1355
|
-
content: {
|
|
1938
|
+
content: ({
|
|
1356
1939
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1357
1940
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1358
1941
|
args?: any;
|
|
1359
1942
|
providerExecuted?: boolean | undefined;
|
|
1360
1943
|
output?: {
|
|
1944
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1361
1945
|
type: "text";
|
|
1362
1946
|
value: string;
|
|
1363
1947
|
} | {
|
|
1948
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1364
1949
|
type: "json";
|
|
1365
1950
|
value: any;
|
|
1366
1951
|
} | {
|
|
1952
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1367
1953
|
type: "error-text";
|
|
1368
1954
|
value: string;
|
|
1369
1955
|
} | {
|
|
1956
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1370
1957
|
type: "error-json";
|
|
1371
1958
|
value: any;
|
|
1959
|
+
} | {
|
|
1960
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1961
|
+
reason?: string | undefined;
|
|
1962
|
+
type: "execution-denied";
|
|
1372
1963
|
} | {
|
|
1373
1964
|
type: "content";
|
|
1374
1965
|
value: ({
|
|
1966
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1375
1967
|
type: "text";
|
|
1376
1968
|
text: string;
|
|
1377
1969
|
} | {
|
|
1378
1970
|
type: "media";
|
|
1971
|
+
mediaType: string;
|
|
1379
1972
|
data: string;
|
|
1973
|
+
} | {
|
|
1974
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1975
|
+
filename?: string | undefined;
|
|
1976
|
+
type: "file-data";
|
|
1977
|
+
mediaType: string;
|
|
1978
|
+
data: string;
|
|
1979
|
+
} | {
|
|
1980
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1981
|
+
type: "file-url";
|
|
1982
|
+
url: string;
|
|
1983
|
+
} | {
|
|
1984
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1985
|
+
type: "file-id";
|
|
1986
|
+
fileId: string | Record<string, string>;
|
|
1987
|
+
} | {
|
|
1988
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1989
|
+
type: "image-data";
|
|
1380
1990
|
mediaType: string;
|
|
1991
|
+
data: string;
|
|
1992
|
+
} | {
|
|
1993
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1994
|
+
type: "image-url";
|
|
1995
|
+
url: string;
|
|
1996
|
+
} | {
|
|
1997
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1998
|
+
type: "image-file-id";
|
|
1999
|
+
fileId: string | Record<string, string>;
|
|
2000
|
+
} | {
|
|
2001
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2002
|
+
type: "custom";
|
|
1381
2003
|
})[];
|
|
1382
2004
|
} | undefined;
|
|
1383
2005
|
result?: any;
|
|
@@ -1393,7 +2015,15 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1393
2015
|
type: "tool-result";
|
|
1394
2016
|
toolCallId: string;
|
|
1395
2017
|
toolName: string;
|
|
1396
|
-
}
|
|
2018
|
+
} | {
|
|
2019
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2020
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2021
|
+
providerExecuted?: boolean | undefined;
|
|
2022
|
+
reason?: string | undefined;
|
|
2023
|
+
type: "tool-approval-response";
|
|
2024
|
+
approvalId: string;
|
|
2025
|
+
approved: boolean;
|
|
2026
|
+
})[];
|
|
1397
2027
|
} | {
|
|
1398
2028
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1399
2029
|
role: "system";
|
|
@@ -1415,8 +2045,8 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1415
2045
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1416
2046
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1417
2047
|
id: string;
|
|
1418
|
-
sourceType: "url";
|
|
1419
2048
|
url: string;
|
|
2049
|
+
sourceType: "url";
|
|
1420
2050
|
} | {
|
|
1421
2051
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1422
2052
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1439,7 +2069,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1439
2069
|
type: "other";
|
|
1440
2070
|
message: string;
|
|
1441
2071
|
})[] | undefined;
|
|
1442
|
-
finishReason?: "
|
|
2072
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1443
2073
|
reasoningDetails?: ({
|
|
1444
2074
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1445
2075
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1454,13 +2084,13 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1454
2084
|
type: "redacted";
|
|
1455
2085
|
data: string;
|
|
1456
2086
|
})[] | undefined;
|
|
1457
|
-
_id: string;
|
|
1458
|
-
_creationTime: number;
|
|
1459
2087
|
status: "pending" | "success" | "failed";
|
|
1460
2088
|
order: number;
|
|
2089
|
+
_creationTime: number;
|
|
1461
2090
|
threadId: string;
|
|
1462
2091
|
stepOrder: number;
|
|
1463
2092
|
tool: boolean;
|
|
2093
|
+
_id: string;
|
|
1464
2094
|
}[];
|
|
1465
2095
|
isDone: boolean;
|
|
1466
2096
|
continueCursor: import("convex/server").Cursor;
|
|
@@ -1489,15 +2119,17 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1489
2119
|
text: string;
|
|
1490
2120
|
} | {
|
|
1491
2121
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2122
|
+
mediaType?: string | undefined;
|
|
1492
2123
|
mimeType?: string | undefined;
|
|
1493
2124
|
type: "image";
|
|
1494
2125
|
image: string | ArrayBuffer;
|
|
1495
2126
|
} | {
|
|
1496
2127
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1497
2128
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2129
|
+
mediaType?: string | undefined;
|
|
2130
|
+
mimeType?: string | undefined;
|
|
1498
2131
|
filename?: string | undefined;
|
|
1499
2132
|
type: "file";
|
|
1500
|
-
mimeType: string;
|
|
1501
2133
|
data: string | ArrayBuffer;
|
|
1502
2134
|
})[];
|
|
1503
2135
|
} | {
|
|
@@ -1511,9 +2143,10 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1511
2143
|
} | {
|
|
1512
2144
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1513
2145
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2146
|
+
mediaType?: string | undefined;
|
|
2147
|
+
mimeType?: string | undefined;
|
|
1514
2148
|
filename?: string | undefined;
|
|
1515
2149
|
type: "file";
|
|
1516
|
-
mimeType: string;
|
|
1517
2150
|
data: string | ArrayBuffer;
|
|
1518
2151
|
} | {
|
|
1519
2152
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1529,6 +2162,16 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1529
2162
|
} | {
|
|
1530
2163
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1531
2164
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2165
|
+
args?: any;
|
|
2166
|
+
providerExecuted?: boolean | undefined;
|
|
2167
|
+
type: "tool-call";
|
|
2168
|
+
toolCallId: string;
|
|
2169
|
+
toolName: string;
|
|
2170
|
+
input: any;
|
|
2171
|
+
} | {
|
|
2172
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2173
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2174
|
+
input?: any;
|
|
1532
2175
|
providerExecuted?: boolean | undefined;
|
|
1533
2176
|
type: "tool-call";
|
|
1534
2177
|
toolCallId: string;
|
|
@@ -1540,26 +2183,65 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1540
2183
|
args?: any;
|
|
1541
2184
|
providerExecuted?: boolean | undefined;
|
|
1542
2185
|
output?: {
|
|
2186
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1543
2187
|
type: "text";
|
|
1544
2188
|
value: string;
|
|
1545
2189
|
} | {
|
|
2190
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1546
2191
|
type: "json";
|
|
1547
2192
|
value: any;
|
|
1548
2193
|
} | {
|
|
2194
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1549
2195
|
type: "error-text";
|
|
1550
2196
|
value: string;
|
|
1551
2197
|
} | {
|
|
2198
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1552
2199
|
type: "error-json";
|
|
1553
2200
|
value: any;
|
|
2201
|
+
} | {
|
|
2202
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2203
|
+
reason?: string | undefined;
|
|
2204
|
+
type: "execution-denied";
|
|
1554
2205
|
} | {
|
|
1555
2206
|
type: "content";
|
|
1556
2207
|
value: ({
|
|
2208
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1557
2209
|
type: "text";
|
|
1558
2210
|
text: string;
|
|
1559
2211
|
} | {
|
|
1560
2212
|
type: "media";
|
|
2213
|
+
mediaType: string;
|
|
1561
2214
|
data: string;
|
|
2215
|
+
} | {
|
|
2216
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2217
|
+
filename?: string | undefined;
|
|
2218
|
+
type: "file-data";
|
|
1562
2219
|
mediaType: string;
|
|
2220
|
+
data: string;
|
|
2221
|
+
} | {
|
|
2222
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2223
|
+
type: "file-url";
|
|
2224
|
+
url: string;
|
|
2225
|
+
} | {
|
|
2226
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2227
|
+
type: "file-id";
|
|
2228
|
+
fileId: string | Record<string, string>;
|
|
2229
|
+
} | {
|
|
2230
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2231
|
+
type: "image-data";
|
|
2232
|
+
mediaType: string;
|
|
2233
|
+
data: string;
|
|
2234
|
+
} | {
|
|
2235
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2236
|
+
type: "image-url";
|
|
2237
|
+
url: string;
|
|
2238
|
+
} | {
|
|
2239
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2240
|
+
type: "image-file-id";
|
|
2241
|
+
fileId: string | Record<string, string>;
|
|
2242
|
+
} | {
|
|
2243
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2244
|
+
type: "custom";
|
|
1563
2245
|
})[];
|
|
1564
2246
|
} | undefined;
|
|
1565
2247
|
result?: any;
|
|
@@ -1581,8 +2263,8 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1581
2263
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1582
2264
|
id: string;
|
|
1583
2265
|
type: "source";
|
|
1584
|
-
sourceType: "url";
|
|
1585
2266
|
url: string;
|
|
2267
|
+
sourceType: "url";
|
|
1586
2268
|
} | {
|
|
1587
2269
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1588
2270
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1592,36 +2274,81 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1592
2274
|
type: "source";
|
|
1593
2275
|
mediaType: string;
|
|
1594
2276
|
sourceType: "document";
|
|
2277
|
+
} | {
|
|
2278
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2279
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2280
|
+
type: "tool-approval-request";
|
|
2281
|
+
toolCallId: string;
|
|
2282
|
+
approvalId: string;
|
|
1595
2283
|
})[];
|
|
1596
2284
|
} | {
|
|
1597
2285
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1598
2286
|
role: "tool";
|
|
1599
|
-
content: {
|
|
2287
|
+
content: ({
|
|
1600
2288
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1601
2289
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1602
2290
|
args?: any;
|
|
1603
2291
|
providerExecuted?: boolean | undefined;
|
|
1604
2292
|
output?: {
|
|
2293
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1605
2294
|
type: "text";
|
|
1606
2295
|
value: string;
|
|
1607
2296
|
} | {
|
|
2297
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1608
2298
|
type: "json";
|
|
1609
2299
|
value: any;
|
|
1610
2300
|
} | {
|
|
2301
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1611
2302
|
type: "error-text";
|
|
1612
2303
|
value: string;
|
|
1613
2304
|
} | {
|
|
2305
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1614
2306
|
type: "error-json";
|
|
1615
2307
|
value: any;
|
|
2308
|
+
} | {
|
|
2309
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2310
|
+
reason?: string | undefined;
|
|
2311
|
+
type: "execution-denied";
|
|
1616
2312
|
} | {
|
|
1617
2313
|
type: "content";
|
|
1618
2314
|
value: ({
|
|
2315
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1619
2316
|
type: "text";
|
|
1620
2317
|
text: string;
|
|
1621
2318
|
} | {
|
|
1622
2319
|
type: "media";
|
|
2320
|
+
mediaType: string;
|
|
2321
|
+
data: string;
|
|
2322
|
+
} | {
|
|
2323
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2324
|
+
filename?: string | undefined;
|
|
2325
|
+
type: "file-data";
|
|
2326
|
+
mediaType: string;
|
|
1623
2327
|
data: string;
|
|
2328
|
+
} | {
|
|
2329
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2330
|
+
type: "file-url";
|
|
2331
|
+
url: string;
|
|
2332
|
+
} | {
|
|
2333
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2334
|
+
type: "file-id";
|
|
2335
|
+
fileId: string | Record<string, string>;
|
|
2336
|
+
} | {
|
|
2337
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2338
|
+
type: "image-data";
|
|
1624
2339
|
mediaType: string;
|
|
2340
|
+
data: string;
|
|
2341
|
+
} | {
|
|
2342
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2343
|
+
type: "image-url";
|
|
2344
|
+
url: string;
|
|
2345
|
+
} | {
|
|
2346
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2347
|
+
type: "image-file-id";
|
|
2348
|
+
fileId: string | Record<string, string>;
|
|
2349
|
+
} | {
|
|
2350
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2351
|
+
type: "custom";
|
|
1625
2352
|
})[];
|
|
1626
2353
|
} | undefined;
|
|
1627
2354
|
result?: any;
|
|
@@ -1637,7 +2364,15 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1637
2364
|
type: "tool-result";
|
|
1638
2365
|
toolCallId: string;
|
|
1639
2366
|
toolName: string;
|
|
1640
|
-
}
|
|
2367
|
+
} | {
|
|
2368
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2369
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2370
|
+
providerExecuted?: boolean | undefined;
|
|
2371
|
+
reason?: string | undefined;
|
|
2372
|
+
type: "tool-approval-response";
|
|
2373
|
+
approvalId: string;
|
|
2374
|
+
approved: boolean;
|
|
2375
|
+
})[];
|
|
1641
2376
|
} | {
|
|
1642
2377
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1643
2378
|
role: "system";
|
|
@@ -1659,8 +2394,8 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1659
2394
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1660
2395
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1661
2396
|
id: string;
|
|
1662
|
-
sourceType: "url";
|
|
1663
2397
|
url: string;
|
|
2398
|
+
sourceType: "url";
|
|
1664
2399
|
} | {
|
|
1665
2400
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1666
2401
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1683,7 +2418,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1683
2418
|
type: "other";
|
|
1684
2419
|
message: string;
|
|
1685
2420
|
})[] | undefined;
|
|
1686
|
-
finishReason?: "
|
|
2421
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1687
2422
|
reasoningDetails?: ({
|
|
1688
2423
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1689
2424
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1698,13 +2433,13 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1698
2433
|
type: "redacted";
|
|
1699
2434
|
data: string;
|
|
1700
2435
|
})[] | undefined;
|
|
1701
|
-
_id: string;
|
|
1702
|
-
_creationTime: number;
|
|
1703
2436
|
status: "pending" | "success" | "failed";
|
|
1704
2437
|
order: number;
|
|
2438
|
+
_creationTime: number;
|
|
1705
2439
|
threadId: string;
|
|
1706
2440
|
stepOrder: number;
|
|
1707
2441
|
tool: boolean;
|
|
2442
|
+
_id: string;
|
|
1708
2443
|
} | null)[]>>;
|
|
1709
2444
|
export declare const searchMessages: import("convex/server").RegisteredAction<"public", {
|
|
1710
2445
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
@@ -1741,15 +2476,17 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1741
2476
|
text: string;
|
|
1742
2477
|
} | {
|
|
1743
2478
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2479
|
+
mediaType?: string | undefined;
|
|
1744
2480
|
mimeType?: string | undefined;
|
|
1745
2481
|
type: "image";
|
|
1746
2482
|
image: string | ArrayBuffer;
|
|
1747
2483
|
} | {
|
|
1748
2484
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1749
2485
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2486
|
+
mediaType?: string | undefined;
|
|
2487
|
+
mimeType?: string | undefined;
|
|
1750
2488
|
filename?: string | undefined;
|
|
1751
2489
|
type: "file";
|
|
1752
|
-
mimeType: string;
|
|
1753
2490
|
data: string | ArrayBuffer;
|
|
1754
2491
|
})[];
|
|
1755
2492
|
} | {
|
|
@@ -1763,9 +2500,10 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1763
2500
|
} | {
|
|
1764
2501
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1765
2502
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2503
|
+
mediaType?: string | undefined;
|
|
2504
|
+
mimeType?: string | undefined;
|
|
1766
2505
|
filename?: string | undefined;
|
|
1767
2506
|
type: "file";
|
|
1768
|
-
mimeType: string;
|
|
1769
2507
|
data: string | ArrayBuffer;
|
|
1770
2508
|
} | {
|
|
1771
2509
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1781,6 +2519,16 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1781
2519
|
} | {
|
|
1782
2520
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1783
2521
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2522
|
+
args?: any;
|
|
2523
|
+
providerExecuted?: boolean | undefined;
|
|
2524
|
+
type: "tool-call";
|
|
2525
|
+
toolCallId: string;
|
|
2526
|
+
toolName: string;
|
|
2527
|
+
input: any;
|
|
2528
|
+
} | {
|
|
2529
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2530
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2531
|
+
input?: any;
|
|
1784
2532
|
providerExecuted?: boolean | undefined;
|
|
1785
2533
|
type: "tool-call";
|
|
1786
2534
|
toolCallId: string;
|
|
@@ -1792,26 +2540,65 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1792
2540
|
args?: any;
|
|
1793
2541
|
providerExecuted?: boolean | undefined;
|
|
1794
2542
|
output?: {
|
|
2543
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1795
2544
|
type: "text";
|
|
1796
2545
|
value: string;
|
|
1797
2546
|
} | {
|
|
2547
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1798
2548
|
type: "json";
|
|
1799
2549
|
value: any;
|
|
1800
2550
|
} | {
|
|
2551
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1801
2552
|
type: "error-text";
|
|
1802
2553
|
value: string;
|
|
1803
2554
|
} | {
|
|
2555
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1804
2556
|
type: "error-json";
|
|
1805
2557
|
value: any;
|
|
2558
|
+
} | {
|
|
2559
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2560
|
+
reason?: string | undefined;
|
|
2561
|
+
type: "execution-denied";
|
|
1806
2562
|
} | {
|
|
1807
2563
|
type: "content";
|
|
1808
2564
|
value: ({
|
|
2565
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1809
2566
|
type: "text";
|
|
1810
2567
|
text: string;
|
|
1811
2568
|
} | {
|
|
1812
2569
|
type: "media";
|
|
2570
|
+
mediaType: string;
|
|
2571
|
+
data: string;
|
|
2572
|
+
} | {
|
|
2573
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2574
|
+
filename?: string | undefined;
|
|
2575
|
+
type: "file-data";
|
|
2576
|
+
mediaType: string;
|
|
1813
2577
|
data: string;
|
|
2578
|
+
} | {
|
|
2579
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2580
|
+
type: "file-url";
|
|
2581
|
+
url: string;
|
|
2582
|
+
} | {
|
|
2583
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2584
|
+
type: "file-id";
|
|
2585
|
+
fileId: string | Record<string, string>;
|
|
2586
|
+
} | {
|
|
2587
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2588
|
+
type: "image-data";
|
|
1814
2589
|
mediaType: string;
|
|
2590
|
+
data: string;
|
|
2591
|
+
} | {
|
|
2592
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2593
|
+
type: "image-url";
|
|
2594
|
+
url: string;
|
|
2595
|
+
} | {
|
|
2596
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2597
|
+
type: "image-file-id";
|
|
2598
|
+
fileId: string | Record<string, string>;
|
|
2599
|
+
} | {
|
|
2600
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2601
|
+
type: "custom";
|
|
1815
2602
|
})[];
|
|
1816
2603
|
} | undefined;
|
|
1817
2604
|
result?: any;
|
|
@@ -1833,8 +2620,8 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1833
2620
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1834
2621
|
id: string;
|
|
1835
2622
|
type: "source";
|
|
1836
|
-
sourceType: "url";
|
|
1837
2623
|
url: string;
|
|
2624
|
+
sourceType: "url";
|
|
1838
2625
|
} | {
|
|
1839
2626
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1840
2627
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1844,36 +2631,81 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1844
2631
|
type: "source";
|
|
1845
2632
|
mediaType: string;
|
|
1846
2633
|
sourceType: "document";
|
|
2634
|
+
} | {
|
|
2635
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2636
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2637
|
+
type: "tool-approval-request";
|
|
2638
|
+
toolCallId: string;
|
|
2639
|
+
approvalId: string;
|
|
1847
2640
|
})[];
|
|
1848
2641
|
} | {
|
|
1849
2642
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1850
2643
|
role: "tool";
|
|
1851
|
-
content: {
|
|
2644
|
+
content: ({
|
|
1852
2645
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1853
2646
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1854
2647
|
args?: any;
|
|
1855
2648
|
providerExecuted?: boolean | undefined;
|
|
1856
2649
|
output?: {
|
|
2650
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1857
2651
|
type: "text";
|
|
1858
2652
|
value: string;
|
|
1859
2653
|
} | {
|
|
2654
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1860
2655
|
type: "json";
|
|
1861
2656
|
value: any;
|
|
1862
2657
|
} | {
|
|
2658
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1863
2659
|
type: "error-text";
|
|
1864
2660
|
value: string;
|
|
1865
2661
|
} | {
|
|
2662
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1866
2663
|
type: "error-json";
|
|
1867
2664
|
value: any;
|
|
2665
|
+
} | {
|
|
2666
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2667
|
+
reason?: string | undefined;
|
|
2668
|
+
type: "execution-denied";
|
|
1868
2669
|
} | {
|
|
1869
2670
|
type: "content";
|
|
1870
2671
|
value: ({
|
|
2672
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1871
2673
|
type: "text";
|
|
1872
2674
|
text: string;
|
|
1873
2675
|
} | {
|
|
1874
2676
|
type: "media";
|
|
2677
|
+
mediaType: string;
|
|
2678
|
+
data: string;
|
|
2679
|
+
} | {
|
|
2680
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2681
|
+
filename?: string | undefined;
|
|
2682
|
+
type: "file-data";
|
|
2683
|
+
mediaType: string;
|
|
1875
2684
|
data: string;
|
|
2685
|
+
} | {
|
|
2686
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2687
|
+
type: "file-url";
|
|
2688
|
+
url: string;
|
|
2689
|
+
} | {
|
|
2690
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2691
|
+
type: "file-id";
|
|
2692
|
+
fileId: string | Record<string, string>;
|
|
2693
|
+
} | {
|
|
2694
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2695
|
+
type: "image-data";
|
|
1876
2696
|
mediaType: string;
|
|
2697
|
+
data: string;
|
|
2698
|
+
} | {
|
|
2699
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2700
|
+
type: "image-url";
|
|
2701
|
+
url: string;
|
|
2702
|
+
} | {
|
|
2703
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2704
|
+
type: "image-file-id";
|
|
2705
|
+
fileId: string | Record<string, string>;
|
|
2706
|
+
} | {
|
|
2707
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2708
|
+
type: "custom";
|
|
1877
2709
|
})[];
|
|
1878
2710
|
} | undefined;
|
|
1879
2711
|
result?: any;
|
|
@@ -1889,7 +2721,15 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1889
2721
|
type: "tool-result";
|
|
1890
2722
|
toolCallId: string;
|
|
1891
2723
|
toolName: string;
|
|
1892
|
-
}
|
|
2724
|
+
} | {
|
|
2725
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2726
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2727
|
+
providerExecuted?: boolean | undefined;
|
|
2728
|
+
reason?: string | undefined;
|
|
2729
|
+
type: "tool-approval-response";
|
|
2730
|
+
approvalId: string;
|
|
2731
|
+
approved: boolean;
|
|
2732
|
+
})[];
|
|
1893
2733
|
} | {
|
|
1894
2734
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1895
2735
|
role: "system";
|
|
@@ -1911,8 +2751,8 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1911
2751
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1912
2752
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1913
2753
|
id: string;
|
|
1914
|
-
sourceType: "url";
|
|
1915
2754
|
url: string;
|
|
2755
|
+
sourceType: "url";
|
|
1916
2756
|
} | {
|
|
1917
2757
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1918
2758
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1935,7 +2775,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1935
2775
|
type: "other";
|
|
1936
2776
|
message: string;
|
|
1937
2777
|
})[] | undefined;
|
|
1938
|
-
finishReason?: "
|
|
2778
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1939
2779
|
reasoningDetails?: ({
|
|
1940
2780
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1941
2781
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1950,13 +2790,13 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1950
2790
|
type: "redacted";
|
|
1951
2791
|
data: string;
|
|
1952
2792
|
})[] | undefined;
|
|
1953
|
-
_id: string;
|
|
1954
|
-
_creationTime: number;
|
|
1955
2793
|
status: "pending" | "success" | "failed";
|
|
1956
2794
|
order: number;
|
|
2795
|
+
_creationTime: number;
|
|
1957
2796
|
threadId: string;
|
|
1958
2797
|
stepOrder: number;
|
|
1959
2798
|
tool: boolean;
|
|
2799
|
+
_id: string;
|
|
1960
2800
|
}[]>>;
|
|
1961
2801
|
export declare const _fetchSearchMessages: import("convex/server").RegisteredQuery<"internal", {
|
|
1962
2802
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
@@ -1981,15 +2821,17 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1981
2821
|
text: string;
|
|
1982
2822
|
} | {
|
|
1983
2823
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2824
|
+
mediaType?: string | undefined;
|
|
1984
2825
|
mimeType?: string | undefined;
|
|
1985
2826
|
type: "image";
|
|
1986
2827
|
image: string | ArrayBuffer;
|
|
1987
2828
|
} | {
|
|
1988
2829
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1989
2830
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2831
|
+
mediaType?: string | undefined;
|
|
2832
|
+
mimeType?: string | undefined;
|
|
1990
2833
|
filename?: string | undefined;
|
|
1991
2834
|
type: "file";
|
|
1992
|
-
mimeType: string;
|
|
1993
2835
|
data: string | ArrayBuffer;
|
|
1994
2836
|
})[];
|
|
1995
2837
|
} | {
|
|
@@ -2003,9 +2845,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2003
2845
|
} | {
|
|
2004
2846
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2005
2847
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2848
|
+
mediaType?: string | undefined;
|
|
2849
|
+
mimeType?: string | undefined;
|
|
2006
2850
|
filename?: string | undefined;
|
|
2007
2851
|
type: "file";
|
|
2008
|
-
mimeType: string;
|
|
2009
2852
|
data: string | ArrayBuffer;
|
|
2010
2853
|
} | {
|
|
2011
2854
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2021,6 +2864,16 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2021
2864
|
} | {
|
|
2022
2865
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2023
2866
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2867
|
+
args?: any;
|
|
2868
|
+
providerExecuted?: boolean | undefined;
|
|
2869
|
+
type: "tool-call";
|
|
2870
|
+
toolCallId: string;
|
|
2871
|
+
toolName: string;
|
|
2872
|
+
input: any;
|
|
2873
|
+
} | {
|
|
2874
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2875
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2876
|
+
input?: any;
|
|
2024
2877
|
providerExecuted?: boolean | undefined;
|
|
2025
2878
|
type: "tool-call";
|
|
2026
2879
|
toolCallId: string;
|
|
@@ -2032,26 +2885,65 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2032
2885
|
args?: any;
|
|
2033
2886
|
providerExecuted?: boolean | undefined;
|
|
2034
2887
|
output?: {
|
|
2888
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2035
2889
|
type: "text";
|
|
2036
2890
|
value: string;
|
|
2037
2891
|
} | {
|
|
2892
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2038
2893
|
type: "json";
|
|
2039
2894
|
value: any;
|
|
2040
2895
|
} | {
|
|
2896
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2041
2897
|
type: "error-text";
|
|
2042
2898
|
value: string;
|
|
2043
2899
|
} | {
|
|
2900
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2044
2901
|
type: "error-json";
|
|
2045
2902
|
value: any;
|
|
2903
|
+
} | {
|
|
2904
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2905
|
+
reason?: string | undefined;
|
|
2906
|
+
type: "execution-denied";
|
|
2046
2907
|
} | {
|
|
2047
2908
|
type: "content";
|
|
2048
2909
|
value: ({
|
|
2910
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2049
2911
|
type: "text";
|
|
2050
2912
|
text: string;
|
|
2051
2913
|
} | {
|
|
2052
2914
|
type: "media";
|
|
2915
|
+
mediaType: string;
|
|
2916
|
+
data: string;
|
|
2917
|
+
} | {
|
|
2918
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2919
|
+
filename?: string | undefined;
|
|
2920
|
+
type: "file-data";
|
|
2921
|
+
mediaType: string;
|
|
2053
2922
|
data: string;
|
|
2923
|
+
} | {
|
|
2924
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2925
|
+
type: "file-url";
|
|
2926
|
+
url: string;
|
|
2927
|
+
} | {
|
|
2928
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2929
|
+
type: "file-id";
|
|
2930
|
+
fileId: string | Record<string, string>;
|
|
2931
|
+
} | {
|
|
2932
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2933
|
+
type: "image-data";
|
|
2054
2934
|
mediaType: string;
|
|
2935
|
+
data: string;
|
|
2936
|
+
} | {
|
|
2937
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2938
|
+
type: "image-url";
|
|
2939
|
+
url: string;
|
|
2940
|
+
} | {
|
|
2941
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2942
|
+
type: "image-file-id";
|
|
2943
|
+
fileId: string | Record<string, string>;
|
|
2944
|
+
} | {
|
|
2945
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2946
|
+
type: "custom";
|
|
2055
2947
|
})[];
|
|
2056
2948
|
} | undefined;
|
|
2057
2949
|
result?: any;
|
|
@@ -2073,8 +2965,8 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2073
2965
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2074
2966
|
id: string;
|
|
2075
2967
|
type: "source";
|
|
2076
|
-
sourceType: "url";
|
|
2077
2968
|
url: string;
|
|
2969
|
+
sourceType: "url";
|
|
2078
2970
|
} | {
|
|
2079
2971
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2080
2972
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2084,36 +2976,81 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2084
2976
|
type: "source";
|
|
2085
2977
|
mediaType: string;
|
|
2086
2978
|
sourceType: "document";
|
|
2979
|
+
} | {
|
|
2980
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2981
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2982
|
+
type: "tool-approval-request";
|
|
2983
|
+
toolCallId: string;
|
|
2984
|
+
approvalId: string;
|
|
2087
2985
|
})[];
|
|
2088
2986
|
} | {
|
|
2089
2987
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2090
2988
|
role: "tool";
|
|
2091
|
-
content: {
|
|
2989
|
+
content: ({
|
|
2092
2990
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2093
2991
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2094
2992
|
args?: any;
|
|
2095
2993
|
providerExecuted?: boolean | undefined;
|
|
2096
2994
|
output?: {
|
|
2995
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2097
2996
|
type: "text";
|
|
2098
2997
|
value: string;
|
|
2099
2998
|
} | {
|
|
2999
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2100
3000
|
type: "json";
|
|
2101
3001
|
value: any;
|
|
2102
3002
|
} | {
|
|
3003
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2103
3004
|
type: "error-text";
|
|
2104
3005
|
value: string;
|
|
2105
3006
|
} | {
|
|
3007
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2106
3008
|
type: "error-json";
|
|
2107
3009
|
value: any;
|
|
3010
|
+
} | {
|
|
3011
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3012
|
+
reason?: string | undefined;
|
|
3013
|
+
type: "execution-denied";
|
|
2108
3014
|
} | {
|
|
2109
3015
|
type: "content";
|
|
2110
3016
|
value: ({
|
|
3017
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2111
3018
|
type: "text";
|
|
2112
3019
|
text: string;
|
|
2113
3020
|
} | {
|
|
2114
3021
|
type: "media";
|
|
3022
|
+
mediaType: string;
|
|
3023
|
+
data: string;
|
|
3024
|
+
} | {
|
|
3025
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3026
|
+
filename?: string | undefined;
|
|
3027
|
+
type: "file-data";
|
|
3028
|
+
mediaType: string;
|
|
2115
3029
|
data: string;
|
|
3030
|
+
} | {
|
|
3031
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3032
|
+
type: "file-url";
|
|
3033
|
+
url: string;
|
|
3034
|
+
} | {
|
|
3035
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3036
|
+
type: "file-id";
|
|
3037
|
+
fileId: string | Record<string, string>;
|
|
3038
|
+
} | {
|
|
3039
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3040
|
+
type: "image-data";
|
|
2116
3041
|
mediaType: string;
|
|
3042
|
+
data: string;
|
|
3043
|
+
} | {
|
|
3044
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3045
|
+
type: "image-url";
|
|
3046
|
+
url: string;
|
|
3047
|
+
} | {
|
|
3048
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3049
|
+
type: "image-file-id";
|
|
3050
|
+
fileId: string | Record<string, string>;
|
|
3051
|
+
} | {
|
|
3052
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3053
|
+
type: "custom";
|
|
2117
3054
|
})[];
|
|
2118
3055
|
} | undefined;
|
|
2119
3056
|
result?: any;
|
|
@@ -2129,7 +3066,15 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2129
3066
|
type: "tool-result";
|
|
2130
3067
|
toolCallId: string;
|
|
2131
3068
|
toolName: string;
|
|
2132
|
-
}
|
|
3069
|
+
} | {
|
|
3070
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3071
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3072
|
+
providerExecuted?: boolean | undefined;
|
|
3073
|
+
reason?: string | undefined;
|
|
3074
|
+
type: "tool-approval-response";
|
|
3075
|
+
approvalId: string;
|
|
3076
|
+
approved: boolean;
|
|
3077
|
+
})[];
|
|
2133
3078
|
} | {
|
|
2134
3079
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2135
3080
|
role: "system";
|
|
@@ -2151,8 +3096,8 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2151
3096
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2152
3097
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2153
3098
|
id: string;
|
|
2154
|
-
sourceType: "url";
|
|
2155
3099
|
url: string;
|
|
3100
|
+
sourceType: "url";
|
|
2156
3101
|
} | {
|
|
2157
3102
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2158
3103
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2175,7 +3120,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2175
3120
|
type: "other";
|
|
2176
3121
|
message: string;
|
|
2177
3122
|
})[] | undefined;
|
|
2178
|
-
finishReason?: "
|
|
3123
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2179
3124
|
reasoningDetails?: ({
|
|
2180
3125
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2181
3126
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2190,13 +3135,13 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2190
3135
|
type: "redacted";
|
|
2191
3136
|
data: string;
|
|
2192
3137
|
})[] | undefined;
|
|
2193
|
-
_id: string;
|
|
2194
|
-
_creationTime: number;
|
|
2195
3138
|
status: "pending" | "success" | "failed";
|
|
2196
3139
|
order: number;
|
|
3140
|
+
_creationTime: number;
|
|
2197
3141
|
threadId: string;
|
|
2198
3142
|
stepOrder: number;
|
|
2199
3143
|
tool: boolean;
|
|
3144
|
+
_id: string;
|
|
2200
3145
|
}[] | undefined;
|
|
2201
3146
|
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2202
3147
|
limit: number;
|
|
@@ -2225,15 +3170,17 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2225
3170
|
text: string;
|
|
2226
3171
|
} | {
|
|
2227
3172
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3173
|
+
mediaType?: string | undefined;
|
|
2228
3174
|
mimeType?: string | undefined;
|
|
2229
3175
|
type: "image";
|
|
2230
3176
|
image: string | ArrayBuffer;
|
|
2231
3177
|
} | {
|
|
2232
3178
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2233
3179
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3180
|
+
mediaType?: string | undefined;
|
|
3181
|
+
mimeType?: string | undefined;
|
|
2234
3182
|
filename?: string | undefined;
|
|
2235
3183
|
type: "file";
|
|
2236
|
-
mimeType: string;
|
|
2237
3184
|
data: string | ArrayBuffer;
|
|
2238
3185
|
})[];
|
|
2239
3186
|
} | {
|
|
@@ -2247,9 +3194,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2247
3194
|
} | {
|
|
2248
3195
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2249
3196
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3197
|
+
mediaType?: string | undefined;
|
|
3198
|
+
mimeType?: string | undefined;
|
|
2250
3199
|
filename?: string | undefined;
|
|
2251
3200
|
type: "file";
|
|
2252
|
-
mimeType: string;
|
|
2253
3201
|
data: string | ArrayBuffer;
|
|
2254
3202
|
} | {
|
|
2255
3203
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2265,6 +3213,16 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2265
3213
|
} | {
|
|
2266
3214
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2267
3215
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3216
|
+
args?: any;
|
|
3217
|
+
providerExecuted?: boolean | undefined;
|
|
3218
|
+
type: "tool-call";
|
|
3219
|
+
toolCallId: string;
|
|
3220
|
+
toolName: string;
|
|
3221
|
+
input: any;
|
|
3222
|
+
} | {
|
|
3223
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3224
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3225
|
+
input?: any;
|
|
2268
3226
|
providerExecuted?: boolean | undefined;
|
|
2269
3227
|
type: "tool-call";
|
|
2270
3228
|
toolCallId: string;
|
|
@@ -2276,26 +3234,65 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2276
3234
|
args?: any;
|
|
2277
3235
|
providerExecuted?: boolean | undefined;
|
|
2278
3236
|
output?: {
|
|
3237
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2279
3238
|
type: "text";
|
|
2280
3239
|
value: string;
|
|
2281
3240
|
} | {
|
|
3241
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2282
3242
|
type: "json";
|
|
2283
3243
|
value: any;
|
|
2284
3244
|
} | {
|
|
3245
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2285
3246
|
type: "error-text";
|
|
2286
3247
|
value: string;
|
|
2287
3248
|
} | {
|
|
3249
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2288
3250
|
type: "error-json";
|
|
2289
3251
|
value: any;
|
|
3252
|
+
} | {
|
|
3253
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3254
|
+
reason?: string | undefined;
|
|
3255
|
+
type: "execution-denied";
|
|
2290
3256
|
} | {
|
|
2291
3257
|
type: "content";
|
|
2292
3258
|
value: ({
|
|
3259
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2293
3260
|
type: "text";
|
|
2294
3261
|
text: string;
|
|
2295
3262
|
} | {
|
|
2296
3263
|
type: "media";
|
|
3264
|
+
mediaType: string;
|
|
3265
|
+
data: string;
|
|
3266
|
+
} | {
|
|
3267
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3268
|
+
filename?: string | undefined;
|
|
3269
|
+
type: "file-data";
|
|
3270
|
+
mediaType: string;
|
|
2297
3271
|
data: string;
|
|
3272
|
+
} | {
|
|
3273
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3274
|
+
type: "file-url";
|
|
3275
|
+
url: string;
|
|
3276
|
+
} | {
|
|
3277
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3278
|
+
type: "file-id";
|
|
3279
|
+
fileId: string | Record<string, string>;
|
|
3280
|
+
} | {
|
|
3281
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3282
|
+
type: "image-data";
|
|
2298
3283
|
mediaType: string;
|
|
3284
|
+
data: string;
|
|
3285
|
+
} | {
|
|
3286
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3287
|
+
type: "image-url";
|
|
3288
|
+
url: string;
|
|
3289
|
+
} | {
|
|
3290
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3291
|
+
type: "image-file-id";
|
|
3292
|
+
fileId: string | Record<string, string>;
|
|
3293
|
+
} | {
|
|
3294
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3295
|
+
type: "custom";
|
|
2299
3296
|
})[];
|
|
2300
3297
|
} | undefined;
|
|
2301
3298
|
result?: any;
|
|
@@ -2317,8 +3314,8 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2317
3314
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2318
3315
|
id: string;
|
|
2319
3316
|
type: "source";
|
|
2320
|
-
sourceType: "url";
|
|
2321
3317
|
url: string;
|
|
3318
|
+
sourceType: "url";
|
|
2322
3319
|
} | {
|
|
2323
3320
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2324
3321
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2328,36 +3325,81 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2328
3325
|
type: "source";
|
|
2329
3326
|
mediaType: string;
|
|
2330
3327
|
sourceType: "document";
|
|
3328
|
+
} | {
|
|
3329
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3330
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3331
|
+
type: "tool-approval-request";
|
|
3332
|
+
toolCallId: string;
|
|
3333
|
+
approvalId: string;
|
|
2331
3334
|
})[];
|
|
2332
3335
|
} | {
|
|
2333
3336
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2334
3337
|
role: "tool";
|
|
2335
|
-
content: {
|
|
3338
|
+
content: ({
|
|
2336
3339
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2337
3340
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2338
3341
|
args?: any;
|
|
2339
3342
|
providerExecuted?: boolean | undefined;
|
|
2340
3343
|
output?: {
|
|
3344
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2341
3345
|
type: "text";
|
|
2342
3346
|
value: string;
|
|
2343
3347
|
} | {
|
|
3348
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2344
3349
|
type: "json";
|
|
2345
3350
|
value: any;
|
|
2346
3351
|
} | {
|
|
3352
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2347
3353
|
type: "error-text";
|
|
2348
3354
|
value: string;
|
|
2349
3355
|
} | {
|
|
3356
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2350
3357
|
type: "error-json";
|
|
2351
3358
|
value: any;
|
|
3359
|
+
} | {
|
|
3360
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3361
|
+
reason?: string | undefined;
|
|
3362
|
+
type: "execution-denied";
|
|
2352
3363
|
} | {
|
|
2353
3364
|
type: "content";
|
|
2354
3365
|
value: ({
|
|
3366
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2355
3367
|
type: "text";
|
|
2356
3368
|
text: string;
|
|
2357
3369
|
} | {
|
|
2358
3370
|
type: "media";
|
|
3371
|
+
mediaType: string;
|
|
3372
|
+
data: string;
|
|
3373
|
+
} | {
|
|
3374
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3375
|
+
filename?: string | undefined;
|
|
3376
|
+
type: "file-data";
|
|
3377
|
+
mediaType: string;
|
|
2359
3378
|
data: string;
|
|
3379
|
+
} | {
|
|
3380
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3381
|
+
type: "file-url";
|
|
3382
|
+
url: string;
|
|
3383
|
+
} | {
|
|
3384
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3385
|
+
type: "file-id";
|
|
3386
|
+
fileId: string | Record<string, string>;
|
|
3387
|
+
} | {
|
|
3388
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3389
|
+
type: "image-data";
|
|
2360
3390
|
mediaType: string;
|
|
3391
|
+
data: string;
|
|
3392
|
+
} | {
|
|
3393
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3394
|
+
type: "image-url";
|
|
3395
|
+
url: string;
|
|
3396
|
+
} | {
|
|
3397
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3398
|
+
type: "image-file-id";
|
|
3399
|
+
fileId: string | Record<string, string>;
|
|
3400
|
+
} | {
|
|
3401
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3402
|
+
type: "custom";
|
|
2361
3403
|
})[];
|
|
2362
3404
|
} | undefined;
|
|
2363
3405
|
result?: any;
|
|
@@ -2373,7 +3415,15 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2373
3415
|
type: "tool-result";
|
|
2374
3416
|
toolCallId: string;
|
|
2375
3417
|
toolName: string;
|
|
2376
|
-
}
|
|
3418
|
+
} | {
|
|
3419
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3420
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3421
|
+
providerExecuted?: boolean | undefined;
|
|
3422
|
+
reason?: string | undefined;
|
|
3423
|
+
type: "tool-approval-response";
|
|
3424
|
+
approvalId: string;
|
|
3425
|
+
approved: boolean;
|
|
3426
|
+
})[];
|
|
2377
3427
|
} | {
|
|
2378
3428
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2379
3429
|
role: "system";
|
|
@@ -2395,8 +3445,8 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2395
3445
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2396
3446
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2397
3447
|
id: string;
|
|
2398
|
-
sourceType: "url";
|
|
2399
3448
|
url: string;
|
|
3449
|
+
sourceType: "url";
|
|
2400
3450
|
} | {
|
|
2401
3451
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2402
3452
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2419,7 +3469,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2419
3469
|
type: "other";
|
|
2420
3470
|
message: string;
|
|
2421
3471
|
})[] | undefined;
|
|
2422
|
-
finishReason?: "
|
|
3472
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2423
3473
|
reasoningDetails?: ({
|
|
2424
3474
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2425
3475
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2434,13 +3484,13 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2434
3484
|
type: "redacted";
|
|
2435
3485
|
data: string;
|
|
2436
3486
|
})[] | undefined;
|
|
2437
|
-
_id: string;
|
|
2438
|
-
_creationTime: number;
|
|
2439
3487
|
status: "pending" | "success" | "failed";
|
|
2440
3488
|
order: number;
|
|
3489
|
+
_creationTime: number;
|
|
2441
3490
|
threadId: string;
|
|
2442
3491
|
stepOrder: number;
|
|
2443
3492
|
tool: boolean;
|
|
3493
|
+
_id: string;
|
|
2444
3494
|
}[]>>;
|
|
2445
3495
|
export declare const textSearch: import("convex/server").RegisteredQuery<"public", {
|
|
2446
3496
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
@@ -2468,15 +3518,17 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2468
3518
|
text: string;
|
|
2469
3519
|
} | {
|
|
2470
3520
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3521
|
+
mediaType?: string | undefined;
|
|
2471
3522
|
mimeType?: string | undefined;
|
|
2472
3523
|
type: "image";
|
|
2473
3524
|
image: string | ArrayBuffer;
|
|
2474
3525
|
} | {
|
|
2475
3526
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2476
3527
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3528
|
+
mediaType?: string | undefined;
|
|
3529
|
+
mimeType?: string | undefined;
|
|
2477
3530
|
filename?: string | undefined;
|
|
2478
3531
|
type: "file";
|
|
2479
|
-
mimeType: string;
|
|
2480
3532
|
data: string | ArrayBuffer;
|
|
2481
3533
|
})[];
|
|
2482
3534
|
} | {
|
|
@@ -2490,9 +3542,10 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2490
3542
|
} | {
|
|
2491
3543
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2492
3544
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3545
|
+
mediaType?: string | undefined;
|
|
3546
|
+
mimeType?: string | undefined;
|
|
2493
3547
|
filename?: string | undefined;
|
|
2494
3548
|
type: "file";
|
|
2495
|
-
mimeType: string;
|
|
2496
3549
|
data: string | ArrayBuffer;
|
|
2497
3550
|
} | {
|
|
2498
3551
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2508,6 +3561,16 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2508
3561
|
} | {
|
|
2509
3562
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2510
3563
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3564
|
+
args?: any;
|
|
3565
|
+
providerExecuted?: boolean | undefined;
|
|
3566
|
+
type: "tool-call";
|
|
3567
|
+
toolCallId: string;
|
|
3568
|
+
toolName: string;
|
|
3569
|
+
input: any;
|
|
3570
|
+
} | {
|
|
3571
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3572
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3573
|
+
input?: any;
|
|
2511
3574
|
providerExecuted?: boolean | undefined;
|
|
2512
3575
|
type: "tool-call";
|
|
2513
3576
|
toolCallId: string;
|
|
@@ -2519,26 +3582,65 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2519
3582
|
args?: any;
|
|
2520
3583
|
providerExecuted?: boolean | undefined;
|
|
2521
3584
|
output?: {
|
|
3585
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2522
3586
|
type: "text";
|
|
2523
3587
|
value: string;
|
|
2524
3588
|
} | {
|
|
3589
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2525
3590
|
type: "json";
|
|
2526
3591
|
value: any;
|
|
2527
3592
|
} | {
|
|
3593
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2528
3594
|
type: "error-text";
|
|
2529
3595
|
value: string;
|
|
2530
3596
|
} | {
|
|
3597
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2531
3598
|
type: "error-json";
|
|
2532
3599
|
value: any;
|
|
3600
|
+
} | {
|
|
3601
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3602
|
+
reason?: string | undefined;
|
|
3603
|
+
type: "execution-denied";
|
|
2533
3604
|
} | {
|
|
2534
3605
|
type: "content";
|
|
2535
3606
|
value: ({
|
|
3607
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2536
3608
|
type: "text";
|
|
2537
3609
|
text: string;
|
|
2538
3610
|
} | {
|
|
2539
3611
|
type: "media";
|
|
3612
|
+
mediaType: string;
|
|
2540
3613
|
data: string;
|
|
3614
|
+
} | {
|
|
3615
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3616
|
+
filename?: string | undefined;
|
|
3617
|
+
type: "file-data";
|
|
3618
|
+
mediaType: string;
|
|
3619
|
+
data: string;
|
|
3620
|
+
} | {
|
|
3621
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3622
|
+
type: "file-url";
|
|
3623
|
+
url: string;
|
|
3624
|
+
} | {
|
|
3625
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3626
|
+
type: "file-id";
|
|
3627
|
+
fileId: string | Record<string, string>;
|
|
3628
|
+
} | {
|
|
3629
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3630
|
+
type: "image-data";
|
|
2541
3631
|
mediaType: string;
|
|
3632
|
+
data: string;
|
|
3633
|
+
} | {
|
|
3634
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3635
|
+
type: "image-url";
|
|
3636
|
+
url: string;
|
|
3637
|
+
} | {
|
|
3638
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3639
|
+
type: "image-file-id";
|
|
3640
|
+
fileId: string | Record<string, string>;
|
|
3641
|
+
} | {
|
|
3642
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3643
|
+
type: "custom";
|
|
2542
3644
|
})[];
|
|
2543
3645
|
} | undefined;
|
|
2544
3646
|
result?: any;
|
|
@@ -2560,8 +3662,8 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2560
3662
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2561
3663
|
id: string;
|
|
2562
3664
|
type: "source";
|
|
2563
|
-
sourceType: "url";
|
|
2564
3665
|
url: string;
|
|
3666
|
+
sourceType: "url";
|
|
2565
3667
|
} | {
|
|
2566
3668
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2567
3669
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2571,36 +3673,81 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2571
3673
|
type: "source";
|
|
2572
3674
|
mediaType: string;
|
|
2573
3675
|
sourceType: "document";
|
|
3676
|
+
} | {
|
|
3677
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3678
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3679
|
+
type: "tool-approval-request";
|
|
3680
|
+
toolCallId: string;
|
|
3681
|
+
approvalId: string;
|
|
2574
3682
|
})[];
|
|
2575
3683
|
} | {
|
|
2576
3684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2577
3685
|
role: "tool";
|
|
2578
|
-
content: {
|
|
3686
|
+
content: ({
|
|
2579
3687
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2580
3688
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2581
3689
|
args?: any;
|
|
2582
3690
|
providerExecuted?: boolean | undefined;
|
|
2583
3691
|
output?: {
|
|
3692
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2584
3693
|
type: "text";
|
|
2585
3694
|
value: string;
|
|
2586
3695
|
} | {
|
|
3696
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2587
3697
|
type: "json";
|
|
2588
3698
|
value: any;
|
|
2589
3699
|
} | {
|
|
3700
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2590
3701
|
type: "error-text";
|
|
2591
3702
|
value: string;
|
|
2592
3703
|
} | {
|
|
3704
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2593
3705
|
type: "error-json";
|
|
2594
3706
|
value: any;
|
|
3707
|
+
} | {
|
|
3708
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3709
|
+
reason?: string | undefined;
|
|
3710
|
+
type: "execution-denied";
|
|
2595
3711
|
} | {
|
|
2596
3712
|
type: "content";
|
|
2597
3713
|
value: ({
|
|
3714
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2598
3715
|
type: "text";
|
|
2599
3716
|
text: string;
|
|
2600
3717
|
} | {
|
|
2601
3718
|
type: "media";
|
|
3719
|
+
mediaType: string;
|
|
3720
|
+
data: string;
|
|
3721
|
+
} | {
|
|
3722
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3723
|
+
filename?: string | undefined;
|
|
3724
|
+
type: "file-data";
|
|
3725
|
+
mediaType: string;
|
|
2602
3726
|
data: string;
|
|
3727
|
+
} | {
|
|
3728
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3729
|
+
type: "file-url";
|
|
3730
|
+
url: string;
|
|
3731
|
+
} | {
|
|
3732
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3733
|
+
type: "file-id";
|
|
3734
|
+
fileId: string | Record<string, string>;
|
|
3735
|
+
} | {
|
|
3736
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3737
|
+
type: "image-data";
|
|
2603
3738
|
mediaType: string;
|
|
3739
|
+
data: string;
|
|
3740
|
+
} | {
|
|
3741
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3742
|
+
type: "image-url";
|
|
3743
|
+
url: string;
|
|
3744
|
+
} | {
|
|
3745
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3746
|
+
type: "image-file-id";
|
|
3747
|
+
fileId: string | Record<string, string>;
|
|
3748
|
+
} | {
|
|
3749
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3750
|
+
type: "custom";
|
|
2604
3751
|
})[];
|
|
2605
3752
|
} | undefined;
|
|
2606
3753
|
result?: any;
|
|
@@ -2616,7 +3763,15 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2616
3763
|
type: "tool-result";
|
|
2617
3764
|
toolCallId: string;
|
|
2618
3765
|
toolName: string;
|
|
2619
|
-
}
|
|
3766
|
+
} | {
|
|
3767
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3768
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3769
|
+
providerExecuted?: boolean | undefined;
|
|
3770
|
+
reason?: string | undefined;
|
|
3771
|
+
type: "tool-approval-response";
|
|
3772
|
+
approvalId: string;
|
|
3773
|
+
approved: boolean;
|
|
3774
|
+
})[];
|
|
2620
3775
|
} | {
|
|
2621
3776
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2622
3777
|
role: "system";
|
|
@@ -2638,8 +3793,8 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2638
3793
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2639
3794
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2640
3795
|
id: string;
|
|
2641
|
-
sourceType: "url";
|
|
2642
3796
|
url: string;
|
|
3797
|
+
sourceType: "url";
|
|
2643
3798
|
} | {
|
|
2644
3799
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2645
3800
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2662,7 +3817,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2662
3817
|
type: "other";
|
|
2663
3818
|
message: string;
|
|
2664
3819
|
})[] | undefined;
|
|
2665
|
-
finishReason?: "
|
|
3820
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2666
3821
|
reasoningDetails?: ({
|
|
2667
3822
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2668
3823
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2677,13 +3832,13 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2677
3832
|
type: "redacted";
|
|
2678
3833
|
data: string;
|
|
2679
3834
|
})[] | undefined;
|
|
2680
|
-
_id: string;
|
|
2681
|
-
_creationTime: number;
|
|
2682
3835
|
status: "pending" | "success" | "failed";
|
|
2683
3836
|
order: number;
|
|
3837
|
+
_creationTime: number;
|
|
2684
3838
|
threadId: string;
|
|
2685
3839
|
stepOrder: number;
|
|
2686
3840
|
tool: boolean;
|
|
3841
|
+
_id: string;
|
|
2687
3842
|
}[]>>;
|
|
2688
3843
|
export declare const getMessageSearchFields: import("convex/server").RegisteredQuery<"public", {
|
|
2689
3844
|
messageId: import("convex/values").GenericId<"messages">;
|