@mappies/miniwat-eval 1.1.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.1.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,
@@ -191,11 +191,21 @@
191
191
  "description": "A scenario that never started has no attempts and no tests.",
192
192
  "type": "object",
193
193
  "additionalProperties": false,
194
- "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"],
195
195
  "properties": {
196
196
  "name": { "type": "string" },
197
197
  "file": { "type": "string" },
198
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
+ },
199
209
  "passed": { "$ref": "#/definitions/count" },
200
210
  "failed": { "$ref": "#/definitions/count" },
201
211
  "errors": { "$ref": "#/definitions/count" },