@mappies/miniwat-eval 1.0.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappies/miniwat-eval",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Black-box, YAML-driven evaluation framework for agents built on miniwat-agent",
5
5
  "homepage": "https://gitlab.com/mappies/miniwat-eval#readme",
6
6
  "bugs": {
@@ -8,6 +8,11 @@
8
8
  "version": { "const": 1 },
9
9
  "name": { "$ref": "#/definitions/text" },
10
10
  "description": { "type": "string" },
11
+ "variables": {
12
+ "type": "object",
13
+ "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$" },
14
+ "additionalProperties": { "type": "string" }
15
+ },
11
16
  "turns": {
12
17
  "type": "array",
13
18
  "minItems": 1,
@@ -21,9 +26,9 @@
21
26
  "conversation": {
22
27
  "type": "object",
23
28
  "additionalProperties": false,
24
- "required": ["criteria"],
29
+ "required": ["should"],
25
30
  "properties": {
26
- "criteria": { "$ref": "#/definitions/text" }
31
+ "should": { "$ref": "#/definitions/text" }
27
32
  }
28
33
  }
29
34
  }
@@ -65,12 +70,12 @@
65
70
  }
66
71
  },
67
72
  "response": {
68
- "description": "A string is shorthand for criteria.",
73
+ "description": "A string is shorthand for should.",
69
74
  "type": ["string", "object"],
70
75
  "pattern": "\\S",
71
76
  "additionalProperties": false,
72
77
  "properties": {
73
- "criteria": { "$ref": "#/definitions/text" },
78
+ "should": { "$ref": "#/definitions/text" },
74
79
  "contains": { "$ref": "#/definitions/textList" },
75
80
  "notContains": { "$ref": "#/definitions/textList" }
76
81
  }
@@ -6,6 +6,11 @@
6
6
  "required": ["version", "websocket", "evaluator"],
7
7
  "properties": {
8
8
  "version": { "const": 1 },
9
+ "variables": {
10
+ "type": "object",
11
+ "propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$" },
12
+ "additionalProperties": { "type": "string" }
13
+ },
9
14
  "websocket": {
10
15
  "type": "object",
11
16
  "additionalProperties": false,
@@ -104,6 +104,7 @@
104
104
  "required": ["path", "websocket", "execution", "evaluator", "report"],
105
105
  "properties": {
106
106
  "path": { "type": "string" },
107
+ "parametersPath": { "description": "The --parameters file, when one was given.", "type": "string" },
107
108
  "websocket": {
108
109
  "type": "object",
109
110
  "additionalProperties": false,
@@ -190,11 +191,21 @@
190
191
  "description": "A scenario that never started has no attempts and no tests.",
191
192
  "type": "object",
192
193
  "additionalProperties": false,
193
- "required": ["name", "file", "status", "passed", "failed", "errors", "required", "agentUsage", "evaluatorUsage", "tests", "attempts"],
194
+ "required": ["name", "file", "status", "connection", "passed", "failed", "errors", "required", "agentUsage", "evaluatorUsage", "tests", "attempts"],
194
195
  "properties": {
195
196
  "name": { "type": "string" },
196
197
  "file": { "type": "string" },
197
198
  "status": { "$ref": "#/definitions/status" },
199
+ "connection": {
200
+ "description": "The websocket section as resolved for this scenario. subprotocols is a count, so a scenario that connected without a token shows 0.",
201
+ "type": "object",
202
+ "additionalProperties": false,
203
+ "required": ["endpoint", "subprotocols"],
204
+ "properties": {
205
+ "endpoint": { "type": "string" },
206
+ "subprotocols": { "$ref": "#/definitions/count" }
207
+ }
208
+ },
198
209
  "passed": { "$ref": "#/definitions/count" },
199
210
  "failed": { "$ref": "#/definitions/count" },
200
211
  "errors": { "$ref": "#/definitions/count" },