@botpress/vai 0.0.4 → 0.0.5
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/assertions/check.js +0 -1
- package/dist/assertions/extension.js +0 -1
- package/dist/assertions/extract.js +0 -1
- package/dist/assertions/filter.js +0 -1
- package/dist/assertions/rate.js +0 -1
- package/dist/context.js +0 -1
- package/dist/hooks/setEvaluator.js +0 -1
- package/dist/hooks/setupClient.js +0 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +0 -1
- package/dist/models.js +0 -1
- package/dist/scripts/update-models.js +0 -1
- package/dist/scripts/update-types.js +0 -1
- package/dist/task/compare.js +0 -1
- package/dist/utils/asyncAssertion.js +0 -1
- package/dist/utils/deferred.js +0 -1
- package/dist/utils/predictJson.js +0 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/vitest.config.ts +2 -0
package/dist/assertions/check.js
CHANGED
package/dist/assertions/rate.js
CHANGED
package/dist/context.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ declare const Output: _bpinternal_zui.ZodObject<{
|
|
|
30
30
|
reason: _bpinternal_zui.ZodString;
|
|
31
31
|
result: _bpinternal_zui.ZodAny;
|
|
32
32
|
}, "strip", _bpinternal_zui.ZodTypeAny, {
|
|
33
|
-
reason
|
|
33
|
+
reason?: string;
|
|
34
34
|
result?: any;
|
|
35
35
|
}, {
|
|
36
|
-
reason
|
|
36
|
+
reason?: string;
|
|
37
37
|
result?: any;
|
|
38
38
|
}>;
|
|
39
39
|
|
|
@@ -52,7 +52,7 @@ type CheckOptions<T> = {
|
|
|
52
52
|
declare function check<T extends Input>(value: T, condition: string, options?: CheckOptions<T>): {
|
|
53
53
|
toBe: (expected: boolean) => Promise<Output<boolean> | AsyncExpectError<boolean>>;
|
|
54
54
|
toMatchInlineSnapshot: (expected?: string) => Promise<void | Output<boolean> | AsyncExpectError<boolean>>;
|
|
55
|
-
then<TResult1 = Output<boolean>, TResult2 = never>(onfulfilled?: (
|
|
55
|
+
then<TResult1 = Output<boolean>, TResult2 = never>(onfulfilled?: (value: Output<boolean>) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): PromiseLike<TResult1 | TResult2>;
|
|
56
56
|
value: PromiseLike<boolean>;
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -68,7 +68,7 @@ declare function extract<T extends Input, S extends AnyZodObject>(value: T, shap
|
|
|
68
68
|
toBe: (expected: z.infer<S>) => Promise<Output<z.infer<S>> | AsyncExpectError<z.infer<S>>>;
|
|
69
69
|
toMatchObject: (expected: Partial<z.infer<S>>) => Promise<Output<z.infer<S>> | AsyncExpectError<z.infer<S>>>;
|
|
70
70
|
toMatchInlineSnapshot: (expected?: string) => Promise<void | Output<z.infer<S>> | AsyncExpectError<z.infer<S>>>;
|
|
71
|
-
then<TResult1 = Output<z.infer<S>>, TResult2 = never>(onfulfilled?: (
|
|
71
|
+
then<TResult1 = Output<z.infer<S>>, TResult2 = never>(onfulfilled?: (value: Output<z.infer<S>>) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): PromiseLike<TResult1 | TResult2>;
|
|
72
72
|
value: PromiseLike<z.infer<S>>;
|
|
73
73
|
};
|
|
74
74
|
|
|
@@ -91,7 +91,7 @@ declare function filter<U>(values: U[], condition: string, options?: FilterOptio
|
|
|
91
91
|
toBeLessThanOrEqual: (expected: number) => Promise<Output<U[]> | AsyncExpectError<U[]>>;
|
|
92
92
|
toBeBetween: (min: number, max: number) => Promise<Output<U[]> | AsyncExpectError<U[]>>;
|
|
93
93
|
};
|
|
94
|
-
then<TResult1 = Output<U[]>, TResult2 = never>(onfulfilled?: (
|
|
94
|
+
then<TResult1 = Output<U[]>, TResult2 = never>(onfulfilled?: (value: Output<U[]>) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): PromiseLike<TResult1 | TResult2>;
|
|
95
95
|
value: PromiseLike<U[]>;
|
|
96
96
|
};
|
|
97
97
|
|
|
@@ -108,7 +108,7 @@ declare function rate<T extends Input>(value: T, condition: string, options?: Ra
|
|
|
108
108
|
toMatchInlineSnapshot: (expected?: string) => Promise<void | Output<number> | AsyncExpectError<number>>;
|
|
109
109
|
toBeGreaterThanOrEqual: (expected: RatingScore) => Promise<Output<number> | AsyncExpectError<number>>;
|
|
110
110
|
toBeLessThanOrEqual: (expected: RatingScore) => Promise<Output<number> | AsyncExpectError<number>>;
|
|
111
|
-
then<TResult1 = Output<number>, TResult2 = never>(onfulfilled?: (
|
|
111
|
+
then<TResult1 = Output<number>, TResult2 = never>(onfulfilled?: (value: Output<number>) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): PromiseLike<TResult1 | TResult2>;
|
|
112
112
|
value: PromiseLike<number>;
|
|
113
113
|
};
|
|
114
114
|
|
package/dist/index.js
CHANGED
package/dist/models.js
CHANGED
package/dist/task/compare.js
CHANGED
package/dist/utils/deferred.js
CHANGED
package/package.json
CHANGED
package/tsconfig.json
CHANGED
package/vitest.config.ts
CHANGED