agentv 2.1.0 → 2.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/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-5BLNVACB.js";
4
+ } from "./chunk-5HTT24MQ.js";
5
5
  import "./chunk-UE4GLFVL.js";
6
6
 
7
7
  // src/cli.ts
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  app,
3
3
  runCli
4
- } from "./chunk-5BLNVACB.js";
4
+ } from "./chunk-5HTT24MQ.js";
5
5
  import "./chunk-UE4GLFVL.js";
6
6
  export {
7
7
  app,
@@ -7,7 +7,7 @@ description: Create and maintain AgentV YAML evaluation files for testing AI age
7
7
 
8
8
  ## Schema Reference
9
9
  - Schema: `references/eval-schema.json` (JSON Schema for validation and tooling)
10
- - Format: YAML with structured content arrays
10
+ - Format: YAML or JSONL (see below)
11
11
  - Examples: `references/example-evals.md`
12
12
 
13
13
  ## Feature Reference
@@ -30,6 +30,28 @@ description: Create and maintain AgentV YAML evaluation files for testing AI age
30
30
  - Attachments (type: `file`) should default to the `user` role
31
31
  - File paths: Relative (from eval file dir) or absolute with "/" prefix (from repo root)
32
32
 
33
+ ## JSONL Format
34
+
35
+ For large-scale evaluations, use JSONL (one eval case per line) instead of YAML:
36
+
37
+ **dataset.jsonl:**
38
+ ```jsonl
39
+ {"id": "test-1", "expected_outcome": "Correct answer", "input_messages": [{"role": "user", "content": "What is 2+2?"}]}
40
+ {"id": "test-2", "expected_outcome": "Clear explanation", "input_messages": [{"role": "user", "content": [{"type": "text", "value": "Review this"}, {"type": "file", "value": "./code.py"}]}]}
41
+ ```
42
+
43
+ **dataset.yaml (optional sidecar for defaults):**
44
+ ```yaml
45
+ description: My dataset
46
+ dataset: my-tests
47
+ execution:
48
+ target: azure_base
49
+ evaluator: llm_judge
50
+ ```
51
+
52
+ Benefits: Git-friendly diffs, streaming-compatible, easy programmatic generation.
53
+ Per-case fields override sidecar defaults. See `examples/features/basic-jsonl/` for complete example.
54
+
33
55
  ## Custom Evaluators
34
56
 
35
57
  Configure multiple evaluators per eval case via `execution.evaluators` array.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentv",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "CLI entry point for AgentV",
5
5
  "type": "module",
6
6
  "repository": {