@botpress/sdk 0.8.41 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ type Res<F extends (...args: any[]) => any> = ReturnType<F>;
7
7
  type AllChannels<TIntegration extends BaseIntegration> = ValueOf<TIntegration['channels']>;
8
8
  type ConversationResponse<TIntegration extends BaseIntegration, ChannelName extends keyof TIntegration['channels'] = keyof TIntegration['channels']> = {
9
9
  conversation: Merge<Awaited<Res<Client['getConversation']>>['conversation'], {
10
+ channel: ChannelName;
10
11
  tags: ToTags<keyof TIntegration['channels'][ChannelName]['conversation']['tags']>;
11
12
  }>;
12
13
  };
@@ -41,6 +41,7 @@ type MessagePayload<TIntegration extends BaseIntegration, TChannel extends keyof
41
41
  type: TMessage;
42
42
  payload: TIntegration['channels'][TChannel]['messages'][TMessage];
43
43
  conversation: Merge<Conversation, {
44
+ channel: TChannel;
44
45
  tags: ToTags<keyof TIntegration['channels'][TChannel]['conversation']['tags']>;
45
46
  }>;
46
47
  message: Merge<Message, {
@@ -0,0 +1,57 @@
1
+ import { InterfaceDeclaration } from '../integration';
2
+ export declare const hitl: InterfaceDeclaration<import("../integration/definition/generic").BaseEntities, {
3
+ createUser: import("@bpinternal/zui").ZodObject<{
4
+ name: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
5
+ pictureUrl: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
6
+ email: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
7
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
8
+ name?: string | undefined;
9
+ pictureUrl?: string | undefined;
10
+ email?: string | undefined;
11
+ }, {
12
+ name?: string | undefined;
13
+ pictureUrl?: string | undefined;
14
+ email?: string | undefined;
15
+ }>;
16
+ startHitl: import("@bpinternal/zui").ZodObject<{
17
+ userId: import("@bpinternal/zui").ZodString;
18
+ title: import("@bpinternal/zui").ZodString;
19
+ description: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
20
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
21
+ title: string;
22
+ userId: string;
23
+ description?: string | undefined;
24
+ }, {
25
+ title: string;
26
+ userId: string;
27
+ description?: string | undefined;
28
+ }>;
29
+ stopHitl: import("@bpinternal/zui").ZodObject<{
30
+ conversationId: import("@bpinternal/zui").ZodString;
31
+ reason: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodEnum<["timeout", "cancel"]>>;
32
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
33
+ conversationId: string;
34
+ reason?: "timeout" | "cancel" | undefined;
35
+ }, {
36
+ conversationId: string;
37
+ reason?: "timeout" | "cancel" | undefined;
38
+ }>;
39
+ }, {
40
+ hitlAssigned: import("@bpinternal/zui").ZodObject<{
41
+ conversationId: import("@bpinternal/zui").ZodString;
42
+ userId: import("@bpinternal/zui").ZodString;
43
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
44
+ conversationId: string;
45
+ userId: string;
46
+ }, {
47
+ conversationId: string;
48
+ userId: string;
49
+ }>;
50
+ hitlStopped: import("@bpinternal/zui").ZodObject<{
51
+ conversationId: import("@bpinternal/zui").ZodString;
52
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
53
+ conversationId: string;
54
+ }, {
55
+ conversationId: string;
56
+ }>;
57
+ }>;
@@ -1,5 +1,6 @@
1
+ export * as schemas from './schemas';
2
+ export * from './hitl';
1
3
  export * from './llm';
2
- export * from './text-to-image';
3
4
  export * from './speech-to-text';
4
- export * as schemas from './schemas';
5
5
  export * from './sync';
6
+ export * from './text-to-image';
@@ -79,6 +79,12 @@ declare const MessageSchema: import("@bpinternal/zui").ZodObject<{
79
79
  }, "strip", import("@bpinternal/zui").ZodTypeAny, {
80
80
  type: "text" | "tool_calls" | "tool_result" | "multipart";
81
81
  role: "user" | "assistant";
82
+ content?: string | {
83
+ type: "text" | "image";
84
+ text?: string | undefined;
85
+ url?: string | undefined;
86
+ mimeType?: string | undefined;
87
+ }[] | null | undefined;
82
88
  toolCalls?: {
83
89
  function: {
84
90
  name: string;
@@ -88,15 +94,15 @@ declare const MessageSchema: import("@bpinternal/zui").ZodObject<{
88
94
  id: string;
89
95
  }[] | undefined;
90
96
  toolResultCallId?: string | undefined;
97
+ }, {
98
+ role: "user" | "assistant";
99
+ type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
91
100
  content?: string | {
92
101
  type: "text" | "image";
93
102
  text?: string | undefined;
94
103
  url?: string | undefined;
95
104
  mimeType?: string | undefined;
96
105
  }[] | null | undefined;
97
- }, {
98
- role: "user" | "assistant";
99
- type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
100
106
  toolCalls?: {
101
107
  function: {
102
108
  name: string;
@@ -106,12 +112,6 @@ declare const MessageSchema: import("@bpinternal/zui").ZodObject<{
106
112
  id: string;
107
113
  }[] | undefined;
108
114
  toolResultCallId?: string | undefined;
109
- content?: string | {
110
- type: "text" | "image";
111
- text?: string | undefined;
112
- url?: string | undefined;
113
- mimeType?: string | undefined;
114
- }[] | null | undefined;
115
115
  }>;
116
116
  declare const ModelSchema: import("@bpinternal/zui").ZodObject<{
117
117
  id: import("@bpinternal/zui").ZodString;
@@ -219,6 +219,12 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
219
219
  }, "strip", import("@bpinternal/zui").ZodTypeAny, {
220
220
  type: "text" | "tool_calls" | "tool_result" | "multipart";
221
221
  role: "user" | "assistant";
222
+ content?: string | {
223
+ type: "text" | "image";
224
+ text?: string | undefined;
225
+ url?: string | undefined;
226
+ mimeType?: string | undefined;
227
+ }[] | null | undefined;
222
228
  toolCalls?: {
223
229
  function: {
224
230
  name: string;
@@ -228,15 +234,15 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
228
234
  id: string;
229
235
  }[] | undefined;
230
236
  toolResultCallId?: string | undefined;
237
+ }, {
238
+ role: "user" | "assistant";
239
+ type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
231
240
  content?: string | {
232
241
  type: "text" | "image";
233
242
  text?: string | undefined;
234
243
  url?: string | undefined;
235
244
  mimeType?: string | undefined;
236
245
  }[] | null | undefined;
237
- }, {
238
- role: "user" | "assistant";
239
- type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
240
246
  toolCalls?: {
241
247
  function: {
242
248
  name: string;
@@ -246,12 +252,6 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
246
252
  id: string;
247
253
  }[] | undefined;
248
254
  toolResultCallId?: string | undefined;
249
- content?: string | {
250
- type: "text" | "image";
251
- text?: string | undefined;
252
- url?: string | undefined;
253
- mimeType?: string | undefined;
254
- }[] | null | undefined;
255
255
  }>, "many">;
256
256
  responseFormat: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodEnum<["text", "json_object"]>>;
257
257
  maxTokens: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodNumber>;
@@ -301,9 +301,16 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
301
301
  userId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
302
302
  debug: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodBoolean>;
303
303
  }, "strip", import("@bpinternal/zui").ZodTypeAny, {
304
+ temperature: number;
304
305
  messages: {
305
306
  type: "text" | "tool_calls" | "tool_result" | "multipart";
306
307
  role: "user" | "assistant";
308
+ content?: string | {
309
+ type: "text" | "image";
310
+ text?: string | undefined;
311
+ url?: string | undefined;
312
+ mimeType?: string | undefined;
313
+ }[] | null | undefined;
307
314
  toolCalls?: {
308
315
  function: {
309
316
  name: string;
@@ -313,15 +320,9 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
313
320
  id: string;
314
321
  }[] | undefined;
315
322
  toolResultCallId?: string | undefined;
316
- content?: string | {
317
- type: "text" | "image";
318
- text?: string | undefined;
319
- url?: string | undefined;
320
- mimeType?: string | undefined;
321
- }[] | null | undefined;
322
323
  }[];
323
- temperature: number;
324
324
  topP: number;
325
+ userId?: string | undefined;
325
326
  maxTokens?: number | undefined;
326
327
  model?: {
327
328
  id: string;
@@ -341,12 +342,17 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
341
342
  type?: "" | "auto" | "specific" | "any" | "none" | undefined;
342
343
  functionName?: string | undefined;
343
344
  } | undefined;
344
- userId?: string | undefined;
345
345
  debug?: boolean | undefined;
346
346
  }, {
347
347
  messages: {
348
348
  role: "user" | "assistant";
349
349
  type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
350
+ content?: string | {
351
+ type: "text" | "image";
352
+ text?: string | undefined;
353
+ url?: string | undefined;
354
+ mimeType?: string | undefined;
355
+ }[] | null | undefined;
350
356
  toolCalls?: {
351
357
  function: {
352
358
  name: string;
@@ -356,20 +362,15 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
356
362
  id: string;
357
363
  }[] | undefined;
358
364
  toolResultCallId?: string | undefined;
359
- content?: string | {
360
- type: "text" | "image";
361
- text?: string | undefined;
362
- url?: string | undefined;
363
- mimeType?: string | undefined;
364
- }[] | null | undefined;
365
365
  }[];
366
+ temperature?: number | undefined;
367
+ userId?: string | undefined;
366
368
  maxTokens?: number | undefined;
367
369
  model?: {
368
370
  id: string;
369
371
  } | undefined;
370
372
  systemPrompt?: string | undefined;
371
373
  responseFormat?: "text" | "json_object" | undefined;
372
- temperature?: number | undefined;
373
374
  topP?: number | undefined;
374
375
  stopSequences?: string[] | undefined;
375
376
  tools?: {
@@ -384,7 +385,6 @@ declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObjec
384
385
  type?: "" | "auto" | "specific" | "any" | "none" | undefined;
385
386
  functionName?: string | undefined;
386
387
  } | undefined;
387
- userId?: string | undefined;
388
388
  debug?: boolean | undefined;
389
389
  }>;
390
390
  declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
@@ -393,6 +393,22 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
393
393
  model: import("@bpinternal/zui").ZodString;
394
394
  choices: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
395
395
  type: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodEnum<["text", "tool_calls", "tool_result", "multipart"]>>;
396
+ content: import("@bpinternal/zui").ZodNullable<import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodString, import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
397
+ type: import("@bpinternal/zui").ZodEnum<["text", "image"]>;
398
+ mimeType: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
399
+ text: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
400
+ url: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
401
+ }, "strip", import("@bpinternal/zui").ZodTypeAny, {
402
+ type: "text" | "image";
403
+ text?: string | undefined;
404
+ url?: string | undefined;
405
+ mimeType?: string | undefined;
406
+ }, {
407
+ type: "text" | "image";
408
+ text?: string | undefined;
409
+ url?: string | undefined;
410
+ mimeType?: string | undefined;
411
+ }>, "many">]>>>;
396
412
  toolCalls: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
397
413
  id: import("@bpinternal/zui").ZodString;
398
414
  type: import("@bpinternal/zui").ZodEnum<["function"]>;
@@ -422,30 +438,20 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
422
438
  id: string;
423
439
  }>, "many">>;
424
440
  toolResultCallId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
425
- content: import("@bpinternal/zui").ZodNullable<import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodString, import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
426
- type: import("@bpinternal/zui").ZodEnum<["text", "image"]>;
427
- mimeType: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
428
- text: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
429
- url: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
430
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
431
- type: "text" | "image";
432
- text?: string | undefined;
433
- url?: string | undefined;
434
- mimeType?: string | undefined;
435
- }, {
436
- type: "text" | "image";
437
- text?: string | undefined;
438
- url?: string | undefined;
439
- mimeType?: string | undefined;
440
- }>, "many">]>>>;
441
441
  role: import("@bpinternal/zui").ZodLiteral<"assistant">;
442
442
  index: import("@bpinternal/zui").ZodNumber;
443
443
  stopReason: import("@bpinternal/zui").ZodEnum<["stop", "max_tokens", "tool_calls", "content_filter", "other"]>;
444
444
  }, "strip", import("@bpinternal/zui").ZodTypeAny, {
445
445
  type: "text" | "tool_calls" | "tool_result" | "multipart";
446
- role: "assistant";
447
446
  index: number;
447
+ role: "assistant";
448
448
  stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
449
+ content?: string | {
450
+ type: "text" | "image";
451
+ text?: string | undefined;
452
+ url?: string | undefined;
453
+ mimeType?: string | undefined;
454
+ }[] | null | undefined;
449
455
  toolCalls?: {
450
456
  function: {
451
457
  name: string;
@@ -455,17 +461,17 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
455
461
  id: string;
456
462
  }[] | undefined;
457
463
  toolResultCallId?: string | undefined;
464
+ }, {
465
+ index: number;
466
+ role: "assistant";
467
+ stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
468
+ type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
458
469
  content?: string | {
459
470
  type: "text" | "image";
460
471
  text?: string | undefined;
461
472
  url?: string | undefined;
462
473
  mimeType?: string | undefined;
463
474
  }[] | null | undefined;
464
- }, {
465
- role: "assistant";
466
- index: number;
467
- stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
468
- type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
469
475
  toolCalls?: {
470
476
  function: {
471
477
  name: string;
@@ -475,12 +481,6 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
475
481
  id: string;
476
482
  }[] | undefined;
477
483
  toolResultCallId?: string | undefined;
478
- content?: string | {
479
- type: "text" | "image";
480
- text?: string | undefined;
481
- url?: string | undefined;
482
- mimeType?: string | undefined;
483
- }[] | null | undefined;
484
484
  }>, "many">;
485
485
  usage: import("@bpinternal/zui").ZodObject<{
486
486
  inputTokens: import("@bpinternal/zui").ZodNumber;
@@ -504,9 +504,15 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
504
504
  provider: string;
505
505
  choices: {
506
506
  type: "text" | "tool_calls" | "tool_result" | "multipart";
507
- role: "assistant";
508
507
  index: number;
508
+ role: "assistant";
509
509
  stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
510
+ content?: string | {
511
+ type: "text" | "image";
512
+ text?: string | undefined;
513
+ url?: string | undefined;
514
+ mimeType?: string | undefined;
515
+ }[] | null | undefined;
510
516
  toolCalls?: {
511
517
  function: {
512
518
  name: string;
@@ -516,12 +522,6 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
516
522
  id: string;
517
523
  }[] | undefined;
518
524
  toolResultCallId?: string | undefined;
519
- content?: string | {
520
- type: "text" | "image";
521
- text?: string | undefined;
522
- url?: string | undefined;
523
- mimeType?: string | undefined;
524
- }[] | null | undefined;
525
525
  }[];
526
526
  usage: {
527
527
  inputTokens: number;
@@ -534,10 +534,16 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
534
534
  model: string;
535
535
  provider: string;
536
536
  choices: {
537
- role: "assistant";
538
537
  index: number;
538
+ role: "assistant";
539
539
  stopReason: "tool_calls" | "stop" | "max_tokens" | "content_filter" | "other";
540
540
  type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
541
+ content?: string | {
542
+ type: "text" | "image";
543
+ text?: string | undefined;
544
+ url?: string | undefined;
545
+ mimeType?: string | undefined;
546
+ }[] | null | undefined;
541
547
  toolCalls?: {
542
548
  function: {
543
549
  name: string;
@@ -547,12 +553,6 @@ declare const GenerateContentOutputSchema: import("@bpinternal/zui").ZodObject<{
547
553
  id: string;
548
554
  }[] | undefined;
549
555
  toolResultCallId?: string | undefined;
550
- content?: string | {
551
- type: "text" | "image";
552
- text?: string | undefined;
553
- url?: string | undefined;
554
- mimeType?: string | undefined;
555
- }[] | null | undefined;
556
556
  }[];
557
557
  usage: {
558
558
  inputTokens: number;
@@ -624,6 +624,12 @@ export declare const llm: InterfaceDeclaration<{
624
624
  }, "strip", import("@bpinternal/zui").ZodTypeAny, {
625
625
  type: "text" | "tool_calls" | "tool_result" | "multipart";
626
626
  role: "user" | "assistant";
627
+ content?: string | {
628
+ type: "text" | "image";
629
+ text?: string | undefined;
630
+ url?: string | undefined;
631
+ mimeType?: string | undefined;
632
+ }[] | null | undefined;
627
633
  toolCalls?: {
628
634
  function: {
629
635
  name: string;
@@ -633,15 +639,15 @@ export declare const llm: InterfaceDeclaration<{
633
639
  id: string;
634
640
  }[] | undefined;
635
641
  toolResultCallId?: string | undefined;
642
+ }, {
643
+ role: "user" | "assistant";
644
+ type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
636
645
  content?: string | {
637
646
  type: "text" | "image";
638
647
  text?: string | undefined;
639
648
  url?: string | undefined;
640
649
  mimeType?: string | undefined;
641
650
  }[] | null | undefined;
642
- }, {
643
- role: "user" | "assistant";
644
- type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
645
651
  toolCalls?: {
646
652
  function: {
647
653
  name: string;
@@ -651,12 +657,6 @@ export declare const llm: InterfaceDeclaration<{
651
657
  id: string;
652
658
  }[] | undefined;
653
659
  toolResultCallId?: string | undefined;
654
- content?: string | {
655
- type: "text" | "image";
656
- text?: string | undefined;
657
- url?: string | undefined;
658
- mimeType?: string | undefined;
659
- }[] | null | undefined;
660
660
  }>, "many">;
661
661
  responseFormat: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodEnum<["text", "json_object"]>>;
662
662
  maxTokens: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodNumber>;
@@ -706,9 +706,16 @@ export declare const llm: InterfaceDeclaration<{
706
706
  userId: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
707
707
  debug: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodBoolean>;
708
708
  }, "strip", import("@bpinternal/zui").ZodTypeAny, {
709
+ temperature: number;
709
710
  messages: {
710
711
  type: "text" | "tool_calls" | "tool_result" | "multipart";
711
712
  role: "user" | "assistant";
713
+ content?: string | {
714
+ type: "text" | "image";
715
+ text?: string | undefined;
716
+ url?: string | undefined;
717
+ mimeType?: string | undefined;
718
+ }[] | null | undefined;
712
719
  toolCalls?: {
713
720
  function: {
714
721
  name: string;
@@ -718,15 +725,9 @@ export declare const llm: InterfaceDeclaration<{
718
725
  id: string;
719
726
  }[] | undefined;
720
727
  toolResultCallId?: string | undefined;
721
- content?: string | {
722
- type: "text" | "image";
723
- text?: string | undefined;
724
- url?: string | undefined;
725
- mimeType?: string | undefined;
726
- }[] | null | undefined;
727
728
  }[];
728
- temperature: number;
729
729
  topP: number;
730
+ userId?: string | undefined;
730
731
  maxTokens?: number | undefined;
731
732
  model?: {} | undefined;
732
733
  systemPrompt?: string | undefined;
@@ -744,12 +745,17 @@ export declare const llm: InterfaceDeclaration<{
744
745
  type?: "" | "auto" | "specific" | "any" | "none" | undefined;
745
746
  functionName?: string | undefined;
746
747
  } | undefined;
747
- userId?: string | undefined;
748
748
  debug?: boolean | undefined;
749
749
  }, {
750
750
  messages: {
751
751
  role: "user" | "assistant";
752
752
  type?: "text" | "tool_calls" | "tool_result" | "multipart" | undefined;
753
+ content?: string | {
754
+ type: "text" | "image";
755
+ text?: string | undefined;
756
+ url?: string | undefined;
757
+ mimeType?: string | undefined;
758
+ }[] | null | undefined;
753
759
  toolCalls?: {
754
760
  function: {
755
761
  name: string;
@@ -759,18 +765,13 @@ export declare const llm: InterfaceDeclaration<{
759
765
  id: string;
760
766
  }[] | undefined;
761
767
  toolResultCallId?: string | undefined;
762
- content?: string | {
763
- type: "text" | "image";
764
- text?: string | undefined;
765
- url?: string | undefined;
766
- mimeType?: string | undefined;
767
- }[] | null | undefined;
768
768
  }[];
769
+ temperature?: number | undefined;
770
+ userId?: string | undefined;
769
771
  maxTokens?: number | undefined;
770
772
  model?: {} | undefined;
771
773
  systemPrompt?: string | undefined;
772
774
  responseFormat?: "text" | "json_object" | undefined;
773
- temperature?: number | undefined;
774
775
  topP?: number | undefined;
775
776
  stopSequences?: string[] | undefined;
776
777
  tools?: {
@@ -785,7 +786,6 @@ export declare const llm: InterfaceDeclaration<{
785
786
  type?: "" | "auto" | "specific" | "any" | "none" | undefined;
786
787
  functionName?: string | undefined;
787
788
  } | undefined;
788
- userId?: string | undefined;
789
789
  debug?: boolean | undefined;
790
790
  }>;
791
791
  listLanguageModels: import("@bpinternal/zui").ZodObject<{}, "strip", import("@bpinternal/zui").ZodTypeAny, {}, {}>;
@@ -15,22 +15,22 @@ export declare const OpenAITranscribeAudioOutputSchema: import("@bpinternal/zui"
15
15
  }, "strip", import("@bpinternal/zui").ZodTypeAny, {
16
16
  text: string;
17
17
  id: number;
18
- temperature: number;
19
18
  seek: number;
20
19
  start: number;
21
20
  end: number;
22
21
  tokens: number[];
22
+ temperature: number;
23
23
  avg_logprob: number;
24
24
  compression_ratio: number;
25
25
  no_speech_prob: number;
26
26
  }, {
27
27
  text: string;
28
28
  id: number;
29
- temperature: number;
30
29
  seek: number;
31
30
  start: number;
32
31
  end: number;
33
32
  tokens: number[];
33
+ temperature: number;
34
34
  avg_logprob: number;
35
35
  compression_ratio: number;
36
36
  no_speech_prob: number;
@@ -41,11 +41,11 @@ export declare const OpenAITranscribeAudioOutputSchema: import("@bpinternal/zui"
41
41
  segments: {
42
42
  text: string;
43
43
  id: number;
44
- temperature: number;
45
44
  seek: number;
46
45
  start: number;
47
46
  end: number;
48
47
  tokens: number[];
48
+ temperature: number;
49
49
  avg_logprob: number;
50
50
  compression_ratio: number;
51
51
  no_speech_prob: number;
@@ -56,11 +56,11 @@ export declare const OpenAITranscribeAudioOutputSchema: import("@bpinternal/zui"
56
56
  segments: {
57
57
  text: string;
58
58
  id: number;
59
- temperature: number;
60
59
  seek: number;
61
60
  start: number;
62
61
  end: number;
63
62
  tokens: number[];
63
+ temperature: number;
64
64
  avg_logprob: number;
65
65
  compression_ratio: number;
66
66
  no_speech_prob: number;