agentv 5.3.1-next.1 → 5.3.2-next.1
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 +52 -44
- package/dist/{artifact-writer-7NBCOAYC.js → artifact-writer-KJEOROKQ.js} +5 -5
- package/dist/{chunk-ELCJ23K4.js → chunk-6262OKXM.js} +2856 -2404
- package/dist/chunk-6262OKXM.js.map +1 -0
- package/dist/chunk-AQ5BIAXF.js +604 -0
- package/dist/chunk-AQ5BIAXF.js.map +1 -0
- package/dist/chunk-BV5VQLI2.js +2 -0
- package/dist/{chunk-LXBI3SPX.js → chunk-JGSRUJZQ.js} +46 -20
- package/dist/chunk-JGSRUJZQ.js.map +1 -0
- package/dist/chunk-MMDLXYBX.js +721 -0
- package/dist/chunk-MMDLXYBX.js.map +1 -0
- package/dist/{chunk-LKGARI3W.js → chunk-QSK3PC44.js} +812 -570
- package/dist/chunk-QSK3PC44.js.map +1 -0
- package/dist/chunk-TEEXVJWM.js +2 -0
- package/dist/{chunk-RKE7SSET.js → chunk-WIAJ7JAV.js} +186 -64
- package/dist/chunk-WIAJ7JAV.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +17517 -10
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.js +14 -0
- package/dist/config.js.map +1 -0
- package/dist/contracts-DsZmZLl8.d.ts +742 -0
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js +28 -0
- package/dist/contracts.js.map +1 -0
- package/dist/dashboard/assets/{index-CbEMiJSb.js → index-BfqOlLOF.js} +1 -1
- package/dist/dashboard/assets/index-Bh8lpGce.css +1 -0
- package/dist/dashboard/assets/index-oPR3ywQb.js +121 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/{dist-NMXMI5SK.js → dist-A3SGR7TW.js} +16 -16
- package/dist/dist-A3SGR7TW.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +137 -18
- package/dist/{interactive-BN527UV3.js → interactive-DL7N2C7K.js} +24 -24
- package/dist/interactive-DL7N2C7K.js.map +1 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.js +24 -0
- package/dist/provider.js.map +1 -0
- package/dist/sdk.d.ts +802 -0
- package/dist/sdk.js +145 -0
- package/dist/sdk.js.map +1 -0
- package/dist/skills/agentv-eval-migrations/references/breaking-changes.md +17 -18
- package/dist/skills/agentv-eval-writer/SKILL.md +27 -15
- package/dist/skills/agentv-eval-writer/references/custom-evaluators.md +5 -5
- package/dist/skills/agentv-eval-writer/references/eval.schema.json +5402 -4639
- package/dist/skills/agentv-eval-writer/references/python-helpers.md +2 -2
- package/dist/skills/agentv-eval-writer/references/rubric-evaluator.md +19 -2
- package/dist/templates/.agentv/providers.yaml +42 -0
- package/dist/templates/.env.example +2 -2
- package/dist/{ts-eval-loader-2RFVZHCT-7CZ3DCDD.js → ts-eval-loader-3G5GEAEC-6F52JLPP.js} +3 -3
- package/dist/ts-eval-loader-3G5GEAEC-6F52JLPP.js.map +1 -0
- package/package.json +29 -4
- package/dist/chunk-ASIGJIOJ.js +0 -17993
- package/dist/chunk-ASIGJIOJ.js.map +0 -1
- package/dist/chunk-ELCJ23K4.js.map +0 -1
- package/dist/chunk-LKGARI3W.js.map +0 -1
- package/dist/chunk-LXBI3SPX.js.map +0 -1
- package/dist/chunk-RKE7SSET.js.map +0 -1
- package/dist/dashboard/assets/index-DTA6-l7q.js +0 -121
- package/dist/dashboard/assets/index-D_bokML8.css +0 -1
- package/dist/interactive-BN527UV3.js.map +0 -1
- package/dist/templates/.agentv/targets.yaml +0 -97
- /package/dist/{artifact-writer-7NBCOAYC.js.map → artifact-writer-KJEOROKQ.js.map} +0 -0
- /package/dist/{dist-NMXMI5SK.js.map → chunk-BV5VQLI2.js.map} +0 -0
- /package/dist/{ts-eval-loader-2RFVZHCT-7CZ3DCDD.js.map → chunk-TEEXVJWM.js.map} +0 -0
|
@@ -18,7 +18,7 @@ Use it when the user wants Python-based custom graders or wants to emit AgentV Y
|
|
|
18
18
|
- `load_grader_input()`
|
|
19
19
|
- `run_script_grader(handler)`
|
|
20
20
|
- `define_script_grader(handler)`
|
|
21
|
-
- `
|
|
21
|
+
- `ProviderClient.from_env()`
|
|
22
22
|
- `agentv_py.evals`
|
|
23
23
|
- `EvalDefinition`
|
|
24
24
|
- `EvalTest`
|
|
@@ -57,7 +57,7 @@ def rag_faithfulness():
|
|
|
57
57
|
return {
|
|
58
58
|
"name": "rag-faithfulness",
|
|
59
59
|
"type": "llm-rubric",
|
|
60
|
-
"
|
|
60
|
+
"provider": "grader-provider",
|
|
61
61
|
"prompt": "Grade whether the answer is supported by the retrieved context.",
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Rubric Graders
|
|
2
2
|
|
|
3
|
-
Rubrics are defined as `assert` entries with plain strings or `type:
|
|
3
|
+
Rubrics are defined as `assert` entries with plain strings, `type: llm-rubric`, or `type: agent-rubric`. They support binary checklist grading and score-range analytic grading. Use `agent-rubric` only when the grader provider is agent-capable and should inspect workspace evidence.
|
|
4
4
|
|
|
5
5
|
## Field Reference
|
|
6
6
|
|
|
7
7
|
| Field | Type | Default | Description |
|
|
8
8
|
|-------|------|---------|-------------|
|
|
9
|
-
| `type` | string | required | Use `llm-rubric` for a structured rubric; plain strings in `assert` use the same
|
|
9
|
+
| `type` | string | required | Use `llm-rubric` for a structured rubric; use `agent-rubric` for Promptfoo-compatible agent-backed rubric checks; plain strings in `assert` use the same non-agent rubric path |
|
|
10
10
|
| `value` | array | required | List of criterion strings or objects |
|
|
11
11
|
| `required` | boolean or number | - | Gate: `true` requires score >= 0.8; a number (0–1) sets a custom threshold |
|
|
12
12
|
|
|
@@ -117,6 +117,23 @@ Array format is also accepted:
|
|
|
117
117
|
|
|
118
118
|
Ranges must be integers 0-10, non-overlapping, covering all values 0-10.
|
|
119
119
|
|
|
120
|
+
## Agent Rubric Mode
|
|
121
|
+
|
|
122
|
+
`agent-rubric` accepts the same `value`, `provider`, `max_steps`, `required`, and
|
|
123
|
+
`min_score` fields as `llm-rubric`, but the resolved grader provider must be
|
|
124
|
+
agent-capable:
|
|
125
|
+
|
|
126
|
+
```yaml
|
|
127
|
+
assert:
|
|
128
|
+
- type: agent-rubric
|
|
129
|
+
provider: codex-grader
|
|
130
|
+
value: Inspect the workspace and verify the claimed files exist.
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
AgentV asks the grader agent to write a verdict JSON file shaped like
|
|
134
|
+
`{"pass": boolean, "score": number, "reason": string}`. The score must be a
|
|
135
|
+
finite 0-1 value; invalid verdict files fail closed.
|
|
136
|
+
|
|
120
137
|
## Scoring
|
|
121
138
|
|
|
122
139
|
**Checklist:** `score = sum(satisfied weights) / sum(all weights)`
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
providers:
|
|
2
|
+
- id: azure
|
|
3
|
+
label: default
|
|
4
|
+
endpoint: "{{ env.AZURE_OPENAI_ENDPOINT }}"
|
|
5
|
+
api_key: "{{ env.AZURE_OPENAI_API_KEY }}"
|
|
6
|
+
model: "{{ env.AZURE_DEPLOYMENT_NAME }}"
|
|
7
|
+
- id: codex
|
|
8
|
+
label: codex
|
|
9
|
+
cwd: "{{ env.CODEX_WORKSPACE_DIR }}"
|
|
10
|
+
log_dir: "{{ env.CODEX_LOG_DIR }}"
|
|
11
|
+
stream_log: raw
|
|
12
|
+
- id: claude
|
|
13
|
+
label: claude
|
|
14
|
+
stream_log: raw
|
|
15
|
+
- id: azure
|
|
16
|
+
label: azure-llm
|
|
17
|
+
endpoint: "{{ env.AZURE_OPENAI_ENDPOINT }}"
|
|
18
|
+
api_key: "{{ env.AZURE_OPENAI_API_KEY }}"
|
|
19
|
+
model: "{{ env.AZURE_DEPLOYMENT_NAME }}"
|
|
20
|
+
version: "{{ env.AZURE_OPENAI_API_VERSION }}"
|
|
21
|
+
- id: gemini
|
|
22
|
+
label: gemini-llm
|
|
23
|
+
api_key: "{{ env.GOOGLE_GENERATIVE_AI_API_KEY }}"
|
|
24
|
+
model: "{{ env.GEMINI_MODEL_NAME }}"
|
|
25
|
+
- id: cli
|
|
26
|
+
label: local_cli
|
|
27
|
+
command: uv run ./mock_cli.py --prompt {PROMPT} {FILES} --output {OUTPUT_FILE}
|
|
28
|
+
files_format: --file {path}
|
|
29
|
+
cwd: "{{ env.CLI_EVALS_DIR }}"
|
|
30
|
+
healthcheck:
|
|
31
|
+
command: uv run ./mock_cli.py --healthcheck
|
|
32
|
+
- id: openrouter
|
|
33
|
+
label: mimo
|
|
34
|
+
api_key: "{{ env.OPENROUTER_API_KEY }}"
|
|
35
|
+
model: xiaomi/mimo-v2.5-pro
|
|
36
|
+
- id: openrouter
|
|
37
|
+
label: mimo-flash
|
|
38
|
+
api_key: "{{ env.OPENROUTER_API_KEY }}"
|
|
39
|
+
model: xiaomi/mimo-v2-flash
|
|
40
|
+
defaults:
|
|
41
|
+
provider: default
|
|
42
|
+
grader: azure-llm
|
|
@@ -18,5 +18,5 @@ GEMINI_MODEL_NAME=gemini-3-flash-preview
|
|
|
18
18
|
# Anthropic
|
|
19
19
|
ANTHROPIC_API_KEY=your-anthropic-api-key-here
|
|
20
20
|
|
|
21
|
-
# CLI provider sample (used by the local_cli
|
|
22
|
-
CLI_EVALS_DIR=./docs/examples/simple/evals/local-cli
|
|
21
|
+
# CLI provider sample (used by the local_cli provider)
|
|
22
|
+
CLI_EVALS_DIR=./docs/examples/simple/evals/local-cli
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
loadTsEvalFile,
|
|
5
5
|
loadTsEvalSuite,
|
|
6
6
|
typeScriptEvalConfigGlob
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6262OKXM.js";
|
|
8
|
+
import "./chunk-M7BUKBAF.js";
|
|
8
9
|
import "./chunk-7BGERE6L.js";
|
|
9
10
|
import "./chunk-PEUTJS7B.js";
|
|
10
|
-
import "./chunk-M7BUKBAF.js";
|
|
11
11
|
import "./chunk-QMRVH5ZP.js";
|
|
12
12
|
export {
|
|
13
13
|
isTypeScriptEvalConfigFileName,
|
|
@@ -15,4 +15,4 @@ export {
|
|
|
15
15
|
loadTsEvalSuite,
|
|
16
16
|
typeScriptEvalConfigGlob
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=ts-eval-loader-
|
|
18
|
+
//# sourceMappingURL=ts-eval-loader-3G5GEAEC-6F52JLPP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentv",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2-next.1",
|
|
4
4
|
"description": "CLI entry point for AgentV",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -14,17 +14,42 @@
|
|
|
14
14
|
"bin": {
|
|
15
15
|
"agentv": "./dist/cli.js"
|
|
16
16
|
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./sdk": {
|
|
25
|
+
"types": "./dist/sdk.d.ts",
|
|
26
|
+
"import": "./dist/sdk.js"
|
|
27
|
+
},
|
|
28
|
+
"./provider": {
|
|
29
|
+
"types": "./dist/provider.d.ts",
|
|
30
|
+
"import": "./dist/provider.js"
|
|
31
|
+
},
|
|
32
|
+
"./contracts": {
|
|
33
|
+
"types": "./dist/contracts.d.ts",
|
|
34
|
+
"import": "./dist/contracts.js"
|
|
35
|
+
},
|
|
36
|
+
"./config": {
|
|
37
|
+
"types": "./dist/config.d.ts",
|
|
38
|
+
"import": "./dist/config.js"
|
|
39
|
+
},
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
17
42
|
"files": ["dist", "README.md"],
|
|
18
43
|
"scripts": {
|
|
19
44
|
"dev": "bun src/cli.ts",
|
|
20
|
-
"build": "
|
|
45
|
+
"build": "tsup && bun run copy-readme",
|
|
21
46
|
"copy-readme": "bun -e \"import { cpSync } from 'fs'; cpSync('../../README.md', 'README.md')\"",
|
|
22
47
|
"prepublishOnly": "node -e \"if(process.env.ALLOW_PUBLISH!=='1'){console.error('ERROR: Use bun run publish:next, then bun run promote:latest');process.exit(1)}\"",
|
|
23
|
-
"typecheck": "
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
24
49
|
"lint": "biome check .",
|
|
25
50
|
"format": "biome format --write .",
|
|
26
51
|
"fix": "biome check --write .",
|
|
27
|
-
"test": "
|
|
52
|
+
"test": "bun test",
|
|
28
53
|
"test:watch": "bun test --watch"
|
|
29
54
|
},
|
|
30
55
|
"dependencies": {
|