llm-testrunner-components 1.2.0 → 1.2.2
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/cjs/index.cjs.js +12 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/llm-testrunner.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/llm-test-runner/header/llm-test-runner-header.js +2 -2
- package/dist/collection/components/llm-test-runner/header/llm-test-runner-header.js.map +1 -1
- package/dist/collection/components/llm-test-runner/llm-test-runner.js +54 -1
- package/dist/collection/components/llm-test-runner/llm-test-runner.js.map +1 -1
- package/dist/collection/lib/evaluation/evaluators/semantic/SemanticEvaluator.js +4 -3
- package/dist/collection/lib/evaluation/evaluators/semantic/SemanticEvaluator.js.map +1 -1
- package/dist/collection/lib/test-cases/test-case-factory.js +1 -1
- package/dist/collection/lib/test-cases/test-case-factory.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/llm-test-runner.js +1 -1
- package/dist/components/{p-Bb89MYYu.js → p-CJBscebi.js} +3 -3
- package/dist/components/p-CJBscebi.js.map +1 -0
- package/dist/esm/index.js +12 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/llm-testrunner.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/llm-testrunner/index.esm.js +2 -2
- package/dist/llm-testrunner/index.esm.js.map +1 -1
- package/dist/llm-testrunner/llm-testrunner.esm.js +1 -1
- package/dist/types/components/llm-test-runner/header/llm-test-runner-header.d.ts +1 -0
- package/dist/types/components/llm-test-runner/llm-test-runner.d.ts +2 -0
- package/dist/types/components.d.ts +12 -0
- package/package.json +5 -1
- package/dist/components/p-Bb89MYYu.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-DxzhGhec.js";export{s as setNonce}from"./p-DxzhGhec.js";import{g as a}from"./p-GQwFOmwJ.js";var
|
|
1
|
+
import{p as e,b as t}from"./p-DxzhGhec.js";export{s as setNonce}from"./p-DxzhGhec.js";import{g as a}from"./p-GQwFOmwJ.js";var r=()=>{const s=import.meta.url;const t={};if(s!==""){t.resourcesUrl=new URL(".",s).href}return e(t)};r().then((async e=>{await a();return t([["p-2cc09217",[[513,"llm-test-runner",{delayMs:[2,"delay-ms"],useSave:[4,"use-save"],usePromptEditor:[4,"use-prompt-editor"],initialTestCases:[16],defaultExpectedOutcomeSchema:[16],testCases:[32],isRunningAll:[32],error:[32],isExportingTestSuite:[32],isExportingTestResults:[32],isSaving:[32],resetSavingState:[64],getTestCases:[64]}],[513,"app-chips",{value:[16],config:[16]}],[513,"app-select",{value:[1],config:[16]}],[513,"app-textarea",{value:[1],config:[16]}]]]],e)}));
|
|
2
2
|
//# sourceMappingURL=llm-testrunner.esm.js.map
|
|
@@ -5,6 +5,7 @@ export declare class LLMTestRunner {
|
|
|
5
5
|
save: EventEmitter<SavePayload>;
|
|
6
6
|
delayMs?: number;
|
|
7
7
|
useSave?: boolean;
|
|
8
|
+
usePromptEditor?: boolean;
|
|
8
9
|
initialTestCases?: TestCase[];
|
|
9
10
|
defaultExpectedOutcomeSchema?: ExpectedOutcomeSchema;
|
|
10
11
|
testCases: TestCase[];
|
|
@@ -19,6 +20,7 @@ export declare class LLMTestRunner {
|
|
|
19
20
|
componentDidLoad(): void;
|
|
20
21
|
disconnectedCallback(): void;
|
|
21
22
|
resetSavingState(): Promise<void>;
|
|
23
|
+
getTestCases(): Promise<TestCase[]>;
|
|
22
24
|
private handleTestCaseChange;
|
|
23
25
|
private addNewTestCase;
|
|
24
26
|
private updateTestCase;
|
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { ChipsConfig, SelectConfig, TextAreaConfig } from "./lib/form/schema";
|
|
9
9
|
import { ExpectedOutcomeSchema, LLMRequestPayload, SavePayload, TestCase } from "./types/llm-test-runner";
|
|
10
|
+
import { EvaluationResult } from "./lib/evaluation/types";
|
|
10
11
|
export { ChipsConfig, SelectConfig, TextAreaConfig } from "./lib/form/schema";
|
|
11
12
|
export { ExpectedOutcomeSchema, LLMRequestPayload, SavePayload, TestCase } from "./types/llm-test-runner";
|
|
13
|
+
export { EvaluationResult } from "./lib/evaluation/types";
|
|
12
14
|
export namespace Components {
|
|
13
15
|
interface AppChips {
|
|
14
16
|
"config": ChipsConfig;
|
|
@@ -31,8 +33,13 @@ export namespace Components {
|
|
|
31
33
|
* @default 500
|
|
32
34
|
*/
|
|
33
35
|
"delayMs"?: number;
|
|
36
|
+
"getTestCases": () => Promise<TestCase[]>;
|
|
34
37
|
"initialTestCases"?: TestCase[];
|
|
35
38
|
"resetSavingState": () => Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
"usePromptEditor"?: boolean;
|
|
36
43
|
/**
|
|
37
44
|
* @default false
|
|
38
45
|
*/
|
|
@@ -162,6 +169,10 @@ declare namespace LocalJSX {
|
|
|
162
169
|
"initialTestCases"?: TestCase[];
|
|
163
170
|
"onLlmRequest"?: (event: LlmTestRunnerCustomEvent<LLMRequestPayload>) => void;
|
|
164
171
|
"onSave"?: (event: LlmTestRunnerCustomEvent<SavePayload>) => void;
|
|
172
|
+
/**
|
|
173
|
+
* @default false
|
|
174
|
+
*/
|
|
175
|
+
"usePromptEditor"?: boolean;
|
|
165
176
|
/**
|
|
166
177
|
* @default false
|
|
167
178
|
*/
|
|
@@ -177,6 +188,7 @@ declare namespace LocalJSX {
|
|
|
177
188
|
interface LlmTestRunnerAttributes {
|
|
178
189
|
"delayMs": number;
|
|
179
190
|
"useSave": boolean;
|
|
191
|
+
"usePromptEditor": boolean;
|
|
180
192
|
}
|
|
181
193
|
|
|
182
194
|
interface IntrinsicElements {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "llm-testrunner-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "A Stencil web component library for LLM test runner functionality",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"./react/types": {
|
|
18
18
|
"types": "./dist/types/index.d.ts"
|
|
19
19
|
},
|
|
20
|
+
"./schema": {
|
|
21
|
+
"import": "./dist/collection/schemas/expected-outcome.js",
|
|
22
|
+
"types": "./dist/types/schemas/expected-outcome.d.ts"
|
|
23
|
+
},
|
|
20
24
|
"././dist/components/*": {
|
|
21
25
|
"import": "./dist/components/*",
|
|
22
26
|
"require": "./dist/components/*",
|