@tangle-network/agent-eval 0.123.1 → 0.123.3
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/CHANGELOG.md +29 -0
- package/README.md +191 -157
- package/dist/analyst/index.d.ts +27 -4
- package/dist/analyst/index.js +6 -6
- package/dist/authenticity/index.js +3 -2
- package/dist/authenticity/index.js.map +1 -1
- package/dist/benchmarks/index.d.ts +12 -4
- package/dist/benchmarks/index.js +9 -9
- package/dist/campaign/index.d.ts +270 -254
- package/dist/campaign/index.js +22 -18
- package/dist/{chunk-GS3FJGUF.js → chunk-22VO7T2I.js} +805 -366
- package/dist/chunk-22VO7T2I.js.map +1 -0
- package/dist/{chunk-LBAHQOBI.js → chunk-4KO6D2BO.js} +38 -12
- package/dist/chunk-4KO6D2BO.js.map +1 -0
- package/dist/{chunk-3FCG7FBV.js → chunk-D5JZ7UDZ.js} +2 -2
- package/dist/{chunk-XJYR7XFV.js → chunk-GC4ATIKK.js} +1 -1
- package/dist/chunk-GC4ATIKK.js.map +1 -0
- package/dist/{chunk-BGVTIE2C.js → chunk-GRCDRKII.js} +13 -2
- package/dist/chunk-GRCDRKII.js.map +1 -0
- package/dist/{chunk-FHFTYX2Q.js → chunk-JKDNAOF5.js} +2 -2
- package/dist/{chunk-S3UZOQ5Y.js → chunk-LOW3U7JZ.js} +2 -2
- package/dist/{chunk-FC5NDO3E.js → chunk-MHPEGJHC.js} +4 -4
- package/dist/{chunk-NJC7U437.js → chunk-MK3Q6GCL.js} +33 -18
- package/dist/chunk-MK3Q6GCL.js.map +1 -0
- package/dist/{chunk-U5CHZ5M3.js → chunk-N7ZS6PEF.js} +4 -4
- package/dist/{chunk-A5S77LSE.js → chunk-QFQZ3U3X.js} +2 -2
- package/dist/chunk-QFQZ3U3X.js.map +1 -0
- package/dist/{chunk-G2GPNLSX.js → chunk-QNVBALEX.js} +4 -4
- package/dist/{chunk-OYZAPX5G.js → chunk-R226UZOI.js} +2 -2
- package/dist/{chunk-6WX7CBAR.js → chunk-SJT4OBVL.js} +20 -9
- package/dist/chunk-SJT4OBVL.js.map +1 -0
- package/dist/{chunk-HZJF4IUO.js → chunk-SUN7QLPB.js} +6 -6
- package/dist/{chunk-HZJF4IUO.js.map → chunk-SUN7QLPB.js.map} +1 -1
- package/dist/{chunk-VJ7T5WIO.js → chunk-WP3GEXKI.js} +3 -3
- package/dist/cli.js +101 -11
- package/dist/cli.js.map +1 -1
- package/dist/contract/index.d.ts +115 -8
- package/dist/contract/index.js +11 -9
- package/dist/contract/index.js.map +1 -1
- package/dist/control.js +3 -3
- package/dist/fuzz.d.ts +8 -1
- package/dist/fuzz.js +7 -6
- package/dist/fuzz.js.map +1 -1
- package/dist/hosted/index.d.ts +8 -2
- package/dist/index.d.ts +36 -10
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/rl.d.ts +24 -3
- package/dist/rl.js +6 -4
- package/dist/rl.js.map +1 -1
- package/dist/{run-campaign-ZKR5MQMQ.js → run-campaign-I3JXKVAK.js} +3 -3
- package/dist/storyboard/index.js +1 -1
- package/dist/storyboard/index.js.map +1 -1
- package/dist/traces.d.ts +2 -2
- package/dist/traces.js +3 -3
- package/dist/wire/index.d.ts +77 -5
- package/dist/wire/index.js +3 -3
- package/docs/adapters-observability.md +6 -6
- package/docs/building-doctrine.md +5 -5
- package/docs/campaign-proposers.md +142 -131
- package/docs/concepts.md +49 -53
- package/docs/customer-journeys.md +80 -155
- package/docs/design/loop-taxonomy.md +27 -29
- package/docs/design.md +69 -0
- package/docs/distributed-driver.md +14 -14
- package/docs/eval-surface-map.md +11 -11
- package/docs/hosted-ingest-spec.md +4 -4
- package/docs/insight-report.md +32 -27
- package/docs/multi-shot-optimization.md +41 -49
- package/docs/research-report-methodology.md +9 -9
- package/docs/trace-analysis.md +2 -2
- package/docs/wire-protocol.md +16 -16
- package/package.json +2 -1
- package/dist/chunk-6WX7CBAR.js.map +0 -1
- package/dist/chunk-A5S77LSE.js.map +0 -1
- package/dist/chunk-BGVTIE2C.js.map +0 -1
- package/dist/chunk-GS3FJGUF.js.map +0 -1
- package/dist/chunk-LBAHQOBI.js.map +0 -1
- package/dist/chunk-NJC7U437.js.map +0 -1
- package/dist/chunk-XJYR7XFV.js.map +0 -1
- package/docs/auto-research-loop-end-to-end.md +0 -186
- package/docs/improvement-glossary.md +0 -204
- package/docs/self-improvement-map.md +0 -115
- /package/dist/{chunk-3FCG7FBV.js.map → chunk-D5JZ7UDZ.js.map} +0 -0
- /package/dist/{chunk-FHFTYX2Q.js.map → chunk-JKDNAOF5.js.map} +0 -0
- /package/dist/{chunk-S3UZOQ5Y.js.map → chunk-LOW3U7JZ.js.map} +0 -0
- /package/dist/{chunk-FC5NDO3E.js.map → chunk-MHPEGJHC.js.map} +0 -0
- /package/dist/{chunk-U5CHZ5M3.js.map → chunk-N7ZS6PEF.js.map} +0 -0
- /package/dist/{chunk-G2GPNLSX.js.map → chunk-QNVBALEX.js.map} +0 -0
- /package/dist/{chunk-OYZAPX5G.js.map → chunk-R226UZOI.js.map} +0 -0
- /package/dist/{chunk-VJ7T5WIO.js.map → chunk-WP3GEXKI.js.map} +0 -0
- /package/dist/{run-campaign-ZKR5MQMQ.js.map → run-campaign-I3JXKVAK.js.map} +0 -0
|
@@ -206,8 +206,8 @@ interface LlmCallResult {
|
|
|
206
206
|
content: string;
|
|
207
207
|
usage: LlmUsage;
|
|
208
208
|
/**
|
|
209
|
-
* Cost in USD.
|
|
210
|
-
* `null` when neither
|
|
209
|
+
* Cost in USD. Uses the provider's reported cost when present, otherwise
|
|
210
|
+
* caller-supplied token pricing. `null` when neither is available.
|
|
211
211
|
*/
|
|
212
212
|
costUsd: number | null;
|
|
213
213
|
/** Model name actually used (echoed from response). */
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@tangle-network/agent-eval — wire protocol",
|
|
5
|
-
"version": "0.123.
|
|
5
|
+
"version": "0.123.3",
|
|
6
6
|
"description": "HTTP and stdio RPC interface to agent-eval. The TypeScript runtime is the source of truth; this spec is the contract that cross-language clients (Python, Rust, Go) generate from.\n\nWire-protocol version: 1.0.0. Bumps on breaking changes to request/response schemas.",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Tangle Network",
|
package/dist/rl.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
type AgentProfileCellSchemaVersion = 'agent-profile-cell/v1';
|
|
2
|
-
type
|
|
2
|
+
type AgentProfileJsonObject = {
|
|
3
3
|
[key: string]: AgentProfileJson;
|
|
4
4
|
};
|
|
5
|
+
type AgentProfileJson = string | number | boolean | null | AgentProfileJson[] | AgentProfileJsonObject;
|
|
5
6
|
type AgentProfileDimensionValue = string | number | boolean | null;
|
|
6
7
|
interface AgentProfileSource {
|
|
7
8
|
/** Runtime/profile contract being fingerprinted, e.g. `agent-interface-profile`. */
|
|
@@ -2407,6 +2408,11 @@ interface DetectRewardHackingInput {
|
|
|
2407
2408
|
declare function detectRewardHacking(input: DetectRewardHackingInput): RewardHackingReport;
|
|
2408
2409
|
|
|
2409
2410
|
type CostChannel = 'agent' | 'judge' | 'verifier' | 'analyst' | 'driver' | (string & {});
|
|
2411
|
+
/** Per-million token rates for a model or endpoint not covered by package pricing. */
|
|
2412
|
+
interface CustomTokenPricing {
|
|
2413
|
+
inputUsdPerMillion: number;
|
|
2414
|
+
outputUsdPerMillion: number;
|
|
2415
|
+
}
|
|
2410
2416
|
interface ChannelRollup {
|
|
2411
2417
|
channel: CostChannel;
|
|
2412
2418
|
calls: number;
|
|
@@ -2550,8 +2556,8 @@ interface LlmCallResult {
|
|
|
2550
2556
|
content: string;
|
|
2551
2557
|
usage: LlmUsage;
|
|
2552
2558
|
/**
|
|
2553
|
-
* Cost in USD.
|
|
2554
|
-
* `null` when neither
|
|
2559
|
+
* Cost in USD. Uses the provider's reported cost when present, otherwise
|
|
2560
|
+
* caller-supplied token pricing. `null` when neither is available.
|
|
2555
2561
|
*/
|
|
2556
2562
|
costUsd: number | null;
|
|
2557
2563
|
/** Model name actually used (echoed from response). */
|
|
@@ -2610,6 +2616,21 @@ interface LlmClientOptions {
|
|
|
2610
2616
|
deadlineMs?: number;
|
|
2611
2617
|
/** Total provider attempts. Legacy option name; default 3 (1 initial + 2 retries). */
|
|
2612
2618
|
maxRetries?: number;
|
|
2619
|
+
/** Token rates used when the provider omits cost or package pricing does not cover the model. */
|
|
2620
|
+
customTokenPricing?: CustomTokenPricing;
|
|
2621
|
+
/**
|
|
2622
|
+
* Transport for requests that declare `jsonSchema`. `native` sends
|
|
2623
|
+
* `response_format: json_schema`; `json-object` sends the broadly supported
|
|
2624
|
+
* JSON mode and relies on the caller to include the schema in model-visible
|
|
2625
|
+
* instructions. Default: `native`.
|
|
2626
|
+
*/
|
|
2627
|
+
jsonSchemaTransport?: 'native' | 'json-object';
|
|
2628
|
+
/**
|
|
2629
|
+
* JSON payload parsing policy. `extract` accepts fenced or prose-prefixed JSON.
|
|
2630
|
+
* `exact` requires the complete response content to be one JSON value.
|
|
2631
|
+
* Default: `extract`.
|
|
2632
|
+
*/
|
|
2633
|
+
jsonPayloadMode?: 'extract' | 'exact';
|
|
2613
2634
|
/** Fetch implementation — defaults to global `fetch`. Override for custom transport (e.g. tests). */
|
|
2614
2635
|
fetch?: typeof fetch;
|
|
2615
2636
|
/**
|
package/dist/rl.js
CHANGED
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
} from "./chunk-3RF76KTD.js";
|
|
11
11
|
import {
|
|
12
12
|
runEvalCampaign
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-N7ZS6PEF.js";
|
|
14
14
|
import {
|
|
15
15
|
detectRewardHacking,
|
|
16
16
|
extractVerifiableReward,
|
|
17
17
|
extractVerifiableRewardsFromRecords,
|
|
18
18
|
filterDeterministicallyRewarded
|
|
19
19
|
} from "./chunk-ARU2PZFM.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-MK3Q6GCL.js";
|
|
21
21
|
import {
|
|
22
22
|
rubricPredictiveValidity
|
|
23
23
|
} from "./chunk-X4UCIOTZ.js";
|
|
@@ -34,12 +34,14 @@ import {
|
|
|
34
34
|
thompsonCurriculum,
|
|
35
35
|
varianceBasedCurriculum
|
|
36
36
|
} from "./chunk-VZSRQ272.js";
|
|
37
|
+
import "./chunk-GRCDRKII.js";
|
|
38
|
+
import "./chunk-VI2UW6B6.js";
|
|
37
39
|
import "./chunk-TT4KNT67.js";
|
|
38
40
|
import "./chunk-PC4UYEBM.js";
|
|
39
41
|
import "./chunk-VQMK5FMP.js";
|
|
40
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-LOW3U7JZ.js";
|
|
41
43
|
import "./chunk-MA6HLL3S.js";
|
|
42
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-GC4ATIKK.js";
|
|
43
45
|
import "./chunk-VSMTAMNK.js";
|
|
44
46
|
import {
|
|
45
47
|
ValidationError
|