@o-zakstam/voltagent-convex 1.1.1 → 1.1.3
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/defineVoltAgentAPI.d.ts +191 -0
- package/dist/client/defineVoltAgentAPI.d.ts.map +1 -0
- package/dist/client/defineVoltAgentAPI.js +318 -0
- package/dist/client/defineVoltAgentAPI.js.map +1 -0
- package/dist/client/index.d.ts +6 -563
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +8 -285
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.d.ts +13 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +8 -0
- package/dist/client/types.js.map +1 -0
- package/dist/component/_generated/api.d.ts +44 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +352 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/conversations.d.ts +108 -0
- package/dist/component/conversations.d.ts.map +1 -0
- package/dist/component/conversations.js +278 -0
- package/dist/component/conversations.js.map +1 -0
- package/dist/component/convex.config.d.ts +13 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +21 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/messages.d.ts +235 -0
- package/dist/component/messages.d.ts.map +1 -0
- package/dist/component/messages.js +186 -0
- package/dist/component/messages.js.map +1 -0
- package/dist/component/schema.d.ts +535 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +113 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/steps.d.ts +65 -0
- package/dist/component/steps.d.ts.map +1 -0
- package/dist/component/steps.js +120 -0
- package/dist/component/steps.js.map +1 -0
- package/dist/component/validators.d.ts +633 -0
- package/dist/component/validators.d.ts.map +1 -0
- package/dist/component/validators.js +124 -0
- package/dist/component/validators.js.map +1 -0
- package/dist/component/workflows.d.ts +234 -0
- package/dist/component/workflows.d.ts.map +1 -0
- package/dist/component/workflows.js +229 -0
- package/dist/component/workflows.js.map +1 -0
- package/dist/component/workingMemory.d.ts +30 -0
- package/dist/component/workingMemory.d.ts.map +1 -0
- package/dist/component/workingMemory.js +131 -0
- package/dist/component/workingMemory.js.map +1 -0
- package/dist/index.d.ts +7 -318
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -434
- package/dist/index.js.map +1 -1
- package/dist/memory-adapter.d.ts +153 -0
- package/dist/memory-adapter.d.ts.map +1 -0
- package/dist/memory-adapter.js +462 -0
- package/dist/memory-adapter.js.map +1 -0
- package/dist/types.d.ts +167 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +25 -26
- package/src/client/defineVoltAgentAPI.ts +365 -0
- package/src/client/index.ts +8 -0
- package/src/client/types.ts +14 -0
- package/src/component/_generated/api.ts +60 -0
- package/src/component/_generated/component.ts +466 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +156 -0
- package/src/index.ts +24 -0
- package/{dist/index.cjs → src/memory-adapter.ts} +345 -106
- package/src/types.ts +178 -0
- package/dist/client/index.cjs +0 -288
- package/dist/client/index.cjs.map +0 -1
- package/dist/client/index.d.cts +0 -566
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -322
- /package/{convex → src/component}/conversations.ts +0 -0
- /package/{convex → src/component}/convex.config.ts +0 -0
- /package/{convex → src/component}/messages.ts +0 -0
- /package/{convex → src/component}/schema.ts +0 -0
- /package/{convex → src/component}/steps.ts +0 -0
- /package/{convex → src/component}/validators.ts +0 -0
- /package/{convex → src/component}/workflows.ts +0 -0
- /package/{convex → src/component}/workingMemory.ts +0 -0
package/dist/client/index.d.ts
CHANGED
|
@@ -1,566 +1,9 @@
|
|
|
1
|
-
import * as convex_server from 'convex/server';
|
|
2
|
-
import { FunctionReference, ApiFromModules } from 'convex/server';
|
|
3
|
-
|
|
4
1
|
/**
|
|
5
|
-
* VoltAgent Convex
|
|
2
|
+
* VoltAgent Convex Client API
|
|
6
3
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* This module exports the defineVoltAgentAPI function and related types
|
|
5
|
+
* for creating public wrapper functions around the VoltAgent component.
|
|
9
6
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* This matches the structure of `components.voltagent` after installing the component.
|
|
14
|
-
*/
|
|
15
|
-
type VoltAgentComponent = {
|
|
16
|
-
conversations: {
|
|
17
|
-
create: FunctionReference<"mutation", "internal", {
|
|
18
|
-
id: string;
|
|
19
|
-
resourceId: string;
|
|
20
|
-
userId: string;
|
|
21
|
-
title: string;
|
|
22
|
-
metadata: unknown;
|
|
23
|
-
}, {
|
|
24
|
-
_id: string;
|
|
25
|
-
id: string;
|
|
26
|
-
resourceId: string;
|
|
27
|
-
userId: string;
|
|
28
|
-
title: string;
|
|
29
|
-
metadata: Record<string, unknown>;
|
|
30
|
-
createdAt: string;
|
|
31
|
-
updatedAt: string;
|
|
32
|
-
}>;
|
|
33
|
-
get: FunctionReference<"query", "internal", {
|
|
34
|
-
id: string;
|
|
35
|
-
}, {
|
|
36
|
-
id: string;
|
|
37
|
-
resourceId: string;
|
|
38
|
-
userId: string;
|
|
39
|
-
title: string;
|
|
40
|
-
metadata: Record<string, unknown>;
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
} | null>;
|
|
44
|
-
getByResourceId: FunctionReference<"query", "internal", {
|
|
45
|
-
resourceId: string;
|
|
46
|
-
}, Array<{
|
|
47
|
-
id: string;
|
|
48
|
-
resourceId: string;
|
|
49
|
-
userId: string;
|
|
50
|
-
title: string;
|
|
51
|
-
metadata: Record<string, unknown>;
|
|
52
|
-
createdAt: string;
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
}>>;
|
|
55
|
-
getByUserId: FunctionReference<"query", "internal", {
|
|
56
|
-
userId: string;
|
|
57
|
-
limit?: number;
|
|
58
|
-
offset?: number;
|
|
59
|
-
orderBy?: string;
|
|
60
|
-
orderDirection?: string;
|
|
61
|
-
}, Array<{
|
|
62
|
-
id: string;
|
|
63
|
-
resourceId: string;
|
|
64
|
-
userId: string;
|
|
65
|
-
title: string;
|
|
66
|
-
metadata: Record<string, unknown>;
|
|
67
|
-
createdAt: string;
|
|
68
|
-
updatedAt: string;
|
|
69
|
-
}>>;
|
|
70
|
-
queryConversations: FunctionReference<"query", "internal", {
|
|
71
|
-
userId?: string;
|
|
72
|
-
resourceId?: string;
|
|
73
|
-
limit?: number;
|
|
74
|
-
offset?: number;
|
|
75
|
-
orderBy?: string;
|
|
76
|
-
orderDirection?: string;
|
|
77
|
-
}, Array<{
|
|
78
|
-
id: string;
|
|
79
|
-
resourceId: string;
|
|
80
|
-
userId: string;
|
|
81
|
-
title: string;
|
|
82
|
-
metadata: Record<string, unknown>;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
updatedAt: string;
|
|
85
|
-
}>>;
|
|
86
|
-
update: FunctionReference<"mutation", "internal", {
|
|
87
|
-
id: string;
|
|
88
|
-
title?: string;
|
|
89
|
-
resourceId?: string;
|
|
90
|
-
metadata?: unknown;
|
|
91
|
-
}, {
|
|
92
|
-
id: string;
|
|
93
|
-
resourceId: string;
|
|
94
|
-
userId: string;
|
|
95
|
-
title: string;
|
|
96
|
-
metadata: Record<string, unknown>;
|
|
97
|
-
createdAt: string;
|
|
98
|
-
updatedAt: string;
|
|
99
|
-
}>;
|
|
100
|
-
remove: FunctionReference<"mutation", "internal", {
|
|
101
|
-
id: string;
|
|
102
|
-
}, null>;
|
|
103
|
-
};
|
|
104
|
-
messages: {
|
|
105
|
-
add: FunctionReference<"mutation", "internal", {
|
|
106
|
-
id: string;
|
|
107
|
-
conversationId: string;
|
|
108
|
-
userId: string;
|
|
109
|
-
role: string;
|
|
110
|
-
parts: unknown;
|
|
111
|
-
metadata?: unknown;
|
|
112
|
-
}, {
|
|
113
|
-
id: string;
|
|
114
|
-
}>;
|
|
115
|
-
addMany: FunctionReference<"mutation", "internal", {
|
|
116
|
-
messages: Array<{
|
|
117
|
-
id: string;
|
|
118
|
-
conversationId: string;
|
|
119
|
-
userId: string;
|
|
120
|
-
role: string;
|
|
121
|
-
parts: unknown;
|
|
122
|
-
metadata?: unknown;
|
|
123
|
-
}>;
|
|
124
|
-
}, {
|
|
125
|
-
count: number;
|
|
126
|
-
}>;
|
|
127
|
-
get: FunctionReference<"query", "internal", {
|
|
128
|
-
userId: string;
|
|
129
|
-
conversationId: string;
|
|
130
|
-
limit?: number;
|
|
131
|
-
before?: string;
|
|
132
|
-
after?: string;
|
|
133
|
-
roles?: string[];
|
|
134
|
-
}, Array<{
|
|
135
|
-
id: string;
|
|
136
|
-
role: string;
|
|
137
|
-
parts: unknown[];
|
|
138
|
-
metadata?: Record<string, unknown>;
|
|
139
|
-
}>>;
|
|
140
|
-
clear: FunctionReference<"mutation", "internal", {
|
|
141
|
-
userId: string;
|
|
142
|
-
conversationId?: string;
|
|
143
|
-
}, {
|
|
144
|
-
count: number;
|
|
145
|
-
}>;
|
|
146
|
-
};
|
|
147
|
-
steps: {
|
|
148
|
-
save: FunctionReference<"mutation", "internal", {
|
|
149
|
-
steps: Array<{
|
|
150
|
-
id: string;
|
|
151
|
-
conversationId: string;
|
|
152
|
-
userId: string;
|
|
153
|
-
agentId: string;
|
|
154
|
-
agentName?: string;
|
|
155
|
-
operationId?: string;
|
|
156
|
-
stepIndex: number;
|
|
157
|
-
type: string;
|
|
158
|
-
role: string;
|
|
159
|
-
content?: string;
|
|
160
|
-
arguments?: unknown;
|
|
161
|
-
result?: unknown;
|
|
162
|
-
usage?: unknown;
|
|
163
|
-
subAgentId?: string;
|
|
164
|
-
subAgentName?: string;
|
|
165
|
-
createdAt?: string;
|
|
166
|
-
}>;
|
|
167
|
-
}, {
|
|
168
|
-
count: number;
|
|
169
|
-
}>;
|
|
170
|
-
get: FunctionReference<"query", "internal", {
|
|
171
|
-
userId: string;
|
|
172
|
-
conversationId: string;
|
|
173
|
-
limit?: number;
|
|
174
|
-
operationId?: string;
|
|
175
|
-
}, Array<{
|
|
176
|
-
id: string;
|
|
177
|
-
conversationId: string;
|
|
178
|
-
userId: string;
|
|
179
|
-
agentId: string;
|
|
180
|
-
agentName?: string;
|
|
181
|
-
operationId?: string;
|
|
182
|
-
stepIndex: number;
|
|
183
|
-
type: string;
|
|
184
|
-
role: string;
|
|
185
|
-
content?: string;
|
|
186
|
-
arguments?: unknown;
|
|
187
|
-
result?: unknown;
|
|
188
|
-
usage?: unknown;
|
|
189
|
-
subAgentId?: string;
|
|
190
|
-
subAgentName?: string;
|
|
191
|
-
createdAt?: string;
|
|
192
|
-
}>>;
|
|
193
|
-
};
|
|
194
|
-
workingMemory: {
|
|
195
|
-
get: FunctionReference<"query", "internal", {
|
|
196
|
-
conversationId?: string;
|
|
197
|
-
userId?: string;
|
|
198
|
-
scope: string;
|
|
199
|
-
}, string | null>;
|
|
200
|
-
set: FunctionReference<"mutation", "internal", {
|
|
201
|
-
conversationId?: string;
|
|
202
|
-
userId?: string;
|
|
203
|
-
content: string;
|
|
204
|
-
scope: string;
|
|
205
|
-
}, null>;
|
|
206
|
-
remove: FunctionReference<"mutation", "internal", {
|
|
207
|
-
conversationId?: string;
|
|
208
|
-
userId?: string;
|
|
209
|
-
scope: string;
|
|
210
|
-
}, null>;
|
|
211
|
-
};
|
|
212
|
-
workflows: {
|
|
213
|
-
get: FunctionReference<"query", "internal", {
|
|
214
|
-
executionId: string;
|
|
215
|
-
}, {
|
|
216
|
-
id: string;
|
|
217
|
-
workflowId: string;
|
|
218
|
-
workflowName: string;
|
|
219
|
-
status: string;
|
|
220
|
-
input?: unknown;
|
|
221
|
-
context?: unknown;
|
|
222
|
-
suspension?: unknown;
|
|
223
|
-
events?: unknown[];
|
|
224
|
-
output?: unknown;
|
|
225
|
-
cancellation?: unknown;
|
|
226
|
-
userId?: string;
|
|
227
|
-
conversationId?: string;
|
|
228
|
-
metadata?: Record<string, unknown>;
|
|
229
|
-
createdAt: string;
|
|
230
|
-
updatedAt: string;
|
|
231
|
-
} | null>;
|
|
232
|
-
queryRuns: FunctionReference<"query", "internal", {
|
|
233
|
-
workflowId?: string;
|
|
234
|
-
status?: string;
|
|
235
|
-
from?: string;
|
|
236
|
-
to?: string;
|
|
237
|
-
limit?: number;
|
|
238
|
-
offset?: number;
|
|
239
|
-
}, Array<{
|
|
240
|
-
id: string;
|
|
241
|
-
workflowId: string;
|
|
242
|
-
workflowName: string;
|
|
243
|
-
status: string;
|
|
244
|
-
createdAt: string;
|
|
245
|
-
updatedAt: string;
|
|
246
|
-
}>>;
|
|
247
|
-
set: FunctionReference<"mutation", "internal", {
|
|
248
|
-
executionId: string;
|
|
249
|
-
workflowId: string;
|
|
250
|
-
workflowName: string;
|
|
251
|
-
status: string;
|
|
252
|
-
input?: unknown;
|
|
253
|
-
context?: unknown;
|
|
254
|
-
suspension?: unknown;
|
|
255
|
-
events?: unknown;
|
|
256
|
-
output?: unknown;
|
|
257
|
-
cancellation?: unknown;
|
|
258
|
-
userId?: string;
|
|
259
|
-
conversationId?: string;
|
|
260
|
-
metadata?: unknown;
|
|
261
|
-
createdAt: string;
|
|
262
|
-
updatedAt: string;
|
|
263
|
-
}, null>;
|
|
264
|
-
update: FunctionReference<"mutation", "internal", {
|
|
265
|
-
executionId: string;
|
|
266
|
-
status?: string;
|
|
267
|
-
suspension?: unknown;
|
|
268
|
-
events?: unknown;
|
|
269
|
-
output?: unknown;
|
|
270
|
-
cancellation?: unknown;
|
|
271
|
-
metadata?: unknown;
|
|
272
|
-
}, null>;
|
|
273
|
-
getSuspended: FunctionReference<"query", "internal", {
|
|
274
|
-
workflowId: string;
|
|
275
|
-
}, Array<{
|
|
276
|
-
id: string;
|
|
277
|
-
workflowId: string;
|
|
278
|
-
workflowName: string;
|
|
279
|
-
status: "suspended";
|
|
280
|
-
suspension?: unknown;
|
|
281
|
-
createdAt: string;
|
|
282
|
-
updatedAt: string;
|
|
283
|
-
}>>;
|
|
284
|
-
};
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Define the VoltAgent API functions.
|
|
289
|
-
*
|
|
290
|
-
* @param component - The VoltAgent component reference (components.voltagent)
|
|
291
|
-
* @returns An object containing all VoltAgent API functions
|
|
292
|
-
*/
|
|
293
|
-
declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
294
|
-
createConversation: convex_server.RegisteredMutation<"public", {
|
|
295
|
-
id: string;
|
|
296
|
-
resourceId: string;
|
|
297
|
-
userId: string;
|
|
298
|
-
title: string;
|
|
299
|
-
metadata: any;
|
|
300
|
-
}, Promise<{
|
|
301
|
-
_id: string;
|
|
302
|
-
id: string;
|
|
303
|
-
resourceId: string;
|
|
304
|
-
userId: string;
|
|
305
|
-
title: string;
|
|
306
|
-
metadata: Record<string, unknown>;
|
|
307
|
-
createdAt: string;
|
|
308
|
-
updatedAt: string;
|
|
309
|
-
}>>;
|
|
310
|
-
getConversation: convex_server.RegisteredQuery<"public", {
|
|
311
|
-
id: string;
|
|
312
|
-
}, Promise<{
|
|
313
|
-
id: string;
|
|
314
|
-
resourceId: string;
|
|
315
|
-
userId: string;
|
|
316
|
-
title: string;
|
|
317
|
-
metadata: Record<string, unknown>;
|
|
318
|
-
createdAt: string;
|
|
319
|
-
updatedAt: string;
|
|
320
|
-
} | null>>;
|
|
321
|
-
getConversations: convex_server.RegisteredQuery<"public", {
|
|
322
|
-
resourceId: string;
|
|
323
|
-
}, Promise<{
|
|
324
|
-
id: string;
|
|
325
|
-
resourceId: string;
|
|
326
|
-
userId: string;
|
|
327
|
-
title: string;
|
|
328
|
-
metadata: Record<string, unknown>;
|
|
329
|
-
createdAt: string;
|
|
330
|
-
updatedAt: string;
|
|
331
|
-
}[]>>;
|
|
332
|
-
getConversationsByUserId: convex_server.RegisteredQuery<"public", {
|
|
333
|
-
limit?: number | undefined;
|
|
334
|
-
offset?: number | undefined;
|
|
335
|
-
orderBy?: string | undefined;
|
|
336
|
-
orderDirection?: string | undefined;
|
|
337
|
-
userId: string;
|
|
338
|
-
}, Promise<{
|
|
339
|
-
id: string;
|
|
340
|
-
resourceId: string;
|
|
341
|
-
userId: string;
|
|
342
|
-
title: string;
|
|
343
|
-
metadata: Record<string, unknown>;
|
|
344
|
-
createdAt: string;
|
|
345
|
-
updatedAt: string;
|
|
346
|
-
}[]>>;
|
|
347
|
-
queryConversations: convex_server.RegisteredQuery<"public", {
|
|
348
|
-
resourceId?: string | undefined;
|
|
349
|
-
userId?: string | undefined;
|
|
350
|
-
limit?: number | undefined;
|
|
351
|
-
offset?: number | undefined;
|
|
352
|
-
orderBy?: string | undefined;
|
|
353
|
-
orderDirection?: string | undefined;
|
|
354
|
-
}, Promise<{
|
|
355
|
-
id: string;
|
|
356
|
-
resourceId: string;
|
|
357
|
-
userId: string;
|
|
358
|
-
title: string;
|
|
359
|
-
metadata: Record<string, unknown>;
|
|
360
|
-
createdAt: string;
|
|
361
|
-
updatedAt: string;
|
|
362
|
-
}[]>>;
|
|
363
|
-
updateConversation: convex_server.RegisteredMutation<"public", {
|
|
364
|
-
resourceId?: string | undefined;
|
|
365
|
-
title?: string | undefined;
|
|
366
|
-
metadata?: any;
|
|
367
|
-
id: string;
|
|
368
|
-
}, Promise<{
|
|
369
|
-
id: string;
|
|
370
|
-
resourceId: string;
|
|
371
|
-
userId: string;
|
|
372
|
-
title: string;
|
|
373
|
-
metadata: Record<string, unknown>;
|
|
374
|
-
createdAt: string;
|
|
375
|
-
updatedAt: string;
|
|
376
|
-
}>>;
|
|
377
|
-
deleteConversation: convex_server.RegisteredMutation<"public", {
|
|
378
|
-
id: string;
|
|
379
|
-
}, Promise<null>>;
|
|
380
|
-
addMessage: convex_server.RegisteredMutation<"public", {
|
|
381
|
-
metadata?: any;
|
|
382
|
-
id: string;
|
|
383
|
-
userId: string;
|
|
384
|
-
conversationId: string;
|
|
385
|
-
role: string;
|
|
386
|
-
parts: any;
|
|
387
|
-
}, Promise<{
|
|
388
|
-
id: string;
|
|
389
|
-
}>>;
|
|
390
|
-
addMessages: convex_server.RegisteredMutation<"public", {
|
|
391
|
-
messages: {
|
|
392
|
-
metadata?: any;
|
|
393
|
-
id: string;
|
|
394
|
-
userId: string;
|
|
395
|
-
conversationId: string;
|
|
396
|
-
role: string;
|
|
397
|
-
parts: any;
|
|
398
|
-
}[];
|
|
399
|
-
}, Promise<{
|
|
400
|
-
count: number;
|
|
401
|
-
}>>;
|
|
402
|
-
getMessages: convex_server.RegisteredQuery<"public", {
|
|
403
|
-
limit?: number | undefined;
|
|
404
|
-
before?: string | undefined;
|
|
405
|
-
after?: string | undefined;
|
|
406
|
-
roles?: string[] | undefined;
|
|
407
|
-
userId: string;
|
|
408
|
-
conversationId: string;
|
|
409
|
-
}, Promise<{
|
|
410
|
-
id: string;
|
|
411
|
-
role: string;
|
|
412
|
-
parts: unknown[];
|
|
413
|
-
metadata?: Record<string, unknown>;
|
|
414
|
-
}[]>>;
|
|
415
|
-
clearMessages: convex_server.RegisteredMutation<"public", {
|
|
416
|
-
conversationId?: string | undefined;
|
|
417
|
-
userId: string;
|
|
418
|
-
}, Promise<{
|
|
419
|
-
count: number;
|
|
420
|
-
}>>;
|
|
421
|
-
saveConversationSteps: convex_server.RegisteredMutation<"public", {
|
|
422
|
-
steps: {
|
|
423
|
-
operationId?: string | undefined;
|
|
424
|
-
content?: string | undefined;
|
|
425
|
-
createdAt?: string | undefined;
|
|
426
|
-
agentName?: string | undefined;
|
|
427
|
-
arguments?: any;
|
|
428
|
-
result?: any;
|
|
429
|
-
usage?: any;
|
|
430
|
-
subAgentId?: string | undefined;
|
|
431
|
-
subAgentName?: string | undefined;
|
|
432
|
-
id: string;
|
|
433
|
-
userId: string;
|
|
434
|
-
conversationId: string;
|
|
435
|
-
role: string;
|
|
436
|
-
type: string;
|
|
437
|
-
agentId: string;
|
|
438
|
-
stepIndex: number;
|
|
439
|
-
}[];
|
|
440
|
-
}, Promise<{
|
|
441
|
-
count: number;
|
|
442
|
-
}>>;
|
|
443
|
-
getConversationSteps: convex_server.RegisteredQuery<"public", {
|
|
444
|
-
limit?: number | undefined;
|
|
445
|
-
operationId?: string | undefined;
|
|
446
|
-
userId: string;
|
|
447
|
-
conversationId: string;
|
|
448
|
-
}, Promise<{
|
|
449
|
-
id: string;
|
|
450
|
-
conversationId: string;
|
|
451
|
-
userId: string;
|
|
452
|
-
agentId: string;
|
|
453
|
-
agentName?: string;
|
|
454
|
-
operationId?: string;
|
|
455
|
-
stepIndex: number;
|
|
456
|
-
type: string;
|
|
457
|
-
role: string;
|
|
458
|
-
content?: string;
|
|
459
|
-
arguments?: unknown;
|
|
460
|
-
result?: unknown;
|
|
461
|
-
usage?: unknown;
|
|
462
|
-
subAgentId?: string;
|
|
463
|
-
subAgentName?: string;
|
|
464
|
-
createdAt?: string;
|
|
465
|
-
}[]>>;
|
|
466
|
-
getWorkingMemory: convex_server.RegisteredQuery<"public", {
|
|
467
|
-
userId?: string | undefined;
|
|
468
|
-
conversationId?: string | undefined;
|
|
469
|
-
scope: string;
|
|
470
|
-
}, Promise<string | null>>;
|
|
471
|
-
setWorkingMemory: convex_server.RegisteredMutation<"public", {
|
|
472
|
-
userId?: string | undefined;
|
|
473
|
-
conversationId?: string | undefined;
|
|
474
|
-
scope: string;
|
|
475
|
-
content: string;
|
|
476
|
-
}, Promise<null>>;
|
|
477
|
-
deleteWorkingMemory: convex_server.RegisteredMutation<"public", {
|
|
478
|
-
userId?: string | undefined;
|
|
479
|
-
conversationId?: string | undefined;
|
|
480
|
-
scope: string;
|
|
481
|
-
}, Promise<null>>;
|
|
482
|
-
getWorkflowState: convex_server.RegisteredQuery<"public", {
|
|
483
|
-
executionId: string;
|
|
484
|
-
}, Promise<{
|
|
485
|
-
id: string;
|
|
486
|
-
workflowId: string;
|
|
487
|
-
workflowName: string;
|
|
488
|
-
status: string;
|
|
489
|
-
input?: unknown;
|
|
490
|
-
context?: unknown;
|
|
491
|
-
suspension?: unknown;
|
|
492
|
-
events?: unknown[];
|
|
493
|
-
output?: unknown;
|
|
494
|
-
cancellation?: unknown;
|
|
495
|
-
userId?: string;
|
|
496
|
-
conversationId?: string;
|
|
497
|
-
metadata?: Record<string, unknown>;
|
|
498
|
-
createdAt: string;
|
|
499
|
-
updatedAt: string;
|
|
500
|
-
} | null>>;
|
|
501
|
-
queryWorkflowRuns: convex_server.RegisteredQuery<"public", {
|
|
502
|
-
limit?: number | undefined;
|
|
503
|
-
offset?: number | undefined;
|
|
504
|
-
workflowId?: string | undefined;
|
|
505
|
-
status?: string | undefined;
|
|
506
|
-
from?: string | undefined;
|
|
507
|
-
to?: string | undefined;
|
|
508
|
-
}, Promise<{
|
|
509
|
-
id: string;
|
|
510
|
-
workflowId: string;
|
|
511
|
-
workflowName: string;
|
|
512
|
-
status: string;
|
|
513
|
-
createdAt: string;
|
|
514
|
-
updatedAt: string;
|
|
515
|
-
}[]>>;
|
|
516
|
-
setWorkflowState: convex_server.RegisteredMutation<"public", {
|
|
517
|
-
userId?: string | undefined;
|
|
518
|
-
metadata?: any;
|
|
519
|
-
conversationId?: string | undefined;
|
|
520
|
-
input?: any;
|
|
521
|
-
context?: any;
|
|
522
|
-
suspension?: any;
|
|
523
|
-
events?: any;
|
|
524
|
-
output?: any;
|
|
525
|
-
cancellation?: any;
|
|
526
|
-
executionId: string;
|
|
527
|
-
workflowId: string;
|
|
528
|
-
status: string;
|
|
529
|
-
workflowName: string;
|
|
530
|
-
createdAt: string;
|
|
531
|
-
updatedAt: string;
|
|
532
|
-
}, Promise<null>>;
|
|
533
|
-
updateWorkflowState: convex_server.RegisteredMutation<"public", {
|
|
534
|
-
metadata?: any;
|
|
535
|
-
status?: string | undefined;
|
|
536
|
-
suspension?: any;
|
|
537
|
-
events?: any;
|
|
538
|
-
output?: any;
|
|
539
|
-
cancellation?: any;
|
|
540
|
-
executionId: string;
|
|
541
|
-
}, Promise<null>>;
|
|
542
|
-
getSuspendedWorkflowStates: convex_server.RegisteredQuery<"public", {
|
|
543
|
-
workflowId: string;
|
|
544
|
-
}, Promise<{
|
|
545
|
-
id: string;
|
|
546
|
-
workflowId: string;
|
|
547
|
-
workflowName: string;
|
|
548
|
-
status: "suspended";
|
|
549
|
-
suspension?: unknown;
|
|
550
|
-
createdAt: string;
|
|
551
|
-
updatedAt: string;
|
|
552
|
-
}[]>>;
|
|
553
|
-
};
|
|
554
|
-
/**
|
|
555
|
-
* Type for the VoltAgent API when used with ApiFromModules.
|
|
556
|
-
*
|
|
557
|
-
* Usage:
|
|
558
|
-
* ```typescript
|
|
559
|
-
* import type { VoltAgentAPI } from "@voltagent/convex/api";
|
|
560
|
-
* ```
|
|
561
|
-
*/
|
|
562
|
-
type VoltAgentAPI = ApiFromModules<{
|
|
563
|
-
voltagent: ReturnType<typeof defineVoltAgentAPI>;
|
|
564
|
-
}>["voltagent"];
|
|
565
|
-
|
|
566
|
-
export { type VoltAgentAPI, type VoltAgentComponent, defineVoltAgentAPI };
|
|
7
|
+
export { defineVoltAgentAPI, type VoltAgentAPI } from "./defineVoltAgentAPI.js";
|
|
8
|
+
export { type VoltAgentComponent } from "./types.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,kBAAkB,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|