@mappies/miniwat-eval 1.2.0 → 1.3.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.
- package/README.md +48 -5
- package/dist/index.cjs +393 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +393 -44
- package/dist/index.js.map +1 -1
- package/dist/main.js +393 -44
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/schemas/conversation.schema.json +35 -1
- package/schemas/eval-config.schema.json +6 -1
- package/schemas/report.schema.json +1 -0
package/package.json
CHANGED
|
@@ -11,7 +11,41 @@
|
|
|
11
11
|
"variables": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$" },
|
|
14
|
-
"additionalProperties": {
|
|
14
|
+
"additionalProperties": {
|
|
15
|
+
"anyOf": [
|
|
16
|
+
{ "type": "string" },
|
|
17
|
+
{ "type": "array", "items": { "type": "string" } }
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"runWith": {
|
|
22
|
+
"description": "Runs the scenario once per entry. Either rows, each with a name and variables, or { variable, from }, where from is a list of variable or parameter names or a list variable such as ${tokens}.",
|
|
23
|
+
"anyOf": [
|
|
24
|
+
{
|
|
25
|
+
"type": "array",
|
|
26
|
+
"minItems": 1,
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": ["name"],
|
|
30
|
+
"properties": { "name": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$" } },
|
|
31
|
+
"additionalProperties": { "type": "string" }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["variable", "from"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"variable": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$" },
|
|
40
|
+
"from": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{ "type": "array", "minItems": 1, "items": { "type": "string" } },
|
|
43
|
+
{ "type": "string", "pattern": "^\\$\\{[A-Za-z_][A-Za-z0-9_-]*\\}$" }
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
15
49
|
},
|
|
16
50
|
"turns": {
|
|
17
51
|
"type": "array",
|
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
"variables": {
|
|
10
10
|
"type": "object",
|
|
11
11
|
"propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$" },
|
|
12
|
-
"additionalProperties": {
|
|
12
|
+
"additionalProperties": {
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{ "type": "string" },
|
|
15
|
+
{ "type": "array", "items": { "type": "string" } }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
13
18
|
},
|
|
14
19
|
"websocket": {
|
|
15
20
|
"type": "object",
|
|
@@ -194,6 +194,7 @@
|
|
|
194
194
|
"required": ["name", "file", "status", "connection", "passed", "failed", "errors", "required", "agentUsage", "evaluatorUsage", "tests", "attempts"],
|
|
195
195
|
"properties": {
|
|
196
196
|
"name": { "type": "string" },
|
|
197
|
+
"runWith": { "description": "The runWith entry this scenario is one run of. Absent when the scenario has no runWith.", "type": "string" },
|
|
197
198
|
"file": { "type": "string" },
|
|
198
199
|
"status": { "$ref": "#/definitions/status" },
|
|
199
200
|
"connection": {
|