@convex-dev/agent 0.1.18-alpha.1 → 0.5.0-alpha.1
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/createTool.d.ts +30 -9
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +24 -9
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +174 -199
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/definePlaygroundAPI.js +12 -19
- package/dist/client/definePlaygroundAPI.js.map +1 -1
- package/dist/client/files.js +4 -4
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +166 -63
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +75 -45
- package/dist/client/index.js.map +1 -1
- package/dist/client/search.d.ts +27 -6
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +3 -2
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/types.d.ts +27 -41
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +436 -73
- package/dist/component/messages.d.ts +246 -43
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +2 -2
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +1453 -152
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +2 -2
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.d.ts +180 -6
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/mapping.d.ts +12 -14
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +187 -47
- package/dist/mapping.js.map +1 -1
- package/dist/react/deltas.d.ts +0 -3
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +140 -44
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +1 -1
- package/dist/react/optimisticallySendMessage.js +2 -1
- package/dist/react/optimisticallySendMessage.js.map +1 -1
- package/dist/react/toUIMessages.d.ts +5 -4
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +103 -40
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/validators.d.ts +1798 -259
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +79 -15
- package/dist/validators.js.map +1 -1
- package/package.json +2 -2
- package/src/client/createTool.ts +68 -37
- package/src/client/definePlaygroundAPI.ts +24 -25
- package/src/client/files.ts +4 -4
- package/src/client/index.test.ts +14 -12
- package/src/client/index.ts +134 -94
- package/src/client/search.ts +3 -2
- package/src/client/streaming.ts +4 -3
- package/src/client/types.ts +34 -70
- package/src/component/_generated/api.d.ts +436 -73
- package/src/component/messages.ts +2 -2
- package/src/component/schema.ts +2 -2
- package/src/mapping.ts +228 -75
- package/src/react/deltas.ts +165 -52
- package/src/react/optimisticallySendMessage.ts +4 -1
- package/src/react/toUIMessages.test.ts +154 -36
- package/src/react/toUIMessages.ts +136 -57
- package/src/validators.test.ts +2 -99
- package/src/validators.ts +95 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAK,MAAM,eAAe,CAAC;AAkB9C,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAK,MAAM,eAAe,CAAC;AAkB9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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1,6 +1,6 @@
|
|
|
1
1
|
import { defineSchema, defineTable } from "convex/server";
|
|
2
2
|
import { v } from "convex/values";
|
|
3
|
-
import { vThreadStatus, vMessage, vMessageStatus, vUsage, vSource,
|
|
3
|
+
import { vThreadStatus, vMessage, vMessageStatus, vUsage, vSource, vLanguageModelCallWarning, vFinishReason, vProviderOptions, vProviderMetadata, vReasoningDetails, vTextStreamPart, } from "../validators.js";
|
|
4
4
|
import { typedV } from "convex-helpers/validators";
|
|
5
5
|
import vectorTables, { vVectorId } from "./vector/tables.js";
|
|
6
6
|
import { omit } from "convex-helpers";
|
|
@@ -46,7 +46,7 @@ export const schema = defineSchema({
|
|
|
46
46
|
sources: v.optional(v.array(vSource)),
|
|
47
47
|
reasoning: v.optional(v.string()),
|
|
48
48
|
reasoningDetails: v.optional(vReasoningDetails),
|
|
49
|
-
warnings: v.optional(v.array(
|
|
49
|
+
warnings: v.optional(v.array(vLanguageModelCallWarning)),
|
|
50
50
|
finishReason: v.optional(vFinishReason),
|
|
51
51
|
// DEPRECATED
|
|
52
52
|
parentMessageId: v.optional(v.id("messages")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAc,CAAC,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,QAAQ,EACR,cAAc,EACd,MAAM,EACN,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAc,CAAC,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACL,aAAa,EACb,QAAQ,EACR,cAAc,EACd,MAAM,EACN,OAAO,EACP,yBAAyB,EAC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isteredMutation<"publi
|
|
|
6
6
|
end: number;
|
|
7
7
|
parts: ({
|
|
8
8
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
9
|
+
providerExecuted?: boolean | undefined;
|
|
9
10
|
type: "tool-call";
|
|
10
11
|
toolCallId: string;
|
|
11
12
|
toolName: string;
|
|
@@ -13,6 +14,8 @@ export declare const addDelta: import("convex/server").RegisteredMutation<"publi
|
|
|
13
14
|
} | {
|
|
14
15
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
15
16
|
args?: any;
|
|
17
|
+
providerExecuted?: boolean | undefined;
|
|
18
|
+
isError?: boolean | undefined;
|
|
16
19
|
experimental_content?: ({
|
|
17
20
|
type: "text";
|
|
18
21
|
text: string;
|
|
@@ -21,11 +24,25 @@ export declare const addDelta: import("convex/server").RegisteredMutation<"publi
|
|
|
21
24
|
type: "image";
|
|
22
25
|
data: string;
|
|
23
26
|
})[] | undefined;
|
|
24
|
-
isError?: boolean | undefined;
|
|
25
27
|
type: "tool-result";
|
|
26
28
|
toolCallId: string;
|
|
27
29
|
toolName: string;
|
|
28
30
|
result: any;
|
|
31
|
+
} | {
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
type?: "source" | undefined;
|
|
34
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
35
|
+
url?: string | undefined;
|
|
36
|
+
id: string;
|
|
37
|
+
sourceType: "url";
|
|
38
|
+
} | {
|
|
39
|
+
filename?: string | undefined;
|
|
40
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
41
|
+
id: string;
|
|
42
|
+
title: string;
|
|
43
|
+
type: "source";
|
|
44
|
+
sourceType: "document";
|
|
45
|
+
mediaType: string;
|
|
29
46
|
} | {
|
|
30
47
|
type: "text-delta";
|
|
31
48
|
textDelta: string;
|
|
@@ -37,9 +54,9 @@ export declare const addDelta: import("convex/server").RegisteredMutation<"publi
|
|
|
37
54
|
source: {
|
|
38
55
|
title?: string | undefined;
|
|
39
56
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
57
|
+
url?: string | undefined;
|
|
40
58
|
id: string;
|
|
41
59
|
sourceType: "url";
|
|
42
|
-
url: string;
|
|
43
60
|
};
|
|
44
61
|
} | {
|
|
45
62
|
type: "tool-call-streaming-start";
|
|
@@ -50,6 +67,47 @@ export declare const addDelta: import("convex/server").RegisteredMutation<"publi
|
|
|
50
67
|
toolCallId: string;
|
|
51
68
|
toolName: string;
|
|
52
69
|
argsTextDelta: string;
|
|
70
|
+
} | {
|
|
71
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
72
|
+
id: string;
|
|
73
|
+
type: "text-delta";
|
|
74
|
+
text: string;
|
|
75
|
+
} | {
|
|
76
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
77
|
+
id: string;
|
|
78
|
+
type: "reasoning-delta";
|
|
79
|
+
text: string;
|
|
80
|
+
} | {
|
|
81
|
+
providerExecuted?: boolean | undefined;
|
|
82
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
83
|
+
dynamic?: boolean | undefined;
|
|
84
|
+
type: "tool-call";
|
|
85
|
+
toolCallId: string;
|
|
86
|
+
toolName: string;
|
|
87
|
+
input: any;
|
|
88
|
+
} | {
|
|
89
|
+
providerExecuted?: boolean | undefined;
|
|
90
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
91
|
+
dynamic?: boolean | undefined;
|
|
92
|
+
id: string;
|
|
93
|
+
type: "tool-input-start";
|
|
94
|
+
toolName: string;
|
|
95
|
+
} | {
|
|
96
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
97
|
+
id: string;
|
|
98
|
+
type: "tool-input-delta";
|
|
99
|
+
delta: string;
|
|
100
|
+
} | {
|
|
101
|
+
providerExecuted?: boolean | undefined;
|
|
102
|
+
input?: any;
|
|
103
|
+
dynamic?: boolean | undefined;
|
|
104
|
+
output?: any;
|
|
105
|
+
type: "tool-result";
|
|
106
|
+
toolCallId: string;
|
|
107
|
+
toolName: string;
|
|
108
|
+
} | {
|
|
109
|
+
type: "raw";
|
|
110
|
+
rawValue: any;
|
|
53
111
|
})[];
|
|
54
112
|
}, Promise<boolean>>;
|
|
55
113
|
export declare const listDeltas: import("convex/server").RegisteredQuery<"public", {
|
|
@@ -64,6 +122,7 @@ export declare const listDeltas: import("convex/server").RegisteredQuery<"public
|
|
|
64
122
|
end: number;
|
|
65
123
|
parts: ({
|
|
66
124
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
125
|
+
providerExecuted?: boolean | undefined;
|
|
67
126
|
type: "tool-call";
|
|
68
127
|
toolCallId: string;
|
|
69
128
|
toolName: string;
|
|
@@ -71,6 +130,8 @@ export declare const listDeltas: import("convex/server").RegisteredQuery<"public
|
|
|
71
130
|
} | {
|
|
72
131
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
73
132
|
args?: any;
|
|
133
|
+
providerExecuted?: boolean | undefined;
|
|
134
|
+
isError?: boolean | undefined;
|
|
74
135
|
experimental_content?: ({
|
|
75
136
|
type: "text";
|
|
76
137
|
text: string;
|
|
@@ -79,11 +140,25 @@ export declare const listDeltas: import("convex/server").RegisteredQuery<"public
|
|
|
79
140
|
type: "image";
|
|
80
141
|
data: string;
|
|
81
142
|
})[] | undefined;
|
|
82
|
-
isError?: boolean | undefined;
|
|
83
143
|
type: "tool-result";
|
|
84
144
|
toolCallId: string;
|
|
85
145
|
toolName: string;
|
|
86
146
|
result: any;
|
|
147
|
+
} | {
|
|
148
|
+
title?: string | undefined;
|
|
149
|
+
type?: "source" | undefined;
|
|
150
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
151
|
+
url?: string | undefined;
|
|
152
|
+
id: string;
|
|
153
|
+
sourceType: "url";
|
|
154
|
+
} | {
|
|
155
|
+
filename?: string | undefined;
|
|
156
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
157
|
+
id: string;
|
|
158
|
+
title: string;
|
|
159
|
+
type: "source";
|
|
160
|
+
sourceType: "document";
|
|
161
|
+
mediaType: string;
|
|
87
162
|
} | {
|
|
88
163
|
type: "text-delta";
|
|
89
164
|
textDelta: string;
|
|
@@ -95,9 +170,9 @@ export declare const listDeltas: import("convex/server").RegisteredQuery<"public
|
|
|
95
170
|
source: {
|
|
96
171
|
title?: string | undefined;
|
|
97
172
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
173
|
+
url?: string | undefined;
|
|
98
174
|
id: string;
|
|
99
175
|
sourceType: "url";
|
|
100
|
-
url: string;
|
|
101
176
|
};
|
|
102
177
|
} | {
|
|
103
178
|
type: "tool-call-streaming-start";
|
|
@@ -108,6 +183,47 @@ export declare const listDeltas: import("convex/server").RegisteredQuery<"public
|
|
|
108
183
|
toolCallId: string;
|
|
109
184
|
toolName: string;
|
|
110
185
|
argsTextDelta: string;
|
|
186
|
+
} | {
|
|
187
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
188
|
+
id: string;
|
|
189
|
+
type: "text-delta";
|
|
190
|
+
text: string;
|
|
191
|
+
} | {
|
|
192
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
193
|
+
id: string;
|
|
194
|
+
type: "reasoning-delta";
|
|
195
|
+
text: string;
|
|
196
|
+
} | {
|
|
197
|
+
providerExecuted?: boolean | undefined;
|
|
198
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
199
|
+
dynamic?: boolean | undefined;
|
|
200
|
+
type: "tool-call";
|
|
201
|
+
toolCallId: string;
|
|
202
|
+
toolName: string;
|
|
203
|
+
input: any;
|
|
204
|
+
} | {
|
|
205
|
+
providerExecuted?: boolean | undefined;
|
|
206
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
207
|
+
dynamic?: boolean | undefined;
|
|
208
|
+
id: string;
|
|
209
|
+
type: "tool-input-start";
|
|
210
|
+
toolName: string;
|
|
211
|
+
} | {
|
|
212
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
213
|
+
id: string;
|
|
214
|
+
type: "tool-input-delta";
|
|
215
|
+
delta: string;
|
|
216
|
+
} | {
|
|
217
|
+
providerExecuted?: boolean | undefined;
|
|
218
|
+
input?: any;
|
|
219
|
+
dynamic?: boolean | undefined;
|
|
220
|
+
output?: any;
|
|
221
|
+
type: "tool-result";
|
|
222
|
+
toolCallId: string;
|
|
223
|
+
toolName: string;
|
|
224
|
+
} | {
|
|
225
|
+
type: "raw";
|
|
226
|
+
rawValue: any;
|
|
111
227
|
})[];
|
|
112
228
|
}[]>>;
|
|
113
229
|
export declare const create: import("convex/server").RegisteredMutation<"public", {
|
|
@@ -151,6 +267,7 @@ export declare const finish: import("convex/server").RegisteredMutation<"public"
|
|
|
151
267
|
end: number;
|
|
152
268
|
parts: ({
|
|
153
269
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
270
|
+
providerExecuted?: boolean | undefined;
|
|
154
271
|
type: "tool-call";
|
|
155
272
|
toolCallId: string;
|
|
156
273
|
toolName: string;
|
|
@@ -158,6 +275,8 @@ export declare const finish: import("convex/server").RegisteredMutation<"public"
|
|
|
158
275
|
} | {
|
|
159
276
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
160
277
|
args?: any;
|
|
278
|
+
providerExecuted?: boolean | undefined;
|
|
279
|
+
isError?: boolean | undefined;
|
|
161
280
|
experimental_content?: ({
|
|
162
281
|
type: "text";
|
|
163
282
|
text: string;
|
|
@@ -166,11 +285,25 @@ export declare const finish: import("convex/server").RegisteredMutation<"public"
|
|
|
166
285
|
type: "image";
|
|
167
286
|
data: string;
|
|
168
287
|
})[] | undefined;
|
|
169
|
-
isError?: boolean | undefined;
|
|
170
288
|
type: "tool-result";
|
|
171
289
|
toolCallId: string;
|
|
172
290
|
toolName: string;
|
|
173
291
|
result: any;
|
|
292
|
+
} | {
|
|
293
|
+
title?: string | undefined;
|
|
294
|
+
type?: "source" | undefined;
|
|
295
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
296
|
+
url?: string | undefined;
|
|
297
|
+
id: string;
|
|
298
|
+
sourceType: "url";
|
|
299
|
+
} | {
|
|
300
|
+
filename?: string | undefined;
|
|
301
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
302
|
+
id: string;
|
|
303
|
+
title: string;
|
|
304
|
+
type: "source";
|
|
305
|
+
sourceType: "document";
|
|
306
|
+
mediaType: string;
|
|
174
307
|
} | {
|
|
175
308
|
type: "text-delta";
|
|
176
309
|
textDelta: string;
|
|
@@ -182,9 +315,9 @@ export declare const finish: import("convex/server").RegisteredMutation<"public"
|
|
|
182
315
|
source: {
|
|
183
316
|
title?: string | undefined;
|
|
184
317
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
318
|
+
url?: string | undefined;
|
|
185
319
|
id: string;
|
|
186
320
|
sourceType: "url";
|
|
187
|
-
url: string;
|
|
188
321
|
};
|
|
189
322
|
} | {
|
|
190
323
|
type: "tool-call-streaming-start";
|
|
@@ -195,6 +328,47 @@ export declare const finish: import("convex/server").RegisteredMutation<"public"
|
|
|
195
328
|
toolCallId: string;
|
|
196
329
|
toolName: string;
|
|
197
330
|
argsTextDelta: string;
|
|
331
|
+
} | {
|
|
332
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
333
|
+
id: string;
|
|
334
|
+
type: "text-delta";
|
|
335
|
+
text: string;
|
|
336
|
+
} | {
|
|
337
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
338
|
+
id: string;
|
|
339
|
+
type: "reasoning-delta";
|
|
340
|
+
text: string;
|
|
341
|
+
} | {
|
|
342
|
+
providerExecuted?: boolean | undefined;
|
|
343
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
344
|
+
dynamic?: boolean | undefined;
|
|
345
|
+
type: "tool-call";
|
|
346
|
+
toolCallId: string;
|
|
347
|
+
toolName: string;
|
|
348
|
+
input: any;
|
|
349
|
+
} | {
|
|
350
|
+
providerExecuted?: boolean | undefined;
|
|
351
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
352
|
+
dynamic?: boolean | undefined;
|
|
353
|
+
id: string;
|
|
354
|
+
type: "tool-input-start";
|
|
355
|
+
toolName: string;
|
|
356
|
+
} | {
|
|
357
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
358
|
+
id: string;
|
|
359
|
+
type: "tool-input-delta";
|
|
360
|
+
delta: string;
|
|
361
|
+
} | {
|
|
362
|
+
providerExecuted?: boolean | undefined;
|
|
363
|
+
input?: any;
|
|
364
|
+
dynamic?: boolean | undefined;
|
|
365
|
+
output?: any;
|
|
366
|
+
type: "tool-result";
|
|
367
|
+
toolCallId: string;
|
|
368
|
+
toolName: string;
|
|
369
|
+
} | {
|
|
370
|
+
type: "raw";
|
|
371
|
+
rawValue: any;
|
|
198
372
|
})[];
|
|
199
373
|
} | undefined;
|
|
200
374
|
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.d.ts","sourceRoot":"","sources":["../../src/component/streams.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAO,EAAE,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAGL,KAAK,WAAW,EAGjB,MAAM,wBAAwB,CAAC;AAgBhC,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"streams.d.ts","sourceRoot":"","sources":["../../src/component/streams.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAO,EAAE,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAGL,KAAK,WAAW,EAGjB,MAAM,wBAAwB,CAAC;AAgBhC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAanB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCrB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;mEAoBjB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;KA8Cf,CAAC;AAEH,eAAO,MAAM,YAAY;;;;oBAyBvB,CAAC;AAEH,eAAO,MAAM,KAAK;cAWE,EAAE,CAAC,mBAAmB,CAAC;YAAU,MAAM;oBAJzD,CAAC;AAmCH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8BjB,CAAC;AA4CH,eAAO,MAAM,aAAa;;iBAgBxB,CAAC;AA2BH,wBAAsB,4BAA4B,CAChD,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE;IAAE,QAAQ,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;GAyC9E;AAED,eAAO,MAAM,oCAAoC;cA3C7B,EAAE,CAAC,SAAS,CAAC;kBAAgB,MAAM;kBAAgB,MAAM;;;;;;;;;GAuD3E,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;GA4B3C,CAAC;AAEH,eAAO,MAAM,gBAAgB;;iBAY3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAY5B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAmB1C,CAAC"}
|
package/dist/mapping.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
import type { MessageWithMetadata } from "./validators.js";
|
|
1
|
+
import { type UIMessage as AIMessage, type AssistantContent, type ModelMessage, type DataContent, type FilePart, type GenerateObjectResult, type ImagePart, type StepResult, type ToolContent, type ToolSet, type UserContent, type FileUIPart, type LanguageModelUsage, type CallWarning } from "ai";
|
|
2
|
+
import type { Message, MessageWithMetadata, Usage } from "./validators.js";
|
|
4
3
|
import type { ActionCtx, AgentComponent } from "./client/types.js";
|
|
5
4
|
import type { RunMutationCtx } from "./client/types.js";
|
|
6
5
|
export type AIMessageWithoutId = Omit<AIMessage, "id">;
|
|
@@ -8,15 +7,19 @@ export type SerializeUrlsAndUint8Arrays<T> = T extends URL ? string : T extends
|
|
|
8
7
|
[K in keyof T]: SerializeUrlsAndUint8Arrays<T[K]>;
|
|
9
8
|
} : T;
|
|
10
9
|
export type Content = UserContent | AssistantContent | ToolContent;
|
|
11
|
-
export type SerializedContent =
|
|
12
|
-
export type SerializedMessage =
|
|
13
|
-
export declare function serializeMessage(ctx: ActionCtx | RunMutationCtx, component: AgentComponent, messageWithId:
|
|
10
|
+
export type SerializedContent = Message["content"];
|
|
11
|
+
export type SerializedMessage = Message;
|
|
12
|
+
export declare function serializeMessage(ctx: ActionCtx | RunMutationCtx, component: AgentComponent, messageWithId: (ModelMessage & {
|
|
14
13
|
id?: string;
|
|
15
|
-
}): Promise<{
|
|
14
|
+
}) | Message): Promise<{
|
|
16
15
|
message: SerializedMessage;
|
|
17
16
|
fileIds?: string[];
|
|
18
17
|
}>;
|
|
19
|
-
export declare function deserializeMessage(message: SerializedMessage):
|
|
18
|
+
export declare function deserializeMessage(message: SerializedMessage): ModelMessage;
|
|
19
|
+
export declare function serializeUsage(usage: LanguageModelUsage): Usage;
|
|
20
|
+
export declare function deserializeUsage(usage: Usage): LanguageModelUsage;
|
|
21
|
+
export declare function serializeWarnings(warnings: CallWarning[] | undefined): MessageWithMetadata["warnings"];
|
|
22
|
+
export declare function deserializeWarnings(warnings: MessageWithMetadata["warnings"]): CallWarning[] | undefined;
|
|
20
23
|
export declare function serializeNewMessagesInStep<TOOLS extends ToolSet>(ctx: ActionCtx, component: AgentComponent, step: StepResult<TOOLS>, metadata: {
|
|
21
24
|
model: string;
|
|
22
25
|
provider: string;
|
|
@@ -27,7 +30,7 @@ export declare function serializeObjectResult(ctx: ActionCtx, component: AgentCo
|
|
|
27
30
|
}): Promise<{
|
|
28
31
|
messages: MessageWithMetadata[];
|
|
29
32
|
}>;
|
|
30
|
-
export declare function serializeContent(ctx: ActionCtx | RunMutationCtx, component: AgentComponent, content: Content): Promise<{
|
|
33
|
+
export declare function serializeContent(ctx: ActionCtx | RunMutationCtx, component: AgentComponent, content: Content | Message["content"]): Promise<{
|
|
31
34
|
content: SerializedContent;
|
|
32
35
|
fileIds?: string[];
|
|
33
36
|
}>;
|
|
@@ -48,9 +51,4 @@ export declare function guessMimeType(buf: ArrayBuffer | string): string;
|
|
|
48
51
|
export declare function serializeDataOrUrl(dataOrUrl: DataContent | URL): ArrayBuffer | string;
|
|
49
52
|
export declare function deserializeUrl(urlOrString: string | ArrayBuffer): URL | DataContent;
|
|
50
53
|
export declare function toUIFilePart(part: ImagePart | FilePart): FileUIPart;
|
|
51
|
-
export declare function promptOrMessagesToCoreMessages(args: {
|
|
52
|
-
prompt?: string;
|
|
53
|
-
messages?: CoreMessage[] | AIMessageWithoutId[];
|
|
54
|
-
promptMessageId?: string;
|
|
55
|
-
}): CoreMessage[];
|
|
56
54
|
//# sourceMappingURL=mapping.d.ts.map
|
package/dist/mapping.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../src/mapping.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mapping.d.ts","sourceRoot":"","sources":["../src/mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,oBAAoB,EACzB,KAAK,SAAS,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