@glueco/plugin-llm-groq 0.1.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.
@@ -0,0 +1,804 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const ChatMessageSchema: z.ZodObject<{
4
+ role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
5
+ content: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
6
+ type: z.ZodString;
7
+ text: z.ZodOptional<z.ZodString>;
8
+ image_url: z.ZodOptional<z.ZodObject<{
9
+ url: z.ZodString;
10
+ detail: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ url: string;
13
+ detail?: string | undefined;
14
+ }, {
15
+ url: string;
16
+ detail?: string | undefined;
17
+ }>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ type: string;
20
+ text?: string | undefined;
21
+ image_url?: {
22
+ url: string;
23
+ detail?: string | undefined;
24
+ } | undefined;
25
+ }, {
26
+ type: string;
27
+ text?: string | undefined;
28
+ image_url?: {
29
+ url: string;
30
+ detail?: string | undefined;
31
+ } | undefined;
32
+ }>, "many">]>>;
33
+ name: z.ZodOptional<z.ZodString>;
34
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ id: z.ZodString;
36
+ type: z.ZodLiteral<"function">;
37
+ function: z.ZodObject<{
38
+ name: z.ZodString;
39
+ arguments: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ name: string;
42
+ arguments: string;
43
+ }, {
44
+ name: string;
45
+ arguments: string;
46
+ }>;
47
+ }, "strip", z.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
+ tool_call_id: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ role: "system" | "user" | "assistant" | "tool";
65
+ content: string | {
66
+ type: string;
67
+ text?: string | undefined;
68
+ image_url?: {
69
+ url: string;
70
+ detail?: string | undefined;
71
+ } | undefined;
72
+ }[] | null;
73
+ name?: string | undefined;
74
+ tool_calls?: {
75
+ function: {
76
+ name: string;
77
+ arguments: string;
78
+ };
79
+ type: "function";
80
+ id: string;
81
+ }[] | undefined;
82
+ tool_call_id?: string | undefined;
83
+ }, {
84
+ role: "system" | "user" | "assistant" | "tool";
85
+ content: string | {
86
+ type: string;
87
+ text?: string | undefined;
88
+ image_url?: {
89
+ url: string;
90
+ detail?: string | undefined;
91
+ } | undefined;
92
+ }[] | null;
93
+ name?: string | undefined;
94
+ tool_calls?: {
95
+ function: {
96
+ name: string;
97
+ arguments: string;
98
+ };
99
+ type: "function";
100
+ id: string;
101
+ }[] | undefined;
102
+ tool_call_id?: string | undefined;
103
+ }>;
104
+ type ChatMessage = z.infer<typeof ChatMessageSchema>;
105
+ declare const ChatCompletionRequestSchema: z.ZodObject<{
106
+ model: z.ZodString;
107
+ messages: z.ZodArray<z.ZodObject<{
108
+ role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
109
+ content: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
110
+ type: z.ZodString;
111
+ text: z.ZodOptional<z.ZodString>;
112
+ image_url: z.ZodOptional<z.ZodObject<{
113
+ url: z.ZodString;
114
+ detail: z.ZodOptional<z.ZodString>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ url: string;
117
+ detail?: string | undefined;
118
+ }, {
119
+ url: string;
120
+ detail?: string | undefined;
121
+ }>>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: string;
124
+ text?: string | undefined;
125
+ image_url?: {
126
+ url: string;
127
+ detail?: string | undefined;
128
+ } | undefined;
129
+ }, {
130
+ type: string;
131
+ text?: string | undefined;
132
+ image_url?: {
133
+ url: string;
134
+ detail?: string | undefined;
135
+ } | undefined;
136
+ }>, "many">]>>;
137
+ name: z.ZodOptional<z.ZodString>;
138
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
+ id: z.ZodString;
140
+ type: z.ZodLiteral<"function">;
141
+ function: z.ZodObject<{
142
+ name: z.ZodString;
143
+ arguments: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ name: string;
146
+ arguments: string;
147
+ }, {
148
+ name: string;
149
+ arguments: string;
150
+ }>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ function: {
153
+ name: string;
154
+ arguments: string;
155
+ };
156
+ type: "function";
157
+ id: string;
158
+ }, {
159
+ function: {
160
+ name: string;
161
+ arguments: string;
162
+ };
163
+ type: "function";
164
+ id: string;
165
+ }>, "many">>;
166
+ tool_call_id: z.ZodOptional<z.ZodString>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ role: "system" | "user" | "assistant" | "tool";
169
+ content: string | {
170
+ type: string;
171
+ text?: string | undefined;
172
+ image_url?: {
173
+ url: string;
174
+ detail?: string | undefined;
175
+ } | undefined;
176
+ }[] | null;
177
+ name?: string | undefined;
178
+ tool_calls?: {
179
+ function: {
180
+ name: string;
181
+ arguments: string;
182
+ };
183
+ type: "function";
184
+ id: string;
185
+ }[] | undefined;
186
+ tool_call_id?: string | undefined;
187
+ }, {
188
+ role: "system" | "user" | "assistant" | "tool";
189
+ content: string | {
190
+ type: string;
191
+ text?: string | undefined;
192
+ image_url?: {
193
+ url: string;
194
+ detail?: string | undefined;
195
+ } | undefined;
196
+ }[] | null;
197
+ name?: string | undefined;
198
+ tool_calls?: {
199
+ function: {
200
+ name: string;
201
+ arguments: string;
202
+ };
203
+ type: "function";
204
+ id: string;
205
+ }[] | undefined;
206
+ tool_call_id?: string | undefined;
207
+ }>, "many">;
208
+ temperature: z.ZodOptional<z.ZodNumber>;
209
+ top_p: z.ZodOptional<z.ZodNumber>;
210
+ n: z.ZodOptional<z.ZodNumber>;
211
+ stream: z.ZodOptional<z.ZodBoolean>;
212
+ stop: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
213
+ max_tokens: z.ZodOptional<z.ZodNumber>;
214
+ max_completion_tokens: z.ZodOptional<z.ZodNumber>;
215
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
216
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
217
+ logit_bias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
218
+ user: z.ZodOptional<z.ZodString>;
219
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
+ type: z.ZodLiteral<"function">;
221
+ function: z.ZodObject<{
222
+ name: z.ZodString;
223
+ description: z.ZodOptional<z.ZodString>;
224
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ name: string;
227
+ description?: string | undefined;
228
+ parameters?: Record<string, unknown> | undefined;
229
+ }, {
230
+ name: string;
231
+ description?: string | undefined;
232
+ parameters?: Record<string, unknown> | undefined;
233
+ }>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ function: {
236
+ name: string;
237
+ description?: string | undefined;
238
+ parameters?: Record<string, unknown> | undefined;
239
+ };
240
+ type: "function";
241
+ }, {
242
+ function: {
243
+ name: string;
244
+ description?: string | undefined;
245
+ parameters?: Record<string, unknown> | undefined;
246
+ };
247
+ type: "function";
248
+ }>, "many">>;
249
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"auto">, z.ZodLiteral<"required">, z.ZodObject<{
250
+ type: z.ZodLiteral<"function">;
251
+ function: z.ZodObject<{
252
+ name: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ name: string;
255
+ }, {
256
+ name: string;
257
+ }>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ function: {
260
+ name: string;
261
+ };
262
+ type: "function";
263
+ }, {
264
+ function: {
265
+ name: string;
266
+ };
267
+ type: "function";
268
+ }>]>>;
269
+ response_format: z.ZodOptional<z.ZodObject<{
270
+ type: z.ZodEnum<["text", "json_object"]>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ type: "text" | "json_object";
273
+ }, {
274
+ type: "text" | "json_object";
275
+ }>>;
276
+ seed: z.ZodOptional<z.ZodNumber>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ model: string;
279
+ messages: {
280
+ role: "system" | "user" | "assistant" | "tool";
281
+ content: string | {
282
+ type: string;
283
+ text?: string | undefined;
284
+ image_url?: {
285
+ url: string;
286
+ detail?: string | undefined;
287
+ } | undefined;
288
+ }[] | null;
289
+ name?: string | undefined;
290
+ tool_calls?: {
291
+ function: {
292
+ name: string;
293
+ arguments: string;
294
+ };
295
+ type: "function";
296
+ id: string;
297
+ }[] | undefined;
298
+ tool_call_id?: string | undefined;
299
+ }[];
300
+ user?: string | undefined;
301
+ temperature?: number | undefined;
302
+ top_p?: number | undefined;
303
+ n?: number | undefined;
304
+ stream?: boolean | undefined;
305
+ stop?: string | string[] | undefined;
306
+ max_tokens?: number | undefined;
307
+ max_completion_tokens?: number | undefined;
308
+ presence_penalty?: number | undefined;
309
+ frequency_penalty?: number | undefined;
310
+ logit_bias?: Record<string, number> | undefined;
311
+ tools?: {
312
+ function: {
313
+ name: string;
314
+ description?: string | undefined;
315
+ parameters?: Record<string, unknown> | undefined;
316
+ };
317
+ type: "function";
318
+ }[] | undefined;
319
+ tool_choice?: "none" | "auto" | "required" | {
320
+ function: {
321
+ name: string;
322
+ };
323
+ type: "function";
324
+ } | undefined;
325
+ response_format?: {
326
+ type: "text" | "json_object";
327
+ } | undefined;
328
+ seed?: number | undefined;
329
+ }, {
330
+ model: string;
331
+ messages: {
332
+ role: "system" | "user" | "assistant" | "tool";
333
+ content: string | {
334
+ type: string;
335
+ text?: string | undefined;
336
+ image_url?: {
337
+ url: string;
338
+ detail?: string | undefined;
339
+ } | undefined;
340
+ }[] | null;
341
+ name?: string | undefined;
342
+ tool_calls?: {
343
+ function: {
344
+ name: string;
345
+ arguments: string;
346
+ };
347
+ type: "function";
348
+ id: string;
349
+ }[] | undefined;
350
+ tool_call_id?: string | undefined;
351
+ }[];
352
+ user?: string | undefined;
353
+ temperature?: number | undefined;
354
+ top_p?: number | undefined;
355
+ n?: number | undefined;
356
+ stream?: boolean | undefined;
357
+ stop?: string | string[] | undefined;
358
+ max_tokens?: number | undefined;
359
+ max_completion_tokens?: number | undefined;
360
+ presence_penalty?: number | undefined;
361
+ frequency_penalty?: number | undefined;
362
+ logit_bias?: Record<string, number> | undefined;
363
+ tools?: {
364
+ function: {
365
+ name: string;
366
+ description?: string | undefined;
367
+ parameters?: Record<string, unknown> | undefined;
368
+ };
369
+ type: "function";
370
+ }[] | undefined;
371
+ tool_choice?: "none" | "auto" | "required" | {
372
+ function: {
373
+ name: string;
374
+ };
375
+ type: "function";
376
+ } | undefined;
377
+ response_format?: {
378
+ type: "text" | "json_object";
379
+ } | undefined;
380
+ seed?: number | undefined;
381
+ }>;
382
+ type ChatCompletionRequest = z.infer<typeof ChatCompletionRequestSchema>;
383
+ declare const ChatCompletionChoiceSchema: z.ZodObject<{
384
+ index: z.ZodNumber;
385
+ message: z.ZodObject<{
386
+ role: z.ZodLiteral<"assistant">;
387
+ content: z.ZodNullable<z.ZodString>;
388
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
389
+ id: z.ZodString;
390
+ type: z.ZodLiteral<"function">;
391
+ function: z.ZodObject<{
392
+ name: z.ZodString;
393
+ arguments: z.ZodString;
394
+ }, "strip", z.ZodTypeAny, {
395
+ name: string;
396
+ arguments: string;
397
+ }, {
398
+ name: string;
399
+ arguments: string;
400
+ }>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ function: {
403
+ name: string;
404
+ arguments: string;
405
+ };
406
+ type: "function";
407
+ id: string;
408
+ }, {
409
+ function: {
410
+ name: string;
411
+ arguments: string;
412
+ };
413
+ type: "function";
414
+ id: string;
415
+ }>, "many">>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ role: "assistant";
418
+ content: string | null;
419
+ tool_calls?: {
420
+ function: {
421
+ name: string;
422
+ arguments: string;
423
+ };
424
+ type: "function";
425
+ id: string;
426
+ }[] | undefined;
427
+ }, {
428
+ role: "assistant";
429
+ content: string | null;
430
+ tool_calls?: {
431
+ function: {
432
+ name: string;
433
+ arguments: string;
434
+ };
435
+ type: "function";
436
+ id: string;
437
+ }[] | undefined;
438
+ }>;
439
+ finish_reason: z.ZodNullable<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ message: {
442
+ role: "assistant";
443
+ content: string | null;
444
+ tool_calls?: {
445
+ function: {
446
+ name: string;
447
+ arguments: string;
448
+ };
449
+ type: "function";
450
+ id: string;
451
+ }[] | undefined;
452
+ };
453
+ index: number;
454
+ finish_reason: string | null;
455
+ }, {
456
+ message: {
457
+ role: "assistant";
458
+ content: string | null;
459
+ tool_calls?: {
460
+ function: {
461
+ name: string;
462
+ arguments: string;
463
+ };
464
+ type: "function";
465
+ id: string;
466
+ }[] | undefined;
467
+ };
468
+ index: number;
469
+ finish_reason: string | null;
470
+ }>;
471
+ type ChatCompletionChoice = z.infer<typeof ChatCompletionChoiceSchema>;
472
+ declare const UsageSchema: z.ZodObject<{
473
+ prompt_tokens: z.ZodNumber;
474
+ completion_tokens: z.ZodNumber;
475
+ total_tokens: z.ZodNumber;
476
+ }, "strip", z.ZodTypeAny, {
477
+ prompt_tokens: number;
478
+ completion_tokens: number;
479
+ total_tokens: number;
480
+ }, {
481
+ prompt_tokens: number;
482
+ completion_tokens: number;
483
+ total_tokens: number;
484
+ }>;
485
+ type Usage = z.infer<typeof UsageSchema>;
486
+ declare const ChatCompletionResponseSchema: z.ZodObject<{
487
+ id: z.ZodString;
488
+ object: z.ZodLiteral<"chat.completion">;
489
+ created: z.ZodNumber;
490
+ model: z.ZodString;
491
+ choices: z.ZodArray<z.ZodObject<{
492
+ index: z.ZodNumber;
493
+ message: z.ZodObject<{
494
+ role: z.ZodLiteral<"assistant">;
495
+ content: z.ZodNullable<z.ZodString>;
496
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
497
+ id: z.ZodString;
498
+ type: z.ZodLiteral<"function">;
499
+ function: z.ZodObject<{
500
+ name: z.ZodString;
501
+ arguments: z.ZodString;
502
+ }, "strip", z.ZodTypeAny, {
503
+ name: string;
504
+ arguments: string;
505
+ }, {
506
+ name: string;
507
+ arguments: string;
508
+ }>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ function: {
511
+ name: string;
512
+ arguments: string;
513
+ };
514
+ type: "function";
515
+ id: string;
516
+ }, {
517
+ function: {
518
+ name: string;
519
+ arguments: string;
520
+ };
521
+ type: "function";
522
+ id: string;
523
+ }>, "many">>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ role: "assistant";
526
+ content: string | null;
527
+ tool_calls?: {
528
+ function: {
529
+ name: string;
530
+ arguments: string;
531
+ };
532
+ type: "function";
533
+ id: string;
534
+ }[] | undefined;
535
+ }, {
536
+ role: "assistant";
537
+ content: string | null;
538
+ tool_calls?: {
539
+ function: {
540
+ name: string;
541
+ arguments: string;
542
+ };
543
+ type: "function";
544
+ id: string;
545
+ }[] | undefined;
546
+ }>;
547
+ finish_reason: z.ZodNullable<z.ZodString>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ message: {
550
+ role: "assistant";
551
+ content: string | null;
552
+ tool_calls?: {
553
+ function: {
554
+ name: string;
555
+ arguments: string;
556
+ };
557
+ type: "function";
558
+ id: string;
559
+ }[] | undefined;
560
+ };
561
+ index: number;
562
+ finish_reason: string | null;
563
+ }, {
564
+ message: {
565
+ role: "assistant";
566
+ content: string | null;
567
+ tool_calls?: {
568
+ function: {
569
+ name: string;
570
+ arguments: string;
571
+ };
572
+ type: "function";
573
+ id: string;
574
+ }[] | undefined;
575
+ };
576
+ index: number;
577
+ finish_reason: string | null;
578
+ }>, "many">;
579
+ usage: z.ZodOptional<z.ZodObject<{
580
+ prompt_tokens: z.ZodNumber;
581
+ completion_tokens: z.ZodNumber;
582
+ total_tokens: z.ZodNumber;
583
+ }, "strip", z.ZodTypeAny, {
584
+ prompt_tokens: number;
585
+ completion_tokens: number;
586
+ total_tokens: number;
587
+ }, {
588
+ prompt_tokens: number;
589
+ completion_tokens: number;
590
+ total_tokens: number;
591
+ }>>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ object: "chat.completion";
594
+ id: string;
595
+ model: string;
596
+ created: number;
597
+ choices: {
598
+ message: {
599
+ role: "assistant";
600
+ content: string | null;
601
+ tool_calls?: {
602
+ function: {
603
+ name: string;
604
+ arguments: string;
605
+ };
606
+ type: "function";
607
+ id: string;
608
+ }[] | undefined;
609
+ };
610
+ index: number;
611
+ finish_reason: string | null;
612
+ }[];
613
+ usage?: {
614
+ prompt_tokens: number;
615
+ completion_tokens: number;
616
+ total_tokens: number;
617
+ } | undefined;
618
+ }, {
619
+ object: "chat.completion";
620
+ id: string;
621
+ model: string;
622
+ created: number;
623
+ choices: {
624
+ message: {
625
+ role: "assistant";
626
+ content: string | null;
627
+ tool_calls?: {
628
+ function: {
629
+ name: string;
630
+ arguments: string;
631
+ };
632
+ type: "function";
633
+ id: string;
634
+ }[] | undefined;
635
+ };
636
+ index: number;
637
+ finish_reason: string | null;
638
+ }[];
639
+ usage?: {
640
+ prompt_tokens: number;
641
+ completion_tokens: number;
642
+ total_tokens: number;
643
+ } | undefined;
644
+ }>;
645
+ type ChatCompletionResponse = z.infer<typeof ChatCompletionResponseSchema>;
646
+ declare const ChatCompletionChunkSchema: z.ZodObject<{
647
+ id: z.ZodString;
648
+ object: z.ZodLiteral<"chat.completion.chunk">;
649
+ created: z.ZodNumber;
650
+ model: z.ZodString;
651
+ choices: z.ZodArray<z.ZodObject<{
652
+ index: z.ZodNumber;
653
+ delta: z.ZodObject<{
654
+ role: z.ZodOptional<z.ZodString>;
655
+ content: z.ZodOptional<z.ZodString>;
656
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
657
+ index: z.ZodNumber;
658
+ id: z.ZodOptional<z.ZodString>;
659
+ type: z.ZodOptional<z.ZodLiteral<"function">>;
660
+ function: z.ZodOptional<z.ZodObject<{
661
+ name: z.ZodOptional<z.ZodString>;
662
+ arguments: z.ZodOptional<z.ZodString>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ name?: string | undefined;
665
+ arguments?: string | undefined;
666
+ }, {
667
+ name?: string | undefined;
668
+ arguments?: string | undefined;
669
+ }>>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ index: number;
672
+ function?: {
673
+ name?: string | undefined;
674
+ arguments?: string | undefined;
675
+ } | undefined;
676
+ type?: "function" | undefined;
677
+ id?: string | undefined;
678
+ }, {
679
+ index: number;
680
+ function?: {
681
+ name?: string | undefined;
682
+ arguments?: string | undefined;
683
+ } | undefined;
684
+ type?: "function" | undefined;
685
+ id?: string | undefined;
686
+ }>, "many">>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ role?: string | undefined;
689
+ content?: string | undefined;
690
+ tool_calls?: {
691
+ index: number;
692
+ function?: {
693
+ name?: string | undefined;
694
+ arguments?: string | undefined;
695
+ } | undefined;
696
+ type?: "function" | undefined;
697
+ id?: string | undefined;
698
+ }[] | undefined;
699
+ }, {
700
+ role?: string | undefined;
701
+ content?: string | undefined;
702
+ tool_calls?: {
703
+ index: number;
704
+ function?: {
705
+ name?: string | undefined;
706
+ arguments?: string | undefined;
707
+ } | undefined;
708
+ type?: "function" | undefined;
709
+ id?: string | undefined;
710
+ }[] | undefined;
711
+ }>;
712
+ finish_reason: z.ZodNullable<z.ZodString>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ index: number;
715
+ finish_reason: string | null;
716
+ delta: {
717
+ role?: string | undefined;
718
+ content?: string | undefined;
719
+ tool_calls?: {
720
+ index: number;
721
+ function?: {
722
+ name?: string | undefined;
723
+ arguments?: string | undefined;
724
+ } | undefined;
725
+ type?: "function" | undefined;
726
+ id?: string | undefined;
727
+ }[] | undefined;
728
+ };
729
+ }, {
730
+ index: number;
731
+ finish_reason: string | null;
732
+ delta: {
733
+ role?: string | undefined;
734
+ content?: string | undefined;
735
+ tool_calls?: {
736
+ index: number;
737
+ function?: {
738
+ name?: string | undefined;
739
+ arguments?: string | undefined;
740
+ } | undefined;
741
+ type?: "function" | undefined;
742
+ id?: string | undefined;
743
+ }[] | undefined;
744
+ };
745
+ }>, "many">;
746
+ }, "strip", z.ZodTypeAny, {
747
+ object: "chat.completion.chunk";
748
+ id: string;
749
+ model: string;
750
+ created: number;
751
+ choices: {
752
+ index: number;
753
+ finish_reason: string | null;
754
+ delta: {
755
+ role?: string | undefined;
756
+ content?: string | undefined;
757
+ tool_calls?: {
758
+ index: number;
759
+ function?: {
760
+ name?: string | undefined;
761
+ arguments?: string | undefined;
762
+ } | undefined;
763
+ type?: "function" | undefined;
764
+ id?: string | undefined;
765
+ }[] | undefined;
766
+ };
767
+ }[];
768
+ }, {
769
+ object: "chat.completion.chunk";
770
+ id: string;
771
+ model: string;
772
+ created: number;
773
+ choices: {
774
+ index: number;
775
+ finish_reason: string | null;
776
+ delta: {
777
+ role?: string | undefined;
778
+ content?: string | undefined;
779
+ tool_calls?: {
780
+ index: number;
781
+ function?: {
782
+ name?: string | undefined;
783
+ arguments?: string | undefined;
784
+ } | undefined;
785
+ type?: "function" | undefined;
786
+ id?: string | undefined;
787
+ }[] | undefined;
788
+ };
789
+ }[];
790
+ }>;
791
+ type ChatCompletionChunk = z.infer<typeof ChatCompletionChunkSchema>;
792
+ declare const PLUGIN_ID: "llm:groq";
793
+ declare const RESOURCE_TYPE: "llm";
794
+ declare const PROVIDER: "groq";
795
+ declare const VERSION = "1.0.0";
796
+ /** Default allowed models */
797
+ declare const DEFAULT_GROQ_MODELS: readonly ["llama-3.3-70b-versatile", "llama-3.1-70b-versatile", "llama-3.1-8b-instant", "llama3-70b-8192", "llama3-8b-8192", "mixtral-8x7b-32768", "gemma2-9b-it"];
798
+ /** Supported actions */
799
+ declare const ACTIONS: readonly ["chat.completions"];
800
+ type GroqAction = (typeof ACTIONS)[number];
801
+ /** Enforcement knobs */
802
+ declare const ENFORCEMENT_SUPPORT: readonly ["model", "max_tokens", "streaming"];
803
+
804
+ export { ACTIONS, type ChatCompletionChoice, ChatCompletionChoiceSchema, type ChatCompletionChunk, ChatCompletionChunkSchema, type ChatCompletionRequest, ChatCompletionRequestSchema, type ChatCompletionResponse, ChatCompletionResponseSchema, type ChatMessage, ChatMessageSchema, DEFAULT_GROQ_MODELS, ENFORCEMENT_SUPPORT, type GroqAction, PLUGIN_ID, PROVIDER, RESOURCE_TYPE, type Usage, UsageSchema, VERSION };