@botpress/sdk 0.8.29 → 0.8.30

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.
@@ -0,0 +1,728 @@
1
+ import { InterfaceDeclaration } from '../integration/definition';
2
+ import { z } from '../zui';
3
+ declare const ToolCallSchema: import("@bpinternal/zui").ZodObject<{
4
+ id: import("@bpinternal/zui").ZodString;
5
+ type: import("@bpinternal/zui").ZodEnum<["function"]>;
6
+ function: import("@bpinternal/zui").ZodObject<{
7
+ name: import("@bpinternal/zui").ZodString;
8
+ arguments: import("@bpinternal/zui").ZodString;
9
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
10
+ name: string;
11
+ arguments: string;
12
+ }, {
13
+ name: string;
14
+ arguments: string;
15
+ }>;
16
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
17
+ function: {
18
+ name: string;
19
+ arguments: string;
20
+ };
21
+ type: "function";
22
+ id: string;
23
+ }, {
24
+ function: {
25
+ name: string;
26
+ arguments: string;
27
+ };
28
+ type: "function";
29
+ id: string;
30
+ }>;
31
+ declare const MessageSchema: import("@bpinternal/zui").ZodObject<{
32
+ role: import("@bpinternal/zui").ZodEnum<["user", "assistant"]>;
33
+ type: import("@bpinternal/zui").ZodEnum<["text", "tool_calls", "tool_result", "multipart"]>;
34
+ toolCalls: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
35
+ id: import("@bpinternal/zui").ZodString;
36
+ type: import("@bpinternal/zui").ZodEnum<["function"]>;
37
+ function: import("@bpinternal/zui").ZodObject<{
38
+ name: import("@bpinternal/zui").ZodString;
39
+ arguments: import("@bpinternal/zui").ZodString;
40
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
41
+ name: string;
42
+ arguments: string;
43
+ }, {
44
+ name: string;
45
+ arguments: string;
46
+ }>;
47
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
48
+ function: {
49
+ name: string;
50
+ arguments: string;
51
+ };
52
+ type: "function";
53
+ id: string;
54
+ }, {
55
+ function: {
56
+ name: string;
57
+ arguments: string;
58
+ };
59
+ type: "function";
60
+ id: string;
61
+ }>, "many">>;
62
+ toolResultCallId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
63
+ content: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodString, import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
64
+ type: import("@bpinternal/zui").ZodEnum<["text", "image"]>;
65
+ mimeType: import("@bpinternal/zui").ZodString;
66
+ text: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
67
+ url: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
68
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
69
+ type: "text" | "image";
70
+ mimeType: string;
71
+ text?: string | undefined;
72
+ url?: string | undefined;
73
+ }, {
74
+ type: "text" | "image";
75
+ mimeType: string;
76
+ text?: string | undefined;
77
+ url?: string | undefined;
78
+ }>, "many">]>>;
79
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
80
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
81
+ role: "user" | "assistant";
82
+ toolCalls?: {
83
+ function: {
84
+ name: string;
85
+ arguments: string;
86
+ };
87
+ type: "function";
88
+ id: string;
89
+ }[] | undefined;
90
+ toolResultCallId?: string | undefined;
91
+ content?: string | {
92
+ type: "text" | "image";
93
+ mimeType: string;
94
+ text?: string | undefined;
95
+ url?: string | undefined;
96
+ }[] | undefined;
97
+ }, {
98
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
99
+ role: "user" | "assistant";
100
+ toolCalls?: {
101
+ function: {
102
+ name: string;
103
+ arguments: string;
104
+ };
105
+ type: "function";
106
+ id: string;
107
+ }[] | undefined;
108
+ toolResultCallId?: string | undefined;
109
+ content?: string | {
110
+ type: "text" | "image";
111
+ mimeType: string;
112
+ text?: string | undefined;
113
+ url?: string | undefined;
114
+ }[] | undefined;
115
+ }>;
116
+ declare const GenerateContentInputSchema: import("@bpinternal/zui").ZodObject<{
117
+ model: import("@bpinternal/zui").ZodString;
118
+ systemPrompt: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
119
+ messages: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
120
+ role: import("@bpinternal/zui").ZodEnum<["user", "assistant"]>;
121
+ type: import("@bpinternal/zui").ZodEnum<["text", "tool_calls", "tool_result", "multipart"]>;
122
+ toolCalls: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
123
+ id: import("@bpinternal/zui").ZodString;
124
+ type: import("@bpinternal/zui").ZodEnum<["function"]>;
125
+ function: import("@bpinternal/zui").ZodObject<{
126
+ name: import("@bpinternal/zui").ZodString;
127
+ arguments: import("@bpinternal/zui").ZodString;
128
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
129
+ name: string;
130
+ arguments: string;
131
+ }, {
132
+ name: string;
133
+ arguments: string;
134
+ }>;
135
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
136
+ function: {
137
+ name: string;
138
+ arguments: string;
139
+ };
140
+ type: "function";
141
+ id: string;
142
+ }, {
143
+ function: {
144
+ name: string;
145
+ arguments: string;
146
+ };
147
+ type: "function";
148
+ id: string;
149
+ }>, "many">>;
150
+ toolResultCallId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
151
+ content: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodString, import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
152
+ type: import("@bpinternal/zui").ZodEnum<["text", "image"]>;
153
+ mimeType: import("@bpinternal/zui").ZodString;
154
+ text: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
155
+ url: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
156
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
157
+ type: "text" | "image";
158
+ mimeType: string;
159
+ text?: string | undefined;
160
+ url?: string | undefined;
161
+ }, {
162
+ type: "text" | "image";
163
+ mimeType: string;
164
+ text?: string | undefined;
165
+ url?: string | undefined;
166
+ }>, "many">]>>;
167
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
168
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
169
+ role: "user" | "assistant";
170
+ toolCalls?: {
171
+ function: {
172
+ name: string;
173
+ arguments: string;
174
+ };
175
+ type: "function";
176
+ id: string;
177
+ }[] | undefined;
178
+ toolResultCallId?: string | undefined;
179
+ content?: string | {
180
+ type: "text" | "image";
181
+ mimeType: string;
182
+ text?: string | undefined;
183
+ url?: string | undefined;
184
+ }[] | undefined;
185
+ }, {
186
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
187
+ role: "user" | "assistant";
188
+ toolCalls?: {
189
+ function: {
190
+ name: string;
191
+ arguments: string;
192
+ };
193
+ type: "function";
194
+ id: string;
195
+ }[] | undefined;
196
+ toolResultCallId?: string | undefined;
197
+ content?: string | {
198
+ type: "text" | "image";
199
+ mimeType: string;
200
+ text?: string | undefined;
201
+ url?: string | undefined;
202
+ }[] | undefined;
203
+ }>, "many">;
204
+ responseFormat: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodEnum<["text", "json_object"]>>;
205
+ maxTokens: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodNumber>;
206
+ temperature: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>;
207
+ topP: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>;
208
+ stopSequences: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodString, "many">>;
209
+ tools: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
210
+ type: import("@bpinternal/zui").ZodLiteral<"function">;
211
+ function: import("@bpinternal/zui").ZodObject<{
212
+ name: import("@bpinternal/zui").ZodString;
213
+ description: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
214
+ inputSchema: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{}, "passthrough", import("@bpinternal/zui").ZodTypeAny, import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">, import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">>>;
215
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
216
+ name: string;
217
+ description?: string | undefined;
218
+ inputSchema?: import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
219
+ }, {
220
+ name: string;
221
+ description?: string | undefined;
222
+ inputSchema?: import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
223
+ }>;
224
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
225
+ function: {
226
+ name: string;
227
+ description?: string | undefined;
228
+ inputSchema?: import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
229
+ };
230
+ type: "function";
231
+ }, {
232
+ function: {
233
+ name: string;
234
+ description?: string | undefined;
235
+ inputSchema?: import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
236
+ };
237
+ type: "function";
238
+ }>, "many">>;
239
+ toolChoice: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{
240
+ type: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodEnum<["auto", "specific", "any", "none", ""]>>;
241
+ functionName: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
242
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
243
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
244
+ functionName?: string | undefined;
245
+ }, {
246
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
247
+ functionName?: string | undefined;
248
+ }>>;
249
+ userId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
250
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
251
+ model: string;
252
+ messages: {
253
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
254
+ role: "user" | "assistant";
255
+ toolCalls?: {
256
+ function: {
257
+ name: string;
258
+ arguments: string;
259
+ };
260
+ type: "function";
261
+ id: string;
262
+ }[] | undefined;
263
+ toolResultCallId?: string | undefined;
264
+ content?: string | {
265
+ type: "text" | "image";
266
+ mimeType: string;
267
+ text?: string | undefined;
268
+ url?: string | undefined;
269
+ }[] | undefined;
270
+ }[];
271
+ temperature: number;
272
+ topP: number;
273
+ systemPrompt?: string | undefined;
274
+ responseFormat?: "text" | "json_object" | undefined;
275
+ maxTokens?: number | undefined;
276
+ stopSequences?: string[] | undefined;
277
+ tools?: {
278
+ function: {
279
+ name: string;
280
+ description?: string | undefined;
281
+ inputSchema?: import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
282
+ };
283
+ type: "function";
284
+ }[] | undefined;
285
+ toolChoice?: {
286
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
287
+ functionName?: string | undefined;
288
+ } | undefined;
289
+ userId?: string | undefined;
290
+ }, {
291
+ model: string;
292
+ messages: {
293
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
294
+ role: "user" | "assistant";
295
+ toolCalls?: {
296
+ function: {
297
+ name: string;
298
+ arguments: string;
299
+ };
300
+ type: "function";
301
+ id: string;
302
+ }[] | undefined;
303
+ toolResultCallId?: string | undefined;
304
+ content?: string | {
305
+ type: "text" | "image";
306
+ mimeType: string;
307
+ text?: string | undefined;
308
+ url?: string | undefined;
309
+ }[] | undefined;
310
+ }[];
311
+ systemPrompt?: string | undefined;
312
+ responseFormat?: "text" | "json_object" | undefined;
313
+ maxTokens?: number | undefined;
314
+ temperature?: number | undefined;
315
+ topP?: number | undefined;
316
+ stopSequences?: string[] | undefined;
317
+ tools?: {
318
+ function: {
319
+ name: string;
320
+ description?: string | undefined;
321
+ inputSchema?: import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
322
+ };
323
+ type: "function";
324
+ }[] | undefined;
325
+ toolChoice?: {
326
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
327
+ functionName?: string | undefined;
328
+ } | undefined;
329
+ userId?: string | undefined;
330
+ }>;
331
+ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
332
+ id: import("@bpinternal/zui").ZodString;
333
+ provider: import("@bpinternal/zui").ZodString;
334
+ model: import("@bpinternal/zui").ZodString;
335
+ choices: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
336
+ type: import("@bpinternal/zui").ZodEnum<["text", "tool_calls", "tool_result", "multipart"]>;
337
+ toolCalls: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
338
+ id: import("@bpinternal/zui").ZodString;
339
+ type: import("@bpinternal/zui").ZodEnum<["function"]>;
340
+ function: import("@bpinternal/zui").ZodObject<{
341
+ name: import("@bpinternal/zui").ZodString;
342
+ arguments: import("@bpinternal/zui").ZodString;
343
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
344
+ name: string;
345
+ arguments: string;
346
+ }, {
347
+ name: string;
348
+ arguments: string;
349
+ }>;
350
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
351
+ function: {
352
+ name: string;
353
+ arguments: string;
354
+ };
355
+ type: "function";
356
+ id: string;
357
+ }, {
358
+ function: {
359
+ name: string;
360
+ arguments: string;
361
+ };
362
+ type: "function";
363
+ id: string;
364
+ }>, "many">>;
365
+ toolResultCallId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
366
+ content: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodString, import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
367
+ type: import("@bpinternal/zui").ZodEnum<["text", "image"]>;
368
+ mimeType: import("@bpinternal/zui").ZodString;
369
+ text: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
370
+ url: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
371
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
372
+ type: "text" | "image";
373
+ mimeType: string;
374
+ text?: string | undefined;
375
+ url?: string | undefined;
376
+ }, {
377
+ type: "text" | "image";
378
+ mimeType: string;
379
+ text?: string | undefined;
380
+ url?: string | undefined;
381
+ }>, "many">]>>;
382
+ role: import("@bpinternal/zui").ZodLiteral<"assistant">;
383
+ index: import("@bpinternal/zui").ZodNumber;
384
+ stopReason: import("@bpinternal/zui").ZodEnum<["stop", "max_tokens", "tool_calls", "content_filter", "other"]>;
385
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
386
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
387
+ role: "assistant";
388
+ index: number;
389
+ stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
390
+ toolCalls?: {
391
+ function: {
392
+ name: string;
393
+ arguments: string;
394
+ };
395
+ type: "function";
396
+ id: string;
397
+ }[] | undefined;
398
+ toolResultCallId?: string | undefined;
399
+ content?: string | {
400
+ type: "text" | "image";
401
+ mimeType: string;
402
+ text?: string | undefined;
403
+ url?: string | undefined;
404
+ }[] | undefined;
405
+ }, {
406
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
407
+ role: "assistant";
408
+ index: number;
409
+ stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
410
+ toolCalls?: {
411
+ function: {
412
+ name: string;
413
+ arguments: string;
414
+ };
415
+ type: "function";
416
+ id: string;
417
+ }[] | undefined;
418
+ toolResultCallId?: string | undefined;
419
+ content?: string | {
420
+ type: "text" | "image";
421
+ mimeType: string;
422
+ text?: string | undefined;
423
+ url?: string | undefined;
424
+ }[] | undefined;
425
+ }>, "many">;
426
+ usage: import("@bpinternal/zui").ZodObject<{
427
+ inputTokens: import("@bpinternal/zui").ZodNumber;
428
+ inputCost: import("@bpinternal/zui").ZodNumber;
429
+ outputTokens: import("@bpinternal/zui").ZodNumber;
430
+ outputCost: import("@bpinternal/zui").ZodNumber;
431
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
432
+ inputTokens: number;
433
+ inputCost: number;
434
+ outputTokens: number;
435
+ outputCost: number;
436
+ }, {
437
+ inputTokens: number;
438
+ inputCost: number;
439
+ outputTokens: number;
440
+ outputCost: number;
441
+ }>;
442
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
443
+ id: string;
444
+ model: string;
445
+ provider: string;
446
+ choices: {
447
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
448
+ role: "assistant";
449
+ index: number;
450
+ stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
451
+ toolCalls?: {
452
+ function: {
453
+ name: string;
454
+ arguments: string;
455
+ };
456
+ type: "function";
457
+ id: string;
458
+ }[] | undefined;
459
+ toolResultCallId?: string | undefined;
460
+ content?: string | {
461
+ type: "text" | "image";
462
+ mimeType: string;
463
+ text?: string | undefined;
464
+ url?: string | undefined;
465
+ }[] | undefined;
466
+ }[];
467
+ usage: {
468
+ inputTokens: number;
469
+ inputCost: number;
470
+ outputTokens: number;
471
+ outputCost: number;
472
+ };
473
+ }, {
474
+ id: string;
475
+ model: string;
476
+ provider: string;
477
+ choices: {
478
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
479
+ role: "assistant";
480
+ index: number;
481
+ stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
482
+ toolCalls?: {
483
+ function: {
484
+ name: string;
485
+ arguments: string;
486
+ };
487
+ type: "function";
488
+ id: string;
489
+ }[] | undefined;
490
+ toolResultCallId?: string | undefined;
491
+ content?: string | {
492
+ type: "text" | "image";
493
+ mimeType: string;
494
+ text?: string | undefined;
495
+ url?: string | undefined;
496
+ }[] | undefined;
497
+ }[];
498
+ usage: {
499
+ inputTokens: number;
500
+ inputCost: number;
501
+ outputTokens: number;
502
+ outputCost: number;
503
+ };
504
+ }>;
505
+ export declare const llm: InterfaceDeclaration<import("../integration/definition/generic").BaseEntities, {
506
+ generateContent: import("@bpinternal/zui").ZodObject<{
507
+ model: import("@bpinternal/zui").ZodString;
508
+ systemPrompt: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
509
+ messages: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
510
+ role: import("@bpinternal/zui").ZodEnum<["user", "assistant"]>;
511
+ type: import("@bpinternal/zui").ZodEnum<["text", "tool_calls", "tool_result", "multipart"]>;
512
+ toolCalls: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
513
+ id: import("@bpinternal/zui").ZodString;
514
+ type: import("@bpinternal/zui").ZodEnum<["function"]>;
515
+ function: import("@bpinternal/zui").ZodObject<{
516
+ name: import("@bpinternal/zui").ZodString;
517
+ arguments: import("@bpinternal/zui").ZodString;
518
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
519
+ name: string;
520
+ arguments: string;
521
+ }, {
522
+ name: string;
523
+ arguments: string;
524
+ }>;
525
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
526
+ function: {
527
+ name: string;
528
+ arguments: string;
529
+ };
530
+ type: "function";
531
+ id: string;
532
+ }, {
533
+ function: {
534
+ name: string;
535
+ arguments: string;
536
+ };
537
+ type: "function";
538
+ id: string;
539
+ }>, "many">>;
540
+ toolResultCallId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
541
+ content: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodString, import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
542
+ type: import("@bpinternal/zui").ZodEnum<["text", "image"]>;
543
+ mimeType: import("@bpinternal/zui").ZodString;
544
+ text: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
545
+ url: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
546
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
547
+ type: "text" | "image";
548
+ mimeType: string;
549
+ text?: string | undefined;
550
+ url?: string | undefined;
551
+ }, {
552
+ type: "text" | "image";
553
+ mimeType: string;
554
+ text?: string | undefined;
555
+ url?: string | undefined;
556
+ }>, "many">]>>;
557
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
558
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
559
+ role: "user" | "assistant";
560
+ toolCalls?: {
561
+ function: {
562
+ name: string;
563
+ arguments: string;
564
+ };
565
+ type: "function";
566
+ id: string;
567
+ }[] | undefined;
568
+ toolResultCallId?: string | undefined;
569
+ content?: string | {
570
+ type: "text" | "image";
571
+ mimeType: string;
572
+ text?: string | undefined;
573
+ url?: string | undefined;
574
+ }[] | undefined;
575
+ }, {
576
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
577
+ role: "user" | "assistant";
578
+ toolCalls?: {
579
+ function: {
580
+ name: string;
581
+ arguments: string;
582
+ };
583
+ type: "function";
584
+ id: string;
585
+ }[] | undefined;
586
+ toolResultCallId?: string | undefined;
587
+ content?: string | {
588
+ type: "text" | "image";
589
+ mimeType: string;
590
+ text?: string | undefined;
591
+ url?: string | undefined;
592
+ }[] | undefined;
593
+ }>, "many">;
594
+ responseFormat: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodEnum<["text", "json_object"]>>;
595
+ maxTokens: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodNumber>;
596
+ temperature: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>;
597
+ topP: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>;
598
+ stopSequences: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodString, "many">>;
599
+ tools: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
600
+ type: import("@bpinternal/zui").ZodLiteral<"function">;
601
+ function: import("@bpinternal/zui").ZodObject<{
602
+ name: import("@bpinternal/zui").ZodString;
603
+ description: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
604
+ inputSchema: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{}, "passthrough", import("@bpinternal/zui").ZodTypeAny, import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">, import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">>>;
605
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
606
+ name: string;
607
+ description?: string | undefined;
608
+ inputSchema?: import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
609
+ }, {
610
+ name: string;
611
+ description?: string | undefined;
612
+ inputSchema?: import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
613
+ }>;
614
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
615
+ function: {
616
+ name: string;
617
+ description?: string | undefined;
618
+ inputSchema?: import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
619
+ };
620
+ type: "function";
621
+ }, {
622
+ function: {
623
+ name: string;
624
+ description?: string | undefined;
625
+ inputSchema?: import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
626
+ };
627
+ type: "function";
628
+ }>, "many">>;
629
+ toolChoice: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{
630
+ type: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodEnum<["auto", "specific", "any", "none", ""]>>;
631
+ functionName: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
632
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
633
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
634
+ functionName?: string | undefined;
635
+ }, {
636
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
637
+ functionName?: string | undefined;
638
+ }>>;
639
+ userId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
640
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
641
+ model: string;
642
+ messages: {
643
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
644
+ role: "user" | "assistant";
645
+ toolCalls?: {
646
+ function: {
647
+ name: string;
648
+ arguments: string;
649
+ };
650
+ type: "function";
651
+ id: string;
652
+ }[] | undefined;
653
+ toolResultCallId?: string | undefined;
654
+ content?: string | {
655
+ type: "text" | "image";
656
+ mimeType: string;
657
+ text?: string | undefined;
658
+ url?: string | undefined;
659
+ }[] | undefined;
660
+ }[];
661
+ temperature: number;
662
+ topP: number;
663
+ systemPrompt?: string | undefined;
664
+ responseFormat?: "text" | "json_object" | undefined;
665
+ maxTokens?: number | undefined;
666
+ stopSequences?: string[] | undefined;
667
+ tools?: {
668
+ function: {
669
+ name: string;
670
+ description?: string | undefined;
671
+ inputSchema?: import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
672
+ };
673
+ type: "function";
674
+ }[] | undefined;
675
+ toolChoice?: {
676
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
677
+ functionName?: string | undefined;
678
+ } | undefined;
679
+ userId?: string | undefined;
680
+ }, {
681
+ model: string;
682
+ messages: {
683
+ type: "text" | "tool_calls" | "tool_result" | "multipart";
684
+ role: "user" | "assistant";
685
+ toolCalls?: {
686
+ function: {
687
+ name: string;
688
+ arguments: string;
689
+ };
690
+ type: "function";
691
+ id: string;
692
+ }[] | undefined;
693
+ toolResultCallId?: string | undefined;
694
+ content?: string | {
695
+ type: "text" | "image";
696
+ mimeType: string;
697
+ text?: string | undefined;
698
+ url?: string | undefined;
699
+ }[] | undefined;
700
+ }[];
701
+ systemPrompt?: string | undefined;
702
+ responseFormat?: "text" | "json_object" | undefined;
703
+ maxTokens?: number | undefined;
704
+ temperature?: number | undefined;
705
+ topP?: number | undefined;
706
+ stopSequences?: string[] | undefined;
707
+ tools?: {
708
+ function: {
709
+ name: string;
710
+ description?: string | undefined;
711
+ inputSchema?: import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough"> | undefined;
712
+ };
713
+ type: "function";
714
+ }[] | undefined;
715
+ toolChoice?: {
716
+ type?: "" | "auto" | "specific" | "any" | "none" | undefined;
717
+ functionName?: string | undefined;
718
+ } | undefined;
719
+ userId?: string | undefined;
720
+ }>;
721
+ }, import("../integration/definition/generic").BaseEvents>;
722
+ export declare namespace llm {
723
+ type GenerateContentInput = z.infer<typeof GenerateContentInputSchema>;
724
+ type GenerateContentOutput = z.infer<typeof GenerateContentOutputSchema>;
725
+ type ToolCall = z.infer<typeof ToolCallSchema>;
726
+ type Message = z.infer<typeof MessageSchema>;
727
+ }
728
+ export {};