@syntheticlab/synbad 0.0.7 → 0.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntheticlab/synbad",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "LLM inference provider evals",
5
5
  "main": "dist/source/index.js",
6
6
  "bin": {
@@ -10,8 +10,8 @@
10
10
  "type": "module",
11
11
  "scripts": {
12
12
  "test": "vitest",
13
- "build": "tsc",
14
- "prepublishOnly": "tsc"
13
+ "build": "rm -rf dist && tsc",
14
+ "prepublishOnly": "rm -rf dist/ && tsc"
15
15
  },
16
16
  "author": "@reissbaker",
17
17
  "license": "MIT",
@@ -1,679 +0,0 @@
1
- import { ChatMessage } from "../../source/chat-completion.ts";
2
- export declare function test(message: ChatMessage): void;
3
- export declare const json: {
4
- messages: ({
5
- role: string;
6
- content: string;
7
- tool_calls?: undefined;
8
- tool_call_id?: undefined;
9
- } | {
10
- role: string;
11
- content: {
12
- type: string;
13
- text: string;
14
- }[];
15
- tool_calls?: undefined;
16
- tool_call_id?: undefined;
17
- } | {
18
- role: string;
19
- content: string;
20
- tool_calls: {
21
- id: string;
22
- type: string;
23
- function: {
24
- name: string;
25
- arguments: string;
26
- };
27
- index: number;
28
- }[];
29
- tool_call_id?: undefined;
30
- } | {
31
- role: string;
32
- content: string;
33
- tool_call_id: string;
34
- tool_calls?: undefined;
35
- })[];
36
- model: string;
37
- max_tokens: number;
38
- stream: boolean;
39
- stream_options: {
40
- include_usage: boolean;
41
- };
42
- tools: ({
43
- type: string;
44
- function: {
45
- name: string;
46
- description: string;
47
- parameters: {
48
- $schema: string;
49
- type: string;
50
- properties: {
51
- questions: {
52
- description: string;
53
- type: string;
54
- items: {
55
- type: string;
56
- properties: {
57
- question: {
58
- description: string;
59
- type: string;
60
- };
61
- header: {
62
- description: string;
63
- type: string;
64
- maxLength: number;
65
- };
66
- options: {
67
- description: string;
68
- type: string;
69
- items: {
70
- ref: string;
71
- type: string;
72
- properties: {
73
- label: {
74
- description: string;
75
- type: string;
76
- };
77
- description: {
78
- description: string;
79
- type: string;
80
- };
81
- };
82
- required: string[];
83
- additionalProperties: boolean;
84
- };
85
- };
86
- multiple: {
87
- description: string;
88
- type: string;
89
- };
90
- };
91
- required: string[];
92
- additionalProperties: boolean;
93
- };
94
- };
95
- command?: undefined;
96
- timeout?: undefined;
97
- workdir?: undefined;
98
- description?: undefined;
99
- filePath?: undefined;
100
- offset?: undefined;
101
- limit?: undefined;
102
- pattern?: undefined;
103
- path?: undefined;
104
- include?: undefined;
105
- oldString?: undefined;
106
- newString?: undefined;
107
- replaceAll?: undefined;
108
- content?: undefined;
109
- prompt?: undefined;
110
- subagent_type?: undefined;
111
- session_id?: undefined;
112
- url?: undefined;
113
- format?: undefined;
114
- todos?: undefined;
115
- name?: undefined;
116
- query?: undefined;
117
- };
118
- required: string[];
119
- additionalProperties: boolean;
120
- };
121
- };
122
- } | {
123
- type: string;
124
- function: {
125
- name: string;
126
- description: string;
127
- parameters: {
128
- $schema: string;
129
- type: string;
130
- properties: {
131
- command: {
132
- description: string;
133
- type: string;
134
- };
135
- timeout: {
136
- description: string;
137
- type: string;
138
- };
139
- workdir: {
140
- description: string;
141
- type: string;
142
- };
143
- description: {
144
- description: string;
145
- type: string;
146
- };
147
- questions?: undefined;
148
- filePath?: undefined;
149
- offset?: undefined;
150
- limit?: undefined;
151
- pattern?: undefined;
152
- path?: undefined;
153
- include?: undefined;
154
- oldString?: undefined;
155
- newString?: undefined;
156
- replaceAll?: undefined;
157
- content?: undefined;
158
- prompt?: undefined;
159
- subagent_type?: undefined;
160
- session_id?: undefined;
161
- url?: undefined;
162
- format?: undefined;
163
- todos?: undefined;
164
- name?: undefined;
165
- query?: undefined;
166
- };
167
- required: string[];
168
- additionalProperties: boolean;
169
- };
170
- };
171
- } | {
172
- type: string;
173
- function: {
174
- name: string;
175
- description: string;
176
- parameters: {
177
- $schema: string;
178
- type: string;
179
- properties: {
180
- filePath: {
181
- description: string;
182
- type: string;
183
- };
184
- offset: {
185
- description: string;
186
- type: string;
187
- };
188
- limit: {
189
- description: string;
190
- type: string;
191
- };
192
- questions?: undefined;
193
- command?: undefined;
194
- timeout?: undefined;
195
- workdir?: undefined;
196
- description?: undefined;
197
- pattern?: undefined;
198
- path?: undefined;
199
- include?: undefined;
200
- oldString?: undefined;
201
- newString?: undefined;
202
- replaceAll?: undefined;
203
- content?: undefined;
204
- prompt?: undefined;
205
- subagent_type?: undefined;
206
- session_id?: undefined;
207
- url?: undefined;
208
- format?: undefined;
209
- todos?: undefined;
210
- name?: undefined;
211
- query?: undefined;
212
- };
213
- required: string[];
214
- additionalProperties: boolean;
215
- };
216
- };
217
- } | {
218
- type: string;
219
- function: {
220
- name: string;
221
- description: string;
222
- parameters: {
223
- $schema: string;
224
- type: string;
225
- properties: {
226
- pattern: {
227
- description: string;
228
- type: string;
229
- };
230
- path: {
231
- description: string;
232
- type: string;
233
- };
234
- questions?: undefined;
235
- command?: undefined;
236
- timeout?: undefined;
237
- workdir?: undefined;
238
- description?: undefined;
239
- filePath?: undefined;
240
- offset?: undefined;
241
- limit?: undefined;
242
- include?: undefined;
243
- oldString?: undefined;
244
- newString?: undefined;
245
- replaceAll?: undefined;
246
- content?: undefined;
247
- prompt?: undefined;
248
- subagent_type?: undefined;
249
- session_id?: undefined;
250
- url?: undefined;
251
- format?: undefined;
252
- todos?: undefined;
253
- name?: undefined;
254
- query?: undefined;
255
- };
256
- required: string[];
257
- additionalProperties: boolean;
258
- };
259
- };
260
- } | {
261
- type: string;
262
- function: {
263
- name: string;
264
- description: string;
265
- parameters: {
266
- $schema: string;
267
- type: string;
268
- properties: {
269
- pattern: {
270
- description: string;
271
- type: string;
272
- };
273
- path: {
274
- description: string;
275
- type: string;
276
- };
277
- include: {
278
- description: string;
279
- type: string;
280
- };
281
- questions?: undefined;
282
- command?: undefined;
283
- timeout?: undefined;
284
- workdir?: undefined;
285
- description?: undefined;
286
- filePath?: undefined;
287
- offset?: undefined;
288
- limit?: undefined;
289
- oldString?: undefined;
290
- newString?: undefined;
291
- replaceAll?: undefined;
292
- content?: undefined;
293
- prompt?: undefined;
294
- subagent_type?: undefined;
295
- session_id?: undefined;
296
- url?: undefined;
297
- format?: undefined;
298
- todos?: undefined;
299
- name?: undefined;
300
- query?: undefined;
301
- };
302
- required: string[];
303
- additionalProperties: boolean;
304
- };
305
- };
306
- } | {
307
- type: string;
308
- function: {
309
- name: string;
310
- description: string;
311
- parameters: {
312
- $schema: string;
313
- type: string;
314
- properties: {
315
- filePath: {
316
- description: string;
317
- type: string;
318
- };
319
- oldString: {
320
- description: string;
321
- type: string;
322
- };
323
- newString: {
324
- description: string;
325
- type: string;
326
- };
327
- replaceAll: {
328
- description: string;
329
- type: string;
330
- };
331
- questions?: undefined;
332
- command?: undefined;
333
- timeout?: undefined;
334
- workdir?: undefined;
335
- description?: undefined;
336
- offset?: undefined;
337
- limit?: undefined;
338
- pattern?: undefined;
339
- path?: undefined;
340
- include?: undefined;
341
- content?: undefined;
342
- prompt?: undefined;
343
- subagent_type?: undefined;
344
- session_id?: undefined;
345
- url?: undefined;
346
- format?: undefined;
347
- todos?: undefined;
348
- name?: undefined;
349
- query?: undefined;
350
- };
351
- required: string[];
352
- additionalProperties: boolean;
353
- };
354
- };
355
- } | {
356
- type: string;
357
- function: {
358
- name: string;
359
- description: string;
360
- parameters: {
361
- $schema: string;
362
- type: string;
363
- properties: {
364
- content: {
365
- description: string;
366
- type: string;
367
- };
368
- filePath: {
369
- description: string;
370
- type: string;
371
- };
372
- questions?: undefined;
373
- command?: undefined;
374
- timeout?: undefined;
375
- workdir?: undefined;
376
- description?: undefined;
377
- offset?: undefined;
378
- limit?: undefined;
379
- pattern?: undefined;
380
- path?: undefined;
381
- include?: undefined;
382
- oldString?: undefined;
383
- newString?: undefined;
384
- replaceAll?: undefined;
385
- prompt?: undefined;
386
- subagent_type?: undefined;
387
- session_id?: undefined;
388
- url?: undefined;
389
- format?: undefined;
390
- todos?: undefined;
391
- name?: undefined;
392
- query?: undefined;
393
- };
394
- required: string[];
395
- additionalProperties: boolean;
396
- };
397
- };
398
- } | {
399
- type: string;
400
- function: {
401
- name: string;
402
- description: string;
403
- parameters: {
404
- $schema: string;
405
- type: string;
406
- properties: {
407
- description: {
408
- description: string;
409
- type: string;
410
- };
411
- prompt: {
412
- description: string;
413
- type: string;
414
- };
415
- subagent_type: {
416
- description: string;
417
- type: string;
418
- };
419
- session_id: {
420
- description: string;
421
- type: string;
422
- };
423
- command: {
424
- description: string;
425
- type: string;
426
- };
427
- questions?: undefined;
428
- timeout?: undefined;
429
- workdir?: undefined;
430
- filePath?: undefined;
431
- offset?: undefined;
432
- limit?: undefined;
433
- pattern?: undefined;
434
- path?: undefined;
435
- include?: undefined;
436
- oldString?: undefined;
437
- newString?: undefined;
438
- replaceAll?: undefined;
439
- content?: undefined;
440
- url?: undefined;
441
- format?: undefined;
442
- todos?: undefined;
443
- name?: undefined;
444
- query?: undefined;
445
- };
446
- required: string[];
447
- additionalProperties: boolean;
448
- };
449
- };
450
- } | {
451
- type: string;
452
- function: {
453
- name: string;
454
- description: string;
455
- parameters: {
456
- $schema: string;
457
- type: string;
458
- properties: {
459
- url: {
460
- description: string;
461
- type: string;
462
- };
463
- format: {
464
- description: string;
465
- default: string;
466
- type: string;
467
- enum: string[];
468
- };
469
- timeout: {
470
- description: string;
471
- type: string;
472
- };
473
- questions?: undefined;
474
- command?: undefined;
475
- workdir?: undefined;
476
- description?: undefined;
477
- filePath?: undefined;
478
- offset?: undefined;
479
- limit?: undefined;
480
- pattern?: undefined;
481
- path?: undefined;
482
- include?: undefined;
483
- oldString?: undefined;
484
- newString?: undefined;
485
- replaceAll?: undefined;
486
- content?: undefined;
487
- prompt?: undefined;
488
- subagent_type?: undefined;
489
- session_id?: undefined;
490
- todos?: undefined;
491
- name?: undefined;
492
- query?: undefined;
493
- };
494
- required: string[];
495
- additionalProperties: boolean;
496
- };
497
- };
498
- } | {
499
- type: string;
500
- function: {
501
- name: string;
502
- description: string;
503
- parameters: {
504
- $schema: string;
505
- type: string;
506
- properties: {
507
- todos: {
508
- description: string;
509
- type: string;
510
- items: {
511
- type: string;
512
- properties: {
513
- content: {
514
- description: string;
515
- type: string;
516
- };
517
- status: {
518
- description: string;
519
- type: string;
520
- };
521
- priority: {
522
- description: string;
523
- type: string;
524
- };
525
- id: {
526
- description: string;
527
- type: string;
528
- };
529
- };
530
- required: string[];
531
- additionalProperties: boolean;
532
- };
533
- };
534
- questions?: undefined;
535
- command?: undefined;
536
- timeout?: undefined;
537
- workdir?: undefined;
538
- description?: undefined;
539
- filePath?: undefined;
540
- offset?: undefined;
541
- limit?: undefined;
542
- pattern?: undefined;
543
- path?: undefined;
544
- include?: undefined;
545
- oldString?: undefined;
546
- newString?: undefined;
547
- replaceAll?: undefined;
548
- content?: undefined;
549
- prompt?: undefined;
550
- subagent_type?: undefined;
551
- session_id?: undefined;
552
- url?: undefined;
553
- format?: undefined;
554
- name?: undefined;
555
- query?: undefined;
556
- };
557
- required: string[];
558
- additionalProperties: boolean;
559
- };
560
- };
561
- } | {
562
- type: string;
563
- function: {
564
- name: string;
565
- description: string;
566
- parameters: {
567
- $schema: string;
568
- type: string;
569
- properties: {
570
- questions?: undefined;
571
- command?: undefined;
572
- timeout?: undefined;
573
- workdir?: undefined;
574
- description?: undefined;
575
- filePath?: undefined;
576
- offset?: undefined;
577
- limit?: undefined;
578
- pattern?: undefined;
579
- path?: undefined;
580
- include?: undefined;
581
- oldString?: undefined;
582
- newString?: undefined;
583
- replaceAll?: undefined;
584
- content?: undefined;
585
- prompt?: undefined;
586
- subagent_type?: undefined;
587
- session_id?: undefined;
588
- url?: undefined;
589
- format?: undefined;
590
- todos?: undefined;
591
- name?: undefined;
592
- query?: undefined;
593
- };
594
- additionalProperties: boolean;
595
- required?: undefined;
596
- };
597
- };
598
- } | {
599
- type: string;
600
- function: {
601
- name: string;
602
- description: string;
603
- parameters: {
604
- $schema: string;
605
- type: string;
606
- properties: {
607
- name: {
608
- description: string;
609
- type: string;
610
- };
611
- questions?: undefined;
612
- command?: undefined;
613
- timeout?: undefined;
614
- workdir?: undefined;
615
- description?: undefined;
616
- filePath?: undefined;
617
- offset?: undefined;
618
- limit?: undefined;
619
- pattern?: undefined;
620
- path?: undefined;
621
- include?: undefined;
622
- oldString?: undefined;
623
- newString?: undefined;
624
- replaceAll?: undefined;
625
- content?: undefined;
626
- prompt?: undefined;
627
- subagent_type?: undefined;
628
- session_id?: undefined;
629
- url?: undefined;
630
- format?: undefined;
631
- todos?: undefined;
632
- query?: undefined;
633
- };
634
- required: string[];
635
- additionalProperties: boolean;
636
- };
637
- };
638
- } | {
639
- type: string;
640
- function: {
641
- name: string;
642
- description: string;
643
- parameters: {
644
- type: string;
645
- properties: {
646
- query: {
647
- type: string;
648
- };
649
- questions?: undefined;
650
- command?: undefined;
651
- timeout?: undefined;
652
- workdir?: undefined;
653
- description?: undefined;
654
- filePath?: undefined;
655
- offset?: undefined;
656
- limit?: undefined;
657
- pattern?: undefined;
658
- path?: undefined;
659
- include?: undefined;
660
- oldString?: undefined;
661
- newString?: undefined;
662
- replaceAll?: undefined;
663
- content?: undefined;
664
- prompt?: undefined;
665
- subagent_type?: undefined;
666
- session_id?: undefined;
667
- url?: undefined;
668
- format?: undefined;
669
- todos?: undefined;
670
- name?: undefined;
671
- };
672
- required: string[];
673
- additionalProperties: boolean;
674
- $schema: string;
675
- };
676
- };
677
- })[];
678
- tool_choice: string;
679
- };