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