@dalmia/calibrate-mcp 0.0.21 → 0.0.23
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 +202 -47
- package/bin/mcp-server.js.map +33 -26
- package/esm/funcs/agentTestsListForAgent.js +7 -1
- package/esm/funcs/agentTestsListForAgent.js.map +1 -1
- package/esm/funcs/agentTestsListRunsForAgent.js +9 -1
- package/esm/funcs/agentTestsListRunsForAgent.js.map +1 -1
- package/esm/funcs/agentsList.js +7 -1
- package/esm/funcs/agentsList.js.map +1 -1
- package/esm/funcs/annotationTasksList.js +7 -1
- package/esm/funcs/annotationTasksList.js.map +1 -1
- package/esm/funcs/evaluatorsList.js +3 -0
- package/esm/funcs/evaluatorsList.js.map +1 -1
- package/esm/funcs/testsList.js +7 -1
- package/esm/funcs/testsList.js.map +1 -1
- 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.js +1 -1
- package/esm/models/agentsummary.d.ts +32 -0
- package/esm/models/agentsummary.d.ts.map +1 -0
- package/esm/models/agentsummary.js +26 -0
- package/esm/models/agentsummary.js.map +1 -0
- package/esm/models/annotationtaskresponse.js +1 -1
- package/esm/models/annotationtaskresponse.js.map +1 -1
- package/esm/models/evaluatorliveversionsummary.d.ts +13 -0
- package/esm/models/evaluatorliveversionsummary.d.ts.map +1 -0
- package/esm/models/evaluatorliveversionsummary.js +12 -0
- package/esm/models/evaluatorliveversionsummary.js.map +1 -0
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.d.ts +32 -2
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.d.ts.map +1 -1
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.js +25 -2
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.js.map +1 -1
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.d.ts +5 -2
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.d.ts.map +1 -1
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.js +5 -2
- package/esm/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.js.map +1 -1
- package/esm/models/gettestendpointteststestuuidgetop.d.ts +2 -2
- package/esm/models/gettestendpointteststestuuidgetop.d.ts.map +1 -1
- package/esm/models/gettestendpointteststestuuidgetop.js +2 -2
- package/esm/models/gettestendpointteststestuuidgetop.js.map +1 -1
- package/esm/models/listagentsagentsgetop.d.ts +5 -2
- package/esm/models/listagentsagentsgetop.d.ts.map +1 -1
- package/esm/models/listagentsagentsgetop.js +5 -2
- package/esm/models/listagentsagentsgetop.js.map +1 -1
- package/esm/models/listannotationtasksannotationtasksgetop.d.ts +5 -2
- package/esm/models/listannotationtasksannotationtasksgetop.d.ts.map +1 -1
- package/esm/models/listannotationtasksannotationtasksgetop.js +5 -2
- package/esm/models/listannotationtasksannotationtasksgetop.js.map +1 -1
- package/esm/models/listevaluatorsevaluatorsgetop.d.ts +5 -2
- package/esm/models/listevaluatorsevaluatorsgetop.d.ts.map +1 -1
- package/esm/models/listevaluatorsevaluatorsgetop.js +5 -2
- package/esm/models/listevaluatorsevaluatorsgetop.js.map +1 -1
- package/esm/models/listteststestsgetop.d.ts +5 -2
- package/esm/models/listteststestsgetop.d.ts.map +1 -1
- package/esm/models/listteststestsgetop.js +5 -2
- package/esm/models/listteststestsgetop.js.map +1 -1
- package/esm/models/paginatedresponseagentsummary.d.ts +10 -0
- package/esm/models/paginatedresponseagentsummary.d.ts.map +1 -0
- package/esm/models/paginatedresponseagentsummary.js +12 -0
- package/esm/models/paginatedresponseagentsummary.js.map +1 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.d.ts +10 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.d.ts.map +1 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.js +12 -0
- package/esm/models/paginatedresponseagenttestrunlistitem.js.map +1 -0
- package/esm/models/paginatedresponseannotationtaskresponse.d.ts +10 -0
- package/esm/models/paginatedresponseannotationtaskresponse.d.ts.map +1 -0
- package/esm/models/paginatedresponseannotationtaskresponse.js +12 -0
- package/esm/models/paginatedresponseannotationtaskresponse.js.map +1 -0
- package/esm/models/paginatedresponseevaluatorresponse.d.ts +10 -0
- package/esm/models/paginatedresponseevaluatorresponse.d.ts.map +1 -0
- package/esm/models/paginatedresponseevaluatorresponse.js +12 -0
- package/esm/models/paginatedresponseevaluatorresponse.js.map +1 -0
- package/esm/models/paginatedresponsetestlistresponse.d.ts +10 -0
- package/esm/models/paginatedresponsetestlistresponse.d.ts.map +1 -0
- package/esm/models/paginatedresponsetestlistresponse.js +12 -0
- package/esm/models/paginatedresponsetestlistresponse.js.map +1 -0
- package/esm/models/routersevaluatorsevaluatorresponse.d.ts +2 -2
- package/esm/models/routersevaluatorsevaluatorresponse.d.ts.map +1 -1
- package/esm/models/routersevaluatorsevaluatorresponse.js +2 -2
- package/esm/models/routersevaluatorsevaluatorresponse.js.map +1 -1
- package/esm/models/testlistconfig.d.ts +6 -0
- package/esm/models/testlistconfig.d.ts.map +1 -0
- package/esm/models/testlistconfig.js +8 -0
- package/esm/models/testlistconfig.js.map +1 -0
- package/esm/models/testlistresponse.d.ts +49 -0
- package/esm/models/testlistresponse.d.ts.map +1 -0
- package/esm/models/testlistresponse.js +33 -0
- package/esm/models/testlistresponse.js.map +1 -0
- package/esm/models/{routersteststestresponse.d.ts → testresponse.d.ts} +7 -7
- package/esm/models/testresponse.d.ts.map +1 -0
- package/esm/models/{routersteststestresponse.js → testresponse.js} +5 -5
- package/esm/models/testresponse.js.map +1 -0
- package/esm/models/updatetestendpointteststestuuidputop.d.ts +2 -2
- package/esm/models/updatetestendpointteststestuuidputop.d.ts.map +1 -1
- package/esm/models/updatetestendpointteststestuuidputop.js +2 -2
- package/esm/models/updatetestendpointteststestuuidputop.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/agentTestsListForAgent.ts +7 -1
- package/src/funcs/agentTestsListRunsForAgent.ts +9 -1
- package/src/funcs/agentsList.ts +7 -1
- package/src/funcs/annotationTasksList.ts +7 -1
- package/src/funcs/evaluatorsList.ts +3 -0
- package/src/funcs/testsList.ts +7 -1
- 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 +1 -1
- package/src/models/agentsummary.ts +53 -0
- package/src/models/annotationtaskresponse.ts +1 -1
- package/src/models/evaluatorliveversionsummary.ts +33 -0
- package/src/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.ts +59 -6
- package/src/models/getagenttestsendpointagenttestsagentagentuuidtestsgetop.ts +17 -7
- package/src/models/gettestendpointteststestuuidgetop.ts +3 -6
- package/src/models/listagentsagentsgetop.ts +17 -5
- package/src/models/listannotationtasksannotationtasksgetop.ts +18 -6
- package/src/models/listevaluatorsevaluatorsgetop.ts +17 -7
- package/src/models/listteststestsgetop.ts +20 -6
- package/src/models/paginatedresponseagentsummary.ts +26 -0
- package/src/models/paginatedresponseagenttestrunlistitem.ts +31 -0
- package/src/models/paginatedresponseannotationtaskresponse.ts +31 -0
- package/src/models/paginatedresponseevaluatorresponse.ts +31 -0
- package/src/models/paginatedresponsetestlistresponse.ts +29 -0
- package/src/models/routersevaluatorsevaluatorresponse.ts +5 -5
- package/src/models/testlistconfig.ts +13 -0
- package/src/models/testlistresponse.ts +75 -0
- package/src/models/{routersteststestresponse.ts → testresponse.ts} +7 -11
- package/src/models/updatetestendpointteststestuuidputop.ts +3 -6
- package/esm/models/agenttestrunsresponse.d.ts +0 -7
- package/esm/models/agenttestrunsresponse.d.ts.map +0 -1
- package/esm/models/agenttestrunsresponse.js +0 -9
- package/esm/models/agenttestrunsresponse.js.map +0 -1
- package/esm/models/routersagentteststestresponse.d.ts +0 -41
- package/esm/models/routersagentteststestresponse.d.ts.map +0 -1
- package/esm/models/routersagentteststestresponse.js +0 -31
- package/esm/models/routersagentteststestresponse.js.map +0 -1
- package/esm/models/routersteststestresponse.d.ts.map +0 -1
- package/esm/models/routersteststestresponse.js.map +0 -1
- package/src/models/agenttestrunsresponse.ts +0 -18
- package/src/models/routersagentteststestresponse.ts +0 -65
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { TestListConfig$zodSchema } from "./testlistconfig.js";
|
|
6
|
+
/**
|
|
7
|
+
* What the test judges:
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* - `response`: judges the generated reply
|
|
12
|
+
* - `tool_call`: diffs the generated tool calls
|
|
13
|
+
* - `conversation`: judges the full conversation
|
|
14
|
+
*/
|
|
15
|
+
export const TestListResponseType = {
|
|
16
|
+
Response: "response",
|
|
17
|
+
ToolCall: "tool_call",
|
|
18
|
+
Conversation: "conversation",
|
|
19
|
+
};
|
|
20
|
+
export const TestListResponseType$zodSchema = z.enum([
|
|
21
|
+
"response",
|
|
22
|
+
"tool_call",
|
|
23
|
+
"conversation",
|
|
24
|
+
]).describe("What the test judges:\n\n- `response`: judges the generated reply\n- `tool_call`: diffs the generated tool calls\n- `conversation`: judges the full conversation\n");
|
|
25
|
+
export const TestListResponse$zodSchema = z.object({
|
|
26
|
+
config: TestListConfig$zodSchema.nullable().optional().describe("Trimmed config carrying only the test's description. Fetch the test by ID for the full config and evaluators"),
|
|
27
|
+
created_at: z.string().describe("When the test was created (ISO 8601 UTC)"),
|
|
28
|
+
name: z.string().describe("Name of the test"),
|
|
29
|
+
type: TestListResponseType$zodSchema.describe("What the test judges:\n\n- `response`: judges the generated reply\n- `tool_call`: diffs the generated tool calls\n- `conversation`: judges the full conversation\n"),
|
|
30
|
+
updated_at: z.string().describe("When the test was last updated (ISO 8601 UTC)"),
|
|
31
|
+
uuid: z.string().describe("Unique ID for the test"),
|
|
32
|
+
}).describe("Trimmed test shape for list/index endpoints. The full config and hydrated\nevaluators live on the detail endpoint (`GET /tests/{uuid}`); the list keeps\nonly what list and attach-dropdown views render.");
|
|
33
|
+
//# sourceMappingURL=testlistresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testlistresponse.js","sourceRoot":"","sources":["../../src/models/testlistresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAkB,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,cAAc;CACpB,CAAC;AAYX,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,UAAU;IACV,WAAW;IACX,cAAc;CACf,CAAC,CAAC,QAAQ,CACT,oKAAoK,CACrK,CAAC;AAkBF,MAAM,CAAC,MAAM,0BAA0B,GAAgC,CAAC,CAAC,MAAM,CAC7E;IACE,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7D,8GAA8G,CAC/G;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IAC3E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC7C,IAAI,EAAE,8BAA8B,CAAC,QAAQ,CAC3C,oKAAoK,CACrK;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAC7B,+CAA+C,CAChD;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CACpD,CACF,CAAC,QAAQ,CACR,2MAA2M,CAC5M,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
9
9
|
* - `tool_call`: diffs the generated tool calls
|
|
10
10
|
* - `conversation`: judges the full conversation
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const TestResponseType: {
|
|
13
13
|
readonly Response: "response";
|
|
14
14
|
readonly ToolCall: "tool_call";
|
|
15
15
|
readonly Conversation: "conversation";
|
|
@@ -23,16 +23,16 @@ export declare const RoutersTestsTestResponseType: {
|
|
|
23
23
|
* - `tool_call`: diffs the generated tool calls
|
|
24
24
|
* - `conversation`: judges the full conversation
|
|
25
25
|
*/
|
|
26
|
-
export type
|
|
27
|
-
export declare const
|
|
26
|
+
export type TestResponseType = ClosedEnum<typeof TestResponseType>;
|
|
27
|
+
export declare const TestResponseType$zodSchema: z.ZodEnum<{
|
|
28
28
|
response: "response";
|
|
29
29
|
tool_call: "tool_call";
|
|
30
30
|
conversation: "conversation";
|
|
31
31
|
}>;
|
|
32
|
-
export type
|
|
32
|
+
export type TestResponse = {
|
|
33
33
|
uuid: string;
|
|
34
34
|
name: string;
|
|
35
|
-
type:
|
|
35
|
+
type: TestResponseType;
|
|
36
36
|
config?: {
|
|
37
37
|
[k: string]: any;
|
|
38
38
|
} | null | undefined;
|
|
@@ -42,5 +42,5 @@ export type RoutersTestsTestResponse = {
|
|
|
42
42
|
[k: string]: any;
|
|
43
43
|
}> | undefined;
|
|
44
44
|
};
|
|
45
|
-
export declare const
|
|
46
|
-
//# sourceMappingURL=
|
|
45
|
+
export declare const TestResponse$zodSchema: z.ZodType<TestResponse>;
|
|
46
|
+
//# sourceMappingURL=testresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testresponse.d.ts","sourceRoot":"","sources":["../../src/models/testresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,0BAA0B;;;;EAMtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAgBzD,CAAC"}
|
|
@@ -11,23 +11,23 @@ import * as z from "zod";
|
|
|
11
11
|
* - `tool_call`: diffs the generated tool calls
|
|
12
12
|
* - `conversation`: judges the full conversation
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const TestResponseType = {
|
|
15
15
|
Response: "response",
|
|
16
16
|
ToolCall: "tool_call",
|
|
17
17
|
Conversation: "conversation",
|
|
18
18
|
};
|
|
19
|
-
export const
|
|
19
|
+
export const TestResponseType$zodSchema = z.enum([
|
|
20
20
|
"response",
|
|
21
21
|
"tool_call",
|
|
22
22
|
"conversation",
|
|
23
23
|
]).describe("What the test judges:\n\n- `response`: judges the generated reply\n- `tool_call`: diffs the generated tool calls\n- `conversation`: judges the full conversation\n");
|
|
24
|
-
export const
|
|
24
|
+
export const TestResponse$zodSchema = z.object({
|
|
25
25
|
config: z.record(z.string(), z.any()).nullable().optional().describe("The stored config: `history`, `evaluation`, and an optional `settings`"),
|
|
26
26
|
created_at: z.string().describe("When the test was created (ISO 8601 UTC)"),
|
|
27
27
|
evaluators: z.array(z.record(z.string(), z.any())).optional().describe("Linked evaluators, resolved to their current live version at read time"),
|
|
28
28
|
name: z.string().describe("Name of the test"),
|
|
29
|
-
type:
|
|
29
|
+
type: TestResponseType$zodSchema.describe("What the test judges:\n\n- `response`: judges the generated reply\n- `tool_call`: diffs the generated tool calls\n- `conversation`: judges the full conversation\n"),
|
|
30
30
|
updated_at: z.string().describe("When the test was last updated (ISO 8601 UTC)"),
|
|
31
31
|
uuid: z.string().describe("Unique ID for the test"),
|
|
32
32
|
});
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=testresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testresponse.js","sourceRoot":"","sources":["../../src/models/testresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,cAAc;CACpB,CAAC;AAYX,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,UAAU;IACV,WAAW;IACX,cAAc;CACf,CAAC,CAAC,QAAQ,CACT,oKAAoK,CACrK,CAAC;AAYF,MAAM,CAAC,MAAM,sBAAsB,GAA4B,CAAC,CAAC,MAAM,CAAC;IACtE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAClE,wEAAwE,CACzE;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IAC3E,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpE,wEAAwE,CACzE;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAC7C,IAAI,EAAE,0BAA0B,CAAC,QAAQ,CACvC,oKAAoK,CACrK;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAC7B,+CAA+C,CAChD;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CACpD,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { HTTPValidationError } from "./httpvalidationerror.js";
|
|
3
|
-
import {
|
|
3
|
+
import { TestResponse } from "./testresponse.js";
|
|
4
4
|
import { TestUpdate } from "./testupdate.js";
|
|
5
5
|
export type UpdateTestEndpointTestsTestUuidPutRequest = {
|
|
6
6
|
test_uuid: string;
|
|
@@ -8,6 +8,6 @@ export type UpdateTestEndpointTestsTestUuidPutRequest = {
|
|
|
8
8
|
body: TestUpdate;
|
|
9
9
|
};
|
|
10
10
|
export declare const UpdateTestEndpointTestsTestUuidPutRequest$zodSchema: z.ZodType<UpdateTestEndpointTestsTestUuidPutRequest>;
|
|
11
|
-
export type UpdateTestEndpointTestsTestUuidPutResponse =
|
|
11
|
+
export type UpdateTestEndpointTestsTestUuidPutResponse = TestResponse | HTTPValidationError;
|
|
12
12
|
export declare const UpdateTestEndpointTestsTestUuidPutResponse$zodSchema: z.ZodType<UpdateTestEndpointTestsTestUuidPutResponse>;
|
|
13
13
|
//# sourceMappingURL=updatetestendpointteststestuuidputop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatetestendpointteststestuuidputop.d.ts","sourceRoot":"","sources":["../../src/models/updatetestendpointteststestuuidputop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"updatetestendpointteststestuuidputop.d.ts","sourceRoot":"","sources":["../../src/models/updatetestendpointteststestuuidputop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAA0B,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAwB,MAAM,iBAAiB,CAAC;AAEnE,MAAM,MAAM,yCAAyC,GAAG;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,yCAAyC,CAKzC,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAClD,YAAY,GACZ,mBAAmB,CAAC;AAExB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,0CAA0C,CAI1C,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
|
|
6
|
-
import {
|
|
6
|
+
import { TestResponse$zodSchema } from "./testresponse.js";
|
|
7
7
|
import { TestUpdate$zodSchema } from "./testupdate.js";
|
|
8
8
|
export const UpdateTestEndpointTestsTestUuidPutRequest$zodSchema = z.object({
|
|
9
9
|
body: TestUpdate$zodSchema,
|
|
@@ -11,7 +11,7 @@ export const UpdateTestEndpointTestsTestUuidPutRequest$zodSchema = z.object({
|
|
|
11
11
|
xAPIKey: z.string().nullable().optional(),
|
|
12
12
|
});
|
|
13
13
|
export const UpdateTestEndpointTestsTestUuidPutResponse$zodSchema = z.union([
|
|
14
|
-
|
|
14
|
+
TestResponse$zodSchema,
|
|
15
15
|
HTTPValidationError$zodSchema,
|
|
16
16
|
]);
|
|
17
17
|
//# sourceMappingURL=updatetestendpointteststestuuidputop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatetestendpointteststestuuidputop.js","sourceRoot":"","sources":["../../src/models/updatetestendpointteststestuuidputop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"updatetestendpointteststestuuidputop.js","sourceRoot":"","sources":["../../src/models/updatetestendpointteststestuuidputop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAgB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAc,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAQnE,MAAM,CAAC,MAAM,mDAAmD,GAE5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,oDAAoD,GAE7D,CAAC,CAAC,KAAK,CAAC;IACV,sBAAsB;IACtB,6BAA6B;CAC9B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -95,6 +95,11 @@ async function $do(
|
|
|
95
95
|
const path$ = pathToFunc("/agent-tests/agent/{agent_uuid}/tests")(
|
|
96
96
|
pathParams$,
|
|
97
97
|
);
|
|
98
|
+
const query$ = encodeFormQuery({
|
|
99
|
+
"limit": payload$.limit,
|
|
100
|
+
"offset": payload$.offset,
|
|
101
|
+
"q": payload$.q,
|
|
102
|
+
});
|
|
98
103
|
|
|
99
104
|
const headers$ = new Headers(compactMap({
|
|
100
105
|
Accept: "application/json",
|
|
@@ -132,6 +137,7 @@ async function $do(
|
|
|
132
137
|
baseURL: options?.serverURL,
|
|
133
138
|
path: path$,
|
|
134
139
|
headers: headers$,
|
|
140
|
+
query: query$,
|
|
135
141
|
body: body$,
|
|
136
142
|
userAgent: client$._options.userAgent,
|
|
137
143
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -96,6 +96,13 @@ async function $do(
|
|
|
96
96
|
const path$ = pathToFunc("/agent-tests/agent/{agent_uuid}/runs")(
|
|
97
97
|
pathParams$,
|
|
98
98
|
);
|
|
99
|
+
const query$ = encodeFormQuery({
|
|
100
|
+
"has_failures": payload$.has_failures,
|
|
101
|
+
"limit": payload$.limit,
|
|
102
|
+
"offset": payload$.offset,
|
|
103
|
+
"status": payload$.status,
|
|
104
|
+
"type": payload$.type,
|
|
105
|
+
});
|
|
99
106
|
|
|
100
107
|
const headers$ = new Headers(compactMap({
|
|
101
108
|
Accept: "application/json",
|
|
@@ -132,6 +139,7 @@ async function $do(
|
|
|
132
139
|
baseURL: options?.serverURL,
|
|
133
140
|
path: path$,
|
|
134
141
|
headers: headers$,
|
|
142
|
+
query: query$,
|
|
135
143
|
body: body$,
|
|
136
144
|
userAgent: client$._options.userAgent,
|
|
137
145
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
package/src/funcs/agentsList.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -84,6 +84,11 @@ async function $do(
|
|
|
84
84
|
const payload$ = parsed$.value;
|
|
85
85
|
const body$ = null;
|
|
86
86
|
const path$ = pathToFunc("/agents")();
|
|
87
|
+
const query$ = encodeFormQuery({
|
|
88
|
+
"limit": payload$?.limit,
|
|
89
|
+
"offset": payload$?.offset,
|
|
90
|
+
"q": payload$?.q,
|
|
91
|
+
});
|
|
87
92
|
|
|
88
93
|
const headers$ = new Headers(compactMap({
|
|
89
94
|
Accept: "application/json",
|
|
@@ -120,6 +125,7 @@ async function $do(
|
|
|
120
125
|
baseURL: options?.serverURL,
|
|
121
126
|
path: path$,
|
|
122
127
|
headers: headers$,
|
|
128
|
+
query: query$,
|
|
123
129
|
body: body$,
|
|
124
130
|
userAgent: client$._options.userAgent,
|
|
125
131
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -87,6 +87,11 @@ async function $do(
|
|
|
87
87
|
const payload$ = parsed$.value;
|
|
88
88
|
const body$ = null;
|
|
89
89
|
const path$ = pathToFunc("/annotation-tasks")();
|
|
90
|
+
const query$ = encodeFormQuery({
|
|
91
|
+
"limit": payload$?.limit,
|
|
92
|
+
"offset": payload$?.offset,
|
|
93
|
+
"q": payload$?.q,
|
|
94
|
+
});
|
|
90
95
|
|
|
91
96
|
const headers$ = new Headers(compactMap({
|
|
92
97
|
Accept: "application/json",
|
|
@@ -123,6 +128,7 @@ async function $do(
|
|
|
123
128
|
baseURL: options?.serverURL,
|
|
124
129
|
path: path$,
|
|
125
130
|
headers: headers$,
|
|
131
|
+
query: query$,
|
|
126
132
|
body: body$,
|
|
127
133
|
userAgent: client$._options.userAgent,
|
|
128
134
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
@@ -89,6 +89,9 @@ async function $do(
|
|
|
89
89
|
"data_type": payload$?.data_type,
|
|
90
90
|
"evaluator_type": payload$?.evaluator_type,
|
|
91
91
|
"include_defaults": payload$?.include_defaults,
|
|
92
|
+
"limit": payload$?.limit,
|
|
93
|
+
"offset": payload$?.offset,
|
|
94
|
+
"q": payload$?.q,
|
|
92
95
|
});
|
|
93
96
|
|
|
94
97
|
const headers$ = new Headers(compactMap({
|
package/src/funcs/testsList.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CalibrateMcpCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -84,6 +84,11 @@ async function $do(
|
|
|
84
84
|
const payload$ = parsed$.value;
|
|
85
85
|
const body$ = null;
|
|
86
86
|
const path$ = pathToFunc("/tests")();
|
|
87
|
+
const query$ = encodeFormQuery({
|
|
88
|
+
"limit": payload$?.limit,
|
|
89
|
+
"offset": payload$?.offset,
|
|
90
|
+
"q": payload$?.q,
|
|
91
|
+
});
|
|
87
92
|
|
|
88
93
|
const headers$ = new Headers(compactMap({
|
|
89
94
|
Accept: "application/json",
|
|
@@ -120,6 +125,7 @@ async function $do(
|
|
|
120
125
|
baseURL: options?.serverURL,
|
|
121
126
|
path: path$,
|
|
122
127
|
headers: headers$,
|
|
128
|
+
query: query$,
|
|
123
129
|
body: body$,
|
|
124
130
|
userAgent: client$._options.userAgent,
|
|
125
131
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
package/src/landing-page.ts
CHANGED
|
@@ -930,7 +930,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
930
930
|
<h1>Instructions</h1>
|
|
931
931
|
<p>One-click installation for Claude Desktop users</p>
|
|
932
932
|
<div class="instruction-item">
|
|
933
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
933
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.23/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
934
934
|
📥 Download MCP Bundle
|
|
935
935
|
</a>
|
|
936
936
|
</div>
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.1.0",
|
|
68
|
-
sdkVersion: "0.0.
|
|
68
|
+
sdkVersion: "0.0.23",
|
|
69
69
|
genVersion: "2.915.1",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/mcp-typescript 0.0.
|
|
71
|
+
"speakeasy-sdk/mcp-typescript 0.0.23 2.915.1 0.1.0 @dalmia/calibrate-mcp",
|
|
72
72
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* - `agent`: built inside Calibrate
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* - `connection`: your existing agent connected to Calibrate
|
|
13
|
+
*/
|
|
14
|
+
export const AgentSummaryType = {
|
|
15
|
+
Agent: "agent",
|
|
16
|
+
Connection: "connection",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* - `agent`: built inside Calibrate
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* - `connection`: your existing agent connected to Calibrate
|
|
23
|
+
*/
|
|
24
|
+
export type AgentSummaryType = ClosedEnum<typeof AgentSummaryType>;
|
|
25
|
+
|
|
26
|
+
export const AgentSummaryType$zodSchema = z.enum([
|
|
27
|
+
"agent",
|
|
28
|
+
"connection",
|
|
29
|
+
]).describe(
|
|
30
|
+
"- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate",
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
export type AgentSummary = {
|
|
34
|
+
uuid: string;
|
|
35
|
+
name: string;
|
|
36
|
+
type: AgentSummaryType;
|
|
37
|
+
updated_at: string;
|
|
38
|
+
connection_verified?: boolean | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const AgentSummary$zodSchema: z.ZodType<AgentSummary> = z.object({
|
|
42
|
+
connection_verified: z.boolean().nullable().optional().describe(
|
|
43
|
+
"Whether the agent's connection has been verified, for a `type=connection` agent",
|
|
44
|
+
),
|
|
45
|
+
name: z.string().describe("Name of the agent"),
|
|
46
|
+
type: AgentSummaryType$zodSchema.describe(
|
|
47
|
+
"- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate",
|
|
48
|
+
),
|
|
49
|
+
updated_at: z.string().describe(
|
|
50
|
+
"When the agent was last updated (ISO 8601 UTC)",
|
|
51
|
+
),
|
|
52
|
+
uuid: z.string().describe("ID of the agent"),
|
|
53
|
+
});
|
|
@@ -63,7 +63,7 @@ export const AnnotationTaskResponse$zodSchema: z.ZodType<
|
|
|
63
63
|
"The task's description",
|
|
64
64
|
),
|
|
65
65
|
evaluators: z.array(z.record(z.string(), z.any())).optional().describe(
|
|
66
|
-
"The evaluators linked to this task, in display order
|
|
66
|
+
"The evaluators linked to this task, in display order. Fetching one task by ID enriches each with its live version's rubric. Listing tasks returns lightweight metadata (uuid, name, type, position) only",
|
|
67
67
|
),
|
|
68
68
|
item_count: z.int().nullable().optional().describe(
|
|
69
69
|
"Number of items in the task",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { VariableSpec, VariableSpec$zodSchema } from "./variablespec.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Slim view of the live version for list results, carrying only what the list needs.
|
|
10
|
+
*/
|
|
11
|
+
export type EvaluatorLiveVersionSummary = {
|
|
12
|
+
uuid: string;
|
|
13
|
+
version_number: number;
|
|
14
|
+
judge_model: string;
|
|
15
|
+
variables?: Array<VariableSpec> | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const EvaluatorLiveVersionSummary$zodSchema: z.ZodType<
|
|
19
|
+
EvaluatorLiveVersionSummary
|
|
20
|
+
> = z.object({
|
|
21
|
+
judge_model: z.string().describe(
|
|
22
|
+
"The model that runs the judge, named the way its provider does, for example `openai/gpt-4.1` or `anthropic/claude-sonnet-4`",
|
|
23
|
+
),
|
|
24
|
+
uuid: z.string().describe("Version ID"),
|
|
25
|
+
variables: z.array(VariableSpec$zodSchema).nullable().optional().describe(
|
|
26
|
+
"Declared prompt variables",
|
|
27
|
+
),
|
|
28
|
+
version_number: z.int().describe(
|
|
29
|
+
"The version's number. The first version is 1, and it goes up by one for each new version of the evaluator",
|
|
30
|
+
),
|
|
31
|
+
}).describe(
|
|
32
|
+
"Slim view of the live version for list results, carrying only what the list needs.",
|
|
33
|
+
);
|
|
@@ -3,32 +3,85 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
7
|
-
AgentTestRunsResponse,
|
|
8
|
-
AgentTestRunsResponse$zodSchema,
|
|
9
|
-
} from "./agenttestrunsresponse.js";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
10
7
|
import {
|
|
11
8
|
HTTPValidationError,
|
|
12
9
|
HTTPValidationError$zodSchema,
|
|
13
10
|
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
PaginatedResponseAgentTestRunListItem,
|
|
13
|
+
PaginatedResponseAgentTestRunListItem$zodSchema,
|
|
14
|
+
} from "./paginatedresponseagenttestrunlistitem.js";
|
|
15
|
+
import { TaskStatus, TaskStatus$zodSchema } from "./taskstatus.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Filter by run type. Omit to return both:
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* - `llm-unit-test`: single runs of an agent's tests
|
|
22
|
+
* - `llm-benchmark`: multi-model comparisons
|
|
23
|
+
*/
|
|
24
|
+
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType = {
|
|
25
|
+
LlmUnitTest: "llm-unit-test",
|
|
26
|
+
LlmBenchmark: "llm-benchmark",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* Filter by run type. Omit to return both:
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* - `llm-unit-test`: single runs of an agent's tests
|
|
33
|
+
* - `llm-benchmark`: multi-model comparisons
|
|
34
|
+
*/
|
|
35
|
+
export type GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType = ClosedEnum<
|
|
36
|
+
typeof GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType$zodSchema = z
|
|
40
|
+
.enum([
|
|
41
|
+
"llm-unit-test",
|
|
42
|
+
"llm-benchmark",
|
|
43
|
+
]).describe(
|
|
44
|
+
"Filter by run type. Omit to return both:\n- `llm-unit-test`: single runs of an agent's tests\n- `llm-benchmark`: multi-model comparisons",
|
|
45
|
+
);
|
|
14
46
|
|
|
15
47
|
export type GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetRequest = {
|
|
16
48
|
agent_uuid: string;
|
|
49
|
+
type?: GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType | null | undefined;
|
|
50
|
+
status?: TaskStatus | null | undefined;
|
|
51
|
+
has_failures?: boolean | null | undefined;
|
|
52
|
+
limit?: number | null | undefined;
|
|
53
|
+
offset?: number | undefined;
|
|
17
54
|
xAPIKey?: string | null | undefined;
|
|
18
55
|
};
|
|
19
56
|
|
|
20
57
|
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetRequest$zodSchema:
|
|
21
58
|
z.ZodType<GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetRequest> = z.object({
|
|
22
59
|
agent_uuid: z.string().describe("Agent whose test runs to list"),
|
|
60
|
+
has_failures: z.boolean().describe(
|
|
61
|
+
"Filter by whether the run has any failing test case or model. `true` returns only runs with failures (or errors), `false` only clean runs. Omit for both",
|
|
62
|
+
).nullable().optional(),
|
|
63
|
+
limit: z.int().describe(
|
|
64
|
+
"Maximum number of items to return. Omit for no limit (all items)",
|
|
65
|
+
).nullable().optional(),
|
|
66
|
+
offset: z.int().default(0).describe(
|
|
67
|
+
"Number of items to skip before returning results",
|
|
68
|
+
),
|
|
69
|
+
status: TaskStatus$zodSchema.nullable().optional().describe(
|
|
70
|
+
"Filter by run status. Omit for all statuses",
|
|
71
|
+
),
|
|
72
|
+
type: GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetType$zodSchema
|
|
73
|
+
.nullable().optional().describe(
|
|
74
|
+
"Filter by run type. Omit to return both:\n- `llm-unit-test`: single runs of an agent's tests\n- `llm-benchmark`: multi-model comparisons",
|
|
75
|
+
),
|
|
23
76
|
xAPIKey: z.string().nullable().optional(),
|
|
24
77
|
});
|
|
25
78
|
|
|
26
79
|
export type GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetResponse =
|
|
27
|
-
|
|
|
80
|
+
| PaginatedResponseAgentTestRunListItem
|
|
28
81
|
| HTTPValidationError;
|
|
29
82
|
|
|
30
83
|
export const GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetResponse$zodSchema:
|
|
31
84
|
z.ZodType<GetAgentTestRunsAgentTestsAgentAgentUuidRunsGetResponse> = z.union([
|
|
32
|
-
|
|
85
|
+
PaginatedResponseAgentTestRunListItem$zodSchema,
|
|
33
86
|
HTTPValidationError$zodSchema,
|
|
34
87
|
]);
|
|
@@ -8,12 +8,15 @@ import {
|
|
|
8
8
|
HTTPValidationError$zodSchema,
|
|
9
9
|
} from "./httpvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
PaginatedResponseTestListResponse,
|
|
12
|
+
PaginatedResponseTestListResponse$zodSchema,
|
|
13
|
+
} from "./paginatedresponsetestlistresponse.js";
|
|
14
14
|
|
|
15
15
|
export type GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetRequest = {
|
|
16
16
|
agent_uuid: string;
|
|
17
|
+
q?: string | null | undefined;
|
|
18
|
+
limit?: number | null | undefined;
|
|
19
|
+
offset?: number | undefined;
|
|
17
20
|
xAPIKey?: string | null | undefined;
|
|
18
21
|
};
|
|
19
22
|
|
|
@@ -21,18 +24,25 @@ export const GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetRequest$zodSch
|
|
|
21
24
|
z.ZodType<GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetRequest> = z
|
|
22
25
|
.object({
|
|
23
26
|
agent_uuid: z.string().describe("Agent whose linked tests to list"),
|
|
27
|
+
limit: z.int().describe(
|
|
28
|
+
"Maximum number of items to return. Omit for no limit (all items)",
|
|
29
|
+
).nullable().optional(),
|
|
30
|
+
offset: z.int().default(0).describe(
|
|
31
|
+
"Number of items to skip before returning results",
|
|
32
|
+
),
|
|
33
|
+
q: z.string().describe(
|
|
34
|
+
"Case-insensitive substring search on `name`. Blank is a no-op",
|
|
35
|
+
).nullable().optional(),
|
|
24
36
|
xAPIKey: z.string().nullable().optional(),
|
|
25
37
|
});
|
|
26
38
|
|
|
27
39
|
export type GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetResponse =
|
|
28
|
-
|
|
|
40
|
+
| PaginatedResponseTestListResponse
|
|
29
41
|
| HTTPValidationError;
|
|
30
42
|
|
|
31
43
|
export const GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetResponse$zodSchema:
|
|
32
44
|
z.ZodType<GetAgentTestsEndpointAgentTestsAgentAgentUuidTestsGetResponse> = z
|
|
33
45
|
.union([
|
|
34
|
-
|
|
35
|
-
"Successful Response",
|
|
36
|
-
),
|
|
46
|
+
PaginatedResponseTestListResponse$zodSchema,
|
|
37
47
|
HTTPValidationError$zodSchema,
|
|
38
48
|
]);
|
|
@@ -7,10 +7,7 @@ import {
|
|
|
7
7
|
HTTPValidationError,
|
|
8
8
|
HTTPValidationError$zodSchema,
|
|
9
9
|
} from "./httpvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
RoutersTestsTestResponse,
|
|
12
|
-
RoutersTestsTestResponse$zodSchema,
|
|
13
|
-
} from "./routersteststestresponse.js";
|
|
10
|
+
import { TestResponse, TestResponse$zodSchema } from "./testresponse.js";
|
|
14
11
|
|
|
15
12
|
export type GetTestEndpointTestsTestUuidGetRequest = {
|
|
16
13
|
test_uuid: string;
|
|
@@ -25,12 +22,12 @@ export const GetTestEndpointTestsTestUuidGetRequest$zodSchema: z.ZodType<
|
|
|
25
22
|
});
|
|
26
23
|
|
|
27
24
|
export type GetTestEndpointTestsTestUuidGetResponse =
|
|
28
|
-
|
|
|
25
|
+
| TestResponse
|
|
29
26
|
| HTTPValidationError;
|
|
30
27
|
|
|
31
28
|
export const GetTestEndpointTestsTestUuidGetResponse$zodSchema: z.ZodType<
|
|
32
29
|
GetTestEndpointTestsTestUuidGetResponse
|
|
33
30
|
> = z.union([
|
|
34
|
-
|
|
31
|
+
TestResponse$zodSchema,
|
|
35
32
|
HTTPValidationError$zodSchema,
|
|
36
33
|
]);
|