@botpress/vai 0.0.16 → 0.0.18
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/dist/index.d.ts +33 -18
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,50 @@
|
|
|
1
|
-
import * as _bpinternal_zui from '@bpinternal/zui';
|
|
2
1
|
import { z, AnyZodObject } from '@bpinternal/zui';
|
|
3
2
|
import { TestFunction } from 'vitest';
|
|
4
3
|
import { llm } from '@botpress/common';
|
|
5
4
|
import { Client } from '@botpress/client';
|
|
6
5
|
|
|
7
6
|
type ScenarioLike = z.infer<typeof ScenarioLike>;
|
|
8
|
-
declare const ScenarioLike:
|
|
9
|
-
name:
|
|
10
|
-
}, "passthrough",
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
name
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
id:
|
|
20
|
-
}, "passthrough"
|
|
7
|
+
declare const ScenarioLike: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, "passthrough", {
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
} & {
|
|
12
|
+
name?: string;
|
|
13
|
+
}, {
|
|
14
|
+
name?: string;
|
|
15
|
+
} & {
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
}, "passthrough", {
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
} & {
|
|
22
|
+
id?: string;
|
|
23
|
+
}, {
|
|
24
|
+
id?: string;
|
|
25
|
+
} & {
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}>]>;
|
|
21
28
|
declare function compare<T extends ReadonlyArray<ScenarioLike>>(name: string | Function, scenarios: T, fn?: TestFunction<{
|
|
22
29
|
scenario: T[number];
|
|
23
30
|
}>): void;
|
|
24
31
|
|
|
25
32
|
type Input = z.infer<typeof Input>;
|
|
26
|
-
declare const Input:
|
|
33
|
+
declare const Input: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{}, "passthrough", {
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
} & {}, {} & {
|
|
36
|
+
[k: string]: unknown;
|
|
37
|
+
}>, {
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
} & {}, {} & {
|
|
40
|
+
[k: string]: unknown;
|
|
41
|
+
}>]>, z.ZodArray<z.ZodAny, "many">]>;
|
|
27
42
|
type Output<T = any> = z.infer<typeof Output> & {
|
|
28
43
|
result: T;
|
|
29
44
|
};
|
|
30
|
-
declare const Output:
|
|
31
|
-
reason:
|
|
32
|
-
result:
|
|
45
|
+
declare const Output: z.ZodObject<{
|
|
46
|
+
reason: z.ZodString;
|
|
47
|
+
result: z.ZodAny;
|
|
33
48
|
}, "strip", {
|
|
34
49
|
reason?: string;
|
|
35
50
|
result?: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/vai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "Vitest AI (vai) – a vitest extension for testing with LLMs",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"tsup": "^8.0.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@botpress/client": "1.
|
|
43
|
+
"@botpress/client": "1.36.0",
|
|
44
44
|
"@bpinternal/thicktoken": "^1.0.1",
|
|
45
|
-
"@bpinternal/zui": "^
|
|
45
|
+
"@bpinternal/zui": "^2.0.0",
|
|
46
46
|
"lodash": "^4.17.21",
|
|
47
47
|
"vitest": "^2 || ^3 || ^4 || ^5"
|
|
48
48
|
},
|