@dalmia/calibrate-mcp 0.0.52 → 0.0.54
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/bin/mcp-server.js +397 -216
- package/bin/mcp-server.js.map +19 -16
- package/esm/funcs/agentTestsGetBenchmark.js +1 -0
- package/esm/funcs/agentTestsGetBenchmark.js.map +1 -1
- package/esm/funcs/agentTestsGetRun.js +1 -0
- package/esm/funcs/agentTestsGetRun.js.map +1 -1
- package/esm/funcs/agentTestsGetRunCase.d.ts +16 -0
- package/esm/funcs/agentTestsGetRunCase.d.ts.map +1 -0
- package/esm/funcs/agentTestsGetRunCase.js +100 -0
- package/esm/funcs/agentTestsGetRunCase.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/agentTestsGetRunCase.d.ts +7 -0
- package/esm/mcp-server/tools/agentTestsGetRunCase.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentTestsGetRunCase.js +38 -0
- package/esm/mcp-server/tools/agentTestsGetRunCase.js.map +1 -0
- package/esm/models/agenttestrunlistitem.js +1 -1
- package/esm/models/agenttestrunlistitem.js.map +1 -1
- package/esm/models/benchmarkstatusresponse.d.ts +1 -0
- package/esm/models/benchmarkstatusresponse.d.ts.map +1 -1
- package/esm/models/benchmarkstatusresponse.js +1 -0
- package/esm/models/benchmarkstatusresponse.js.map +1 -1
- package/esm/models/getagenttestcaseresultagenttestsruntaskidresultstestuuidgetop.d.ts +13 -0
- package/esm/models/getagenttestcaseresultagenttestsruntaskidresultstestuuidgetop.d.ts.map +1 -0
- package/esm/models/getagenttestcaseresultagenttestsruntaskidresultstestuuidgetop.js +17 -0
- package/esm/models/getagenttestcaseresultagenttestsruntaskidresultstestuuidgetop.js.map +1 -0
- package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.d.ts +17 -0
- package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.d.ts.map +1 -1
- package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.js +12 -0
- package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.js.map +1 -1
- package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.d.ts +17 -0
- package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.d.ts.map +1 -1
- package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.js +13 -0
- package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.js.map +1 -1
- package/esm/models/testcaseresult.d.ts +16 -0
- package/esm/models/testcaseresult.d.ts.map +1 -1
- package/esm/models/testcaseresult.js +14 -0
- package/esm/models/testcaseresult.js.map +1 -1
- package/esm/models/testrunstatusresponse.d.ts +4 -0
- package/esm/models/testrunstatusresponse.d.ts.map +1 -1
- package/esm/models/testrunstatusresponse.js +3 -0
- package/esm/models/testrunstatusresponse.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +4 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/agentTestsGetBenchmark.ts +1 -0
- package/src/funcs/agentTestsGetRun.ts +1 -0
- package/src/funcs/agentTestsGetRunCase.ts +167 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/agentTestsGetRunCase.ts +47 -0
- package/src/models/agenttestrunlistitem.ts +1 -1
- package/src/models/benchmarkstatusresponse.ts +4 -0
- package/src/models/getagenttestcaseresultagenttestsruntaskidresultstestuuidgetop.ts +44 -0
- package/src/models/getagenttestrunstatusagenttestsruntaskidgetop.ts +30 -0
- package/src/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.ts +29 -0
- package/src/models/testcaseresult.ts +24 -0
- package/src/models/testrunstatusresponse.ts +9 -0
- package/src/tool-names.ts +4 -0
|
@@ -3,12 +3,30 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
6
7
|
import { JudgeResult, JudgeResult$zodSchema } from "./judgeresult.js";
|
|
7
8
|
import { TestOutput, TestOutput$zodSchema } from "./testoutput.js";
|
|
8
9
|
|
|
10
|
+
export const TestType = {
|
|
11
|
+
Response: "response",
|
|
12
|
+
ToolCall: "tool_call",
|
|
13
|
+
Conversation: "conversation",
|
|
14
|
+
General: "general",
|
|
15
|
+
} as const;
|
|
16
|
+
export type TestType = ClosedEnum<typeof TestType>;
|
|
17
|
+
|
|
18
|
+
export const TestType$zodSchema = z.enum([
|
|
19
|
+
"response",
|
|
20
|
+
"tool_call",
|
|
21
|
+
"conversation",
|
|
22
|
+
"general",
|
|
23
|
+
]);
|
|
24
|
+
|
|
9
25
|
export type TestCaseResult = {
|
|
10
26
|
test_case_id?: string | null | undefined;
|
|
11
27
|
name?: string | null | undefined;
|
|
28
|
+
test_uuid?: string | null | undefined;
|
|
29
|
+
test_type?: TestType | null | undefined;
|
|
12
30
|
passed?: boolean | null | undefined;
|
|
13
31
|
reasoning?: string | null | undefined;
|
|
14
32
|
output?: TestOutput | null | undefined;
|
|
@@ -49,6 +67,12 @@ export const TestCaseResult$zodSchema: z.ZodType<TestCaseResult> = z.object({
|
|
|
49
67
|
test_case_id: z.string().nullable().optional().describe(
|
|
50
68
|
"ID of the test case within the run",
|
|
51
69
|
),
|
|
70
|
+
test_type: TestType$zodSchema.nullable().optional().describe(
|
|
71
|
+
"What the test asks of the agent, which decides how a reader draws the case",
|
|
72
|
+
),
|
|
73
|
+
test_uuid: z.string().nullable().optional().describe(
|
|
74
|
+
"ID of the test this case ran, which is what you pass to read the case on its own",
|
|
75
|
+
),
|
|
52
76
|
unanswered: z.boolean().default(false).describe(
|
|
53
77
|
"Whether this case produced no answer because the agent or the judge could not be reached, in which case `reasoning` carries the error and `passed` is not a verdict on the agent",
|
|
54
78
|
),
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
export type TestRunStatusResponse = {
|
|
14
14
|
task_id: string;
|
|
15
|
+
name: string;
|
|
15
16
|
status: TaskStatus;
|
|
16
17
|
test_uuids?: Array<string> | null | undefined;
|
|
17
18
|
total_tests?: number | null | undefined;
|
|
@@ -21,6 +22,7 @@ export type TestRunStatusResponse = {
|
|
|
21
22
|
cost?: { [k: string]: any } | null | undefined;
|
|
22
23
|
total_tokens?: { [k: string]: any } | null | undefined;
|
|
23
24
|
evaluators?: Array<TestRunEvaluator> | null | undefined;
|
|
25
|
+
evaluator_summary?: Array<{ [k: string]: any }> | null | undefined;
|
|
24
26
|
results?: Array<TestCaseResult> | null | undefined;
|
|
25
27
|
unanswered_tests?: number | null | undefined;
|
|
26
28
|
stopped_early?: boolean | undefined;
|
|
@@ -39,6 +41,10 @@ export const TestRunStatusResponse$zodSchema: z.ZodType<TestRunStatusResponse> =
|
|
|
39
41
|
"Aggregated cost as `{mean, min, max, count}` (USD)",
|
|
40
42
|
),
|
|
41
43
|
error: z.boolean().default(false).describe("True if the run failed"),
|
|
44
|
+
evaluator_summary: z.array(z.record(z.string(), z.any())).nullable()
|
|
45
|
+
.optional().describe(
|
|
46
|
+
"Totals for each evaluator over the whole run, matching the shape a benchmark reports for each model. Only evaluators that returned a verdict appear",
|
|
47
|
+
),
|
|
42
48
|
evaluators: z.array(TestRunEvaluator$zodSchema).nullable().optional()
|
|
43
49
|
.describe(
|
|
44
50
|
"The evaluators used in this run. Each verdict in `judge_results` links to one of these by `evaluator_uuid`",
|
|
@@ -52,6 +58,9 @@ export const TestRunStatusResponse$zodSchema: z.ZodType<TestRunStatusResponse> =
|
|
|
52
58
|
latency_ms: z.record(z.string(), z.any()).nullable().optional().describe(
|
|
53
59
|
"Aggregated response latency in milliseconds, as `{p50, p95, p99, count}`",
|
|
54
60
|
),
|
|
61
|
+
name: z.string().describe(
|
|
62
|
+
"Name of the run. A run nobody has renamed shows its number instead, such as `Run 1` for a test run or `Benchmark 1` for a benchmark",
|
|
63
|
+
),
|
|
55
64
|
passed: z.int().nullable().optional().describe(
|
|
56
65
|
"Number of test cases that passed",
|
|
57
66
|
),
|
package/src/tool-names.ts
CHANGED
|
@@ -80,6 +80,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
80
80
|
"name": "get-agent-test-run",
|
|
81
81
|
"description": "Poll the status and results of an agent test run by task_id. Returns\nqueued, in_progress, completed, failed, or aborted status. When\ncompleted, includes per-test-case pass/fail results and evaluator\njudgments. Use the task_id from run-agent-tests or\nrun-agent-tests-batch.\n"
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
"name": "get-agent-test-case-result",
|
|
85
|
+
"description": "Fetch the full result of one test case in a run, including the\nconversation, the agent's output and each evaluator's reasoning. Pass\nthe model query param for a benchmark, which runs every test once per\nmodel. Use with mode=summary on get-agent-test-run, which returns\nlight rows without this detail.\n"
|
|
86
|
+
},
|
|
83
87
|
{
|
|
84
88
|
"name": "run-agent-benchmark",
|
|
85
89
|
"description": "Start a multi-model benchmark over an agent's linked tests as a background job. Optionally restrict to a subset of linked tests. Returns a task_id to poll with get-agent-benchmark.\n"
|