@convex-dev/agent 0.2.2-alpha.4 → 0.2.3-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/client/definePlaygroundAPI.d.ts +85 -8
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/index.d.ts +84 -6
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +18 -3
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +7 -4
- package/dist/client/messages.js.map +1 -1
- package/dist/client/search.d.ts +17 -2
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/streaming.d.ts +195 -21
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +112 -15
- package/dist/component/messages.d.ts +187 -21
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/schema.d.ts +517 -55
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +3 -4
- package/dist/mapping.js.map +1 -1
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +25 -4
- package/dist/react/deltas.js.map +1 -1
- package/dist/validators.d.ts +1257 -177
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +2 -3
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +20 -1
- package/src/client/messages.ts +12 -4
- package/src/component/_generated/api.d.ts +112 -15
- package/src/mapping.ts +8 -7
- package/src/react/deltas.ts +33 -8
- package/src/react/toUIMessages.test.ts +48 -4
- package/src/validators.ts +15 -15
|
@@ -14,7 +14,7 @@ import type { AgentComponent, RunMutationCtx, RunQueryCtx } from "./types.js";
|
|
|
14
14
|
* @param args.statuses What statuses to include. All by default.
|
|
15
15
|
* @returns The MessageDoc's in a format compatible with usePaginatedQuery.
|
|
16
16
|
*/
|
|
17
|
-
export declare function listMessages(ctx: RunQueryCtx, component: AgentComponent,
|
|
17
|
+
export declare function listMessages(ctx: RunQueryCtx, component: AgentComponent, { threadId, paginationOpts, excludeToolMessages, statuses, }: {
|
|
18
18
|
threadId: string;
|
|
19
19
|
paginationOpts: PaginationOptions;
|
|
20
20
|
excludeToolMessages?: boolean;
|
|
@@ -150,7 +150,6 @@ export declare function saveMessage(ctx: RunMutationCtx, component: AgentCompone
|
|
|
150
150
|
} | {
|
|
151
151
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
152
152
|
signature?: string | undefined;
|
|
153
|
-
state?: "streaming" | "done" | undefined;
|
|
154
153
|
type: "reasoning";
|
|
155
154
|
text: string;
|
|
156
155
|
} | {
|
|
@@ -164,6 +163,23 @@ export declare function saveMessage(ctx: RunMutationCtx, component: AgentCompone
|
|
|
164
163
|
toolCallId: string;
|
|
165
164
|
toolName: string;
|
|
166
165
|
args: any;
|
|
166
|
+
} | {
|
|
167
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
168
|
+
args?: any;
|
|
169
|
+
providerExecuted?: boolean | undefined;
|
|
170
|
+
isError?: boolean | undefined;
|
|
171
|
+
experimental_content?: ({
|
|
172
|
+
type: "text";
|
|
173
|
+
text: string;
|
|
174
|
+
} | {
|
|
175
|
+
mimeType?: string | undefined;
|
|
176
|
+
type: "image";
|
|
177
|
+
data: string;
|
|
178
|
+
})[] | undefined;
|
|
179
|
+
type: "tool-result";
|
|
180
|
+
toolCallId: string;
|
|
181
|
+
toolName: string;
|
|
182
|
+
result: any;
|
|
167
183
|
})[];
|
|
168
184
|
} | {
|
|
169
185
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -233,7 +249,6 @@ export declare function saveMessage(ctx: RunMutationCtx, component: AgentCompone
|
|
|
233
249
|
reasoningDetails?: ({
|
|
234
250
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
235
251
|
signature?: string | undefined;
|
|
236
|
-
state?: "streaming" | "done" | undefined;
|
|
237
252
|
type: "reasoning";
|
|
238
253
|
text: string;
|
|
239
254
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/client/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9E;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,cAAc,EACzB,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/client/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAG9E;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,cAAc,EACzB,EACE,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,QAAQ,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AE,MAAM,CAAA;KAAE,CAAC;IAChD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG,CACA;IACE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC;CACjC,GACD;IAIE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CACJ,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,cAAc,EACnB,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE,eAAe,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBF"}
|
package/dist/client/messages.js
CHANGED
|
@@ -13,17 +13,20 @@ import { parse } from "convex-helpers/validators";
|
|
|
13
13
|
* @param args.statuses What statuses to include. All by default.
|
|
14
14
|
* @returns The MessageDoc's in a format compatible with usePaginatedQuery.
|
|
15
15
|
*/
|
|
16
|
-
export async function listMessages(ctx, component,
|
|
17
|
-
if (
|
|
16
|
+
export async function listMessages(ctx, component, { threadId, paginationOpts, excludeToolMessages, statuses, }) {
|
|
17
|
+
if (paginationOpts.numItems === 0) {
|
|
18
18
|
return {
|
|
19
19
|
page: [],
|
|
20
20
|
isDone: true,
|
|
21
|
-
continueCursor:
|
|
21
|
+
continueCursor: paginationOpts.cursor ?? "",
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
return ctx.runQuery(component.messages.listMessagesByThreadId, {
|
|
25
25
|
order: "desc",
|
|
26
|
-
|
|
26
|
+
threadId,
|
|
27
|
+
paginationOpts,
|
|
28
|
+
excludeToolMessages,
|
|
29
|
+
statuses,
|
|
27
30
|
});
|
|
28
31
|
}
|
|
29
32
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/client/messages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,oBAAoB,GAMrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,GAAgB,EAChB,SAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/client/messages.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,oBAAoB,GAMrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,GAAgB,EAChB,SAAyB,EACzB,EACE,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,QAAQ,GAMT;IAED,IAAI,cAAc,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,IAAI;YACZ,cAAc,EAAE,cAAc,CAAC,MAAM,IAAI,EAAE;SAC5C,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE;QAC7D,KAAK,EAAE,MAAM;QACb,QAAQ;QACR,cAAc;QACd,mBAAmB;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AC,OAAO,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;QACrD,UAAU;KACX,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC;IACjC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC;AAC7C,CAAC"}
|
package/dist/client/search.d.ts
CHANGED
|
@@ -77,7 +77,6 @@ export declare function filterOutOrphanedToolMessages(docs: MessageDoc[]): {
|
|
|
77
77
|
} | {
|
|
78
78
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
79
79
|
signature?: string | undefined;
|
|
80
|
-
state?: "streaming" | "done" | undefined;
|
|
81
80
|
type: "reasoning";
|
|
82
81
|
text: string;
|
|
83
82
|
} | {
|
|
@@ -91,6 +90,23 @@ export declare function filterOutOrphanedToolMessages(docs: MessageDoc[]): {
|
|
|
91
90
|
toolCallId: string;
|
|
92
91
|
toolName: string;
|
|
93
92
|
args: any;
|
|
93
|
+
} | {
|
|
94
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
95
|
+
args?: any;
|
|
96
|
+
providerExecuted?: boolean | undefined;
|
|
97
|
+
isError?: boolean | undefined;
|
|
98
|
+
experimental_content?: ({
|
|
99
|
+
type: "text";
|
|
100
|
+
text: string;
|
|
101
|
+
} | {
|
|
102
|
+
mimeType?: string | undefined;
|
|
103
|
+
type: "image";
|
|
104
|
+
data: string;
|
|
105
|
+
})[] | undefined;
|
|
106
|
+
type: "tool-result";
|
|
107
|
+
toolCallId: string;
|
|
108
|
+
toolName: string;
|
|
109
|
+
result: any;
|
|
94
110
|
})[];
|
|
95
111
|
} | {
|
|
96
112
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -160,7 +176,6 @@ export declare function filterOutOrphanedToolMessages(docs: MessageDoc[]): {
|
|
|
160
176
|
reasoningDetails?: ({
|
|
161
177
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
162
178
|
signature?: string | undefined;
|
|
163
|
-
state?: "streaming" | "done" | undefined;
|
|
164
179
|
type: "reasoning";
|
|
165
180
|
text: string;
|
|
166
181
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/client/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,YAAY,EACZ,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAOtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIhD,MAAM,MAAM,YAAY,GAAG,CACzB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC;IACX,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,kBAAkB,EAAE,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;CACrD,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,WAAW,GAAG,YAAY,EAC/B,SAAS,EAAE,cAAc,EACzB,IAAI,EAAE;IACJ,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,CAAC,YAAY,GAAG,OAAO,CAAC,EAAE,CAAC;IACrC;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,GACA,OAAO,CAAC,UAAU,EAAE,CAAC,CAmGvB;AAED;;;;GAIG;AACH,wBAAgB,6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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyB/D;AAED,wBAAgB,YAAY,CAC1B,cAAc,EAAE,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,aAAa,GAC9D,MAAM,CAQR;AAED,wBAAgB,eAAe,CAC7B,cAAc,EAAE,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,aAAa,GAC9D,MAAM,CAKR"}
|
|
@@ -71,7 +71,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
71
71
|
} | {
|
|
72
72
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
73
73
|
signature?: string | undefined;
|
|
74
|
-
state?: "streaming" | "done" | undefined;
|
|
75
74
|
type: "reasoning";
|
|
76
75
|
text: string;
|
|
77
76
|
} | {
|
|
@@ -85,6 +84,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
85
84
|
toolCallId: string;
|
|
86
85
|
toolName: string;
|
|
87
86
|
args: any;
|
|
87
|
+
} | {
|
|
88
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
89
|
+
args?: any;
|
|
90
|
+
providerExecuted?: boolean | undefined;
|
|
91
|
+
isError?: boolean | undefined;
|
|
92
|
+
experimental_content?: ({
|
|
93
|
+
type: "text";
|
|
94
|
+
text: string;
|
|
95
|
+
} | {
|
|
96
|
+
mimeType?: string | undefined;
|
|
97
|
+
type: "image";
|
|
98
|
+
data: string;
|
|
99
|
+
})[] | undefined;
|
|
100
|
+
type: "tool-result";
|
|
101
|
+
toolCallId: string;
|
|
102
|
+
toolName: string;
|
|
103
|
+
result: any;
|
|
88
104
|
})[];
|
|
89
105
|
} | {
|
|
90
106
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -154,7 +170,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
154
170
|
reasoningDetails?: ({
|
|
155
171
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
156
172
|
signature?: string | undefined;
|
|
157
|
-
state?: "streaming" | "done" | undefined;
|
|
158
173
|
type: "reasoning";
|
|
159
174
|
text: string;
|
|
160
175
|
} | {
|
|
@@ -315,7 +330,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
315
330
|
} | {
|
|
316
331
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
317
332
|
signature?: string | undefined;
|
|
318
|
-
state?: "streaming" | "done" | undefined;
|
|
319
333
|
type: "reasoning";
|
|
320
334
|
text: string;
|
|
321
335
|
} | {
|
|
@@ -329,6 +343,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
329
343
|
toolCallId: string;
|
|
330
344
|
toolName: string;
|
|
331
345
|
args: any;
|
|
346
|
+
} | {
|
|
347
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
348
|
+
args?: any;
|
|
349
|
+
providerExecuted?: boolean | undefined;
|
|
350
|
+
isError?: boolean | undefined;
|
|
351
|
+
experimental_content?: ({
|
|
352
|
+
type: "text";
|
|
353
|
+
text: string;
|
|
354
|
+
} | {
|
|
355
|
+
mimeType?: string | undefined;
|
|
356
|
+
type: "image";
|
|
357
|
+
data: string;
|
|
358
|
+
})[] | undefined;
|
|
359
|
+
type: "tool-result";
|
|
360
|
+
toolCallId: string;
|
|
361
|
+
toolName: string;
|
|
362
|
+
result: any;
|
|
332
363
|
})[];
|
|
333
364
|
} | {
|
|
334
365
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -398,7 +429,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
398
429
|
reasoningDetails?: ({
|
|
399
430
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
400
431
|
signature?: string | undefined;
|
|
401
|
-
state?: "streaming" | "done" | undefined;
|
|
402
432
|
type: "reasoning";
|
|
403
433
|
text: string;
|
|
404
434
|
} | {
|
|
@@ -461,7 +491,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
461
491
|
} | {
|
|
462
492
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
463
493
|
signature?: string | undefined;
|
|
464
|
-
state?: "streaming" | "done" | undefined;
|
|
465
494
|
type: "reasoning";
|
|
466
495
|
text: string;
|
|
467
496
|
} | {
|
|
@@ -475,6 +504,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
475
504
|
toolCallId: string;
|
|
476
505
|
toolName: string;
|
|
477
506
|
args: any;
|
|
507
|
+
} | {
|
|
508
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
509
|
+
args?: any;
|
|
510
|
+
providerExecuted?: boolean | undefined;
|
|
511
|
+
isError?: boolean | undefined;
|
|
512
|
+
experimental_content?: ({
|
|
513
|
+
type: "text";
|
|
514
|
+
text: string;
|
|
515
|
+
} | {
|
|
516
|
+
mimeType?: string | undefined;
|
|
517
|
+
type: "image";
|
|
518
|
+
data: string;
|
|
519
|
+
})[] | undefined;
|
|
520
|
+
type: "tool-result";
|
|
521
|
+
toolCallId: string;
|
|
522
|
+
toolName: string;
|
|
523
|
+
result: any;
|
|
478
524
|
})[];
|
|
479
525
|
} | {
|
|
480
526
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -544,7 +590,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
544
590
|
reasoningDetails?: ({
|
|
545
591
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
546
592
|
signature?: string | undefined;
|
|
547
|
-
state?: "streaming" | "done" | undefined;
|
|
548
593
|
type: "reasoning";
|
|
549
594
|
text: string;
|
|
550
595
|
} | {
|
|
@@ -610,7 +655,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
610
655
|
} | {
|
|
611
656
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
612
657
|
signature?: string | undefined;
|
|
613
|
-
state?: "streaming" | "done" | undefined;
|
|
614
658
|
type: "reasoning";
|
|
615
659
|
text: string;
|
|
616
660
|
} | {
|
|
@@ -624,6 +668,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
624
668
|
toolCallId: string;
|
|
625
669
|
toolName: string;
|
|
626
670
|
args: any;
|
|
671
|
+
} | {
|
|
672
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
673
|
+
args?: any;
|
|
674
|
+
providerExecuted?: boolean | undefined;
|
|
675
|
+
isError?: boolean | undefined;
|
|
676
|
+
experimental_content?: ({
|
|
677
|
+
type: "text";
|
|
678
|
+
text: string;
|
|
679
|
+
} | {
|
|
680
|
+
mimeType?: string | undefined;
|
|
681
|
+
type: "image";
|
|
682
|
+
data: string;
|
|
683
|
+
})[] | undefined;
|
|
684
|
+
type: "tool-result";
|
|
685
|
+
toolCallId: string;
|
|
686
|
+
toolName: string;
|
|
687
|
+
result: any;
|
|
627
688
|
})[];
|
|
628
689
|
} | {
|
|
629
690
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -764,7 +825,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
764
825
|
} | {
|
|
765
826
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
766
827
|
signature?: string | undefined;
|
|
767
|
-
state?: "streaming" | "done" | undefined;
|
|
768
828
|
type: "reasoning";
|
|
769
829
|
text: string;
|
|
770
830
|
} | {
|
|
@@ -778,6 +838,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
778
838
|
toolCallId: string;
|
|
779
839
|
toolName: string;
|
|
780
840
|
args: any;
|
|
841
|
+
} | {
|
|
842
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
843
|
+
args?: any;
|
|
844
|
+
providerExecuted?: boolean | undefined;
|
|
845
|
+
isError?: boolean | undefined;
|
|
846
|
+
experimental_content?: ({
|
|
847
|
+
type: "text";
|
|
848
|
+
text: string;
|
|
849
|
+
} | {
|
|
850
|
+
mimeType?: string | undefined;
|
|
851
|
+
type: "image";
|
|
852
|
+
data: string;
|
|
853
|
+
})[] | undefined;
|
|
854
|
+
type: "tool-result";
|
|
855
|
+
toolCallId: string;
|
|
856
|
+
toolName: string;
|
|
857
|
+
result: any;
|
|
781
858
|
})[];
|
|
782
859
|
}, {
|
|
783
860
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -794,7 +871,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
794
871
|
} | {
|
|
795
872
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
796
873
|
signature?: string | undefined;
|
|
797
|
-
state?: "streaming" | "done" | undefined;
|
|
798
874
|
type: "reasoning";
|
|
799
875
|
text: string;
|
|
800
876
|
} | {
|
|
@@ -808,6 +884,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
808
884
|
toolCallId: string;
|
|
809
885
|
toolName: string;
|
|
810
886
|
args: any;
|
|
887
|
+
} | {
|
|
888
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
889
|
+
args?: any;
|
|
890
|
+
providerExecuted?: boolean | undefined;
|
|
891
|
+
isError?: boolean | undefined;
|
|
892
|
+
experimental_content?: ({
|
|
893
|
+
type: "text";
|
|
894
|
+
text: string;
|
|
895
|
+
} | {
|
|
896
|
+
mimeType?: string | undefined;
|
|
897
|
+
type: "image";
|
|
898
|
+
data: string;
|
|
899
|
+
})[] | undefined;
|
|
900
|
+
type: "tool-result";
|
|
901
|
+
toolCallId: string;
|
|
902
|
+
toolName: string;
|
|
903
|
+
result: any;
|
|
811
904
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
812
905
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
813
906
|
type: "text";
|
|
@@ -821,7 +914,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
821
914
|
} | {
|
|
822
915
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
823
916
|
signature?: string | undefined;
|
|
824
|
-
state?: "streaming" | "done" | undefined;
|
|
825
917
|
type: "reasoning";
|
|
826
918
|
text: string;
|
|
827
919
|
} | {
|
|
@@ -835,6 +927,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
835
927
|
toolCallId: string;
|
|
836
928
|
toolName: string;
|
|
837
929
|
args: any;
|
|
930
|
+
} | {
|
|
931
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
932
|
+
args?: any;
|
|
933
|
+
providerExecuted?: boolean | undefined;
|
|
934
|
+
isError?: boolean | undefined;
|
|
935
|
+
experimental_content?: ({
|
|
936
|
+
type: "text";
|
|
937
|
+
text: string;
|
|
938
|
+
} | {
|
|
939
|
+
mimeType?: string | undefined;
|
|
940
|
+
type: "image";
|
|
941
|
+
data: string;
|
|
942
|
+
})[] | undefined;
|
|
943
|
+
type: "tool-result";
|
|
944
|
+
toolCallId: string;
|
|
945
|
+
toolName: string;
|
|
946
|
+
result: any;
|
|
838
947
|
})[], import("convex/values").VUnion<{
|
|
839
948
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
840
949
|
type: "text";
|
|
@@ -848,7 +957,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
848
957
|
} | {
|
|
849
958
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
850
959
|
signature?: string | undefined;
|
|
851
|
-
state?: "streaming" | "done" | undefined;
|
|
852
960
|
type: "reasoning";
|
|
853
961
|
text: string;
|
|
854
962
|
} | {
|
|
@@ -862,6 +970,23 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
862
970
|
toolCallId: string;
|
|
863
971
|
toolName: string;
|
|
864
972
|
args: any;
|
|
973
|
+
} | {
|
|
974
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
975
|
+
args?: any;
|
|
976
|
+
providerExecuted?: boolean | undefined;
|
|
977
|
+
isError?: boolean | undefined;
|
|
978
|
+
experimental_content?: ({
|
|
979
|
+
type: "text";
|
|
980
|
+
text: string;
|
|
981
|
+
} | {
|
|
982
|
+
mimeType?: string | undefined;
|
|
983
|
+
type: "image";
|
|
984
|
+
data: string;
|
|
985
|
+
})[] | undefined;
|
|
986
|
+
type: "tool-result";
|
|
987
|
+
toolCallId: string;
|
|
988
|
+
toolName: string;
|
|
989
|
+
result: any;
|
|
865
990
|
}, [import("convex/values").VObject<{
|
|
866
991
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
867
992
|
type: "text";
|
|
@@ -885,7 +1010,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
885
1010
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
886
1011
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
887
1012
|
signature?: string | undefined;
|
|
888
|
-
state?: "streaming" | "done" | undefined;
|
|
889
1013
|
type: "reasoning";
|
|
890
1014
|
text: string;
|
|
891
1015
|
}, {
|
|
@@ -893,8 +1017,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
893
1017
|
text: import("convex/values").VString<string, "required">;
|
|
894
1018
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
895
1019
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
896
|
-
|
|
897
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
1020
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
898
1021
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
899
1022
|
type: "redacted-reasoning";
|
|
900
1023
|
data: string;
|
|
@@ -914,9 +1037,64 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
914
1037
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
915
1038
|
toolName: import("convex/values").VString<string, "required">;
|
|
916
1039
|
args: import("convex/values").VAny<any, "required", string>;
|
|
1040
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1041
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1042
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
1043
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1044
|
+
args?: any;
|
|
1045
|
+
providerExecuted?: boolean | undefined;
|
|
1046
|
+
isError?: boolean | undefined;
|
|
1047
|
+
experimental_content?: ({
|
|
1048
|
+
type: "text";
|
|
1049
|
+
text: string;
|
|
1050
|
+
} | {
|
|
1051
|
+
mimeType?: string | undefined;
|
|
1052
|
+
type: "image";
|
|
1053
|
+
data: string;
|
|
1054
|
+
})[] | undefined;
|
|
1055
|
+
type: "tool-result";
|
|
1056
|
+
toolCallId: string;
|
|
1057
|
+
toolName: string;
|
|
1058
|
+
result: any;
|
|
1059
|
+
}, {
|
|
1060
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
1061
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
1062
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
1063
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
917
1064
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
918
1065
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
919
|
-
|
|
1066
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1067
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
1068
|
+
experimental_content: import("convex/values").VArray<({
|
|
1069
|
+
type: "text";
|
|
1070
|
+
text: string;
|
|
1071
|
+
} | {
|
|
1072
|
+
mimeType?: string | undefined;
|
|
1073
|
+
type: "image";
|
|
1074
|
+
data: string;
|
|
1075
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
1076
|
+
type: "text";
|
|
1077
|
+
text: string;
|
|
1078
|
+
} | {
|
|
1079
|
+
mimeType?: string | undefined;
|
|
1080
|
+
type: "image";
|
|
1081
|
+
data: string;
|
|
1082
|
+
}, [import("convex/values").VObject<{
|
|
1083
|
+
type: "text";
|
|
1084
|
+
text: string;
|
|
1085
|
+
}, {
|
|
1086
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
1087
|
+
text: import("convex/values").VString<string, "required">;
|
|
1088
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
1089
|
+
mimeType?: string | undefined;
|
|
1090
|
+
type: "image";
|
|
1091
|
+
data: string;
|
|
1092
|
+
}, {
|
|
1093
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
1094
|
+
data: import("convex/values").VString<string, "required">;
|
|
1095
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1096
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1097
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">], "required", never>;
|
|
920
1098
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
921
1099
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
922
1100
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1151,7 +1329,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1151
1329
|
reasoningDetails: import("convex/values").VArray<({
|
|
1152
1330
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1153
1331
|
signature?: string | undefined;
|
|
1154
|
-
state?: "streaming" | "done" | undefined;
|
|
1155
1332
|
type: "reasoning";
|
|
1156
1333
|
text: string;
|
|
1157
1334
|
} | {
|
|
@@ -1164,7 +1341,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1164
1341
|
})[] | undefined, import("convex/values").VUnion<{
|
|
1165
1342
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1166
1343
|
signature?: string | undefined;
|
|
1167
|
-
state?: "streaming" | "done" | undefined;
|
|
1168
1344
|
type: "reasoning";
|
|
1169
1345
|
text: string;
|
|
1170
1346
|
} | {
|
|
@@ -1177,7 +1353,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1177
1353
|
}, [import("convex/values").VObject<{
|
|
1178
1354
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1179
1355
|
signature?: string | undefined;
|
|
1180
|
-
state?: "streaming" | "done" | undefined;
|
|
1181
1356
|
type: "reasoning";
|
|
1182
1357
|
text: string;
|
|
1183
1358
|
}, {
|
|
@@ -1185,8 +1360,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1185
1360
|
text: import("convex/values").VString<string, "required">;
|
|
1186
1361
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1187
1362
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1188
|
-
|
|
1189
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
1363
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
1190
1364
|
signature?: string | undefined;
|
|
1191
1365
|
type: "text";
|
|
1192
1366
|
text: string;
|
|
@@ -1200,7 +1374,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1200
1374
|
}, {
|
|
1201
1375
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
1202
1376
|
data: import("convex/values").VString<string, "required">;
|
|
1203
|
-
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature"
|
|
1377
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature">, "optional">;
|
|
1204
1378
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
1205
1379
|
_id: import("convex/values").VString<string, "required">;
|
|
1206
1380
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../src/client/streaming.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,OAAO,EACb,MAAM,IAAI,CAAC;AACZ,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,UAAU,EAEf,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,WAAW,EACX,sBAAsB,EACvB,MAAM,YAAY,CA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