@dalmia/calibrate-mcp 0.0.68 → 0.0.69
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 +83 -8
- package/bin/mcp-server.js.map +13 -9
- 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/annotationitempayload.d.ts +4 -1
- package/esm/models/annotationitempayload.d.ts.map +1 -1
- package/esm/models/annotationitempayload.js +5 -1
- package/esm/models/annotationitempayload.js.map +1 -1
- package/esm/models/chatturn.d.ts +14 -0
- package/esm/models/chatturn.d.ts.map +1 -0
- package/esm/models/chatturn.js +21 -0
- package/esm/models/chatturn.js.map +1 -0
- package/esm/models/itemmetadataentry.d.ts +10 -0
- package/esm/models/itemmetadataentry.d.ts.map +1 -0
- package/esm/models/itemmetadataentry.js +10 -0
- package/esm/models/itemmetadataentry.js.map +1 -0
- package/esm/models/itempayload.d.ts +29 -0
- package/esm/models/itempayload.d.ts.map +1 -0
- package/esm/models/itempayload.js +26 -0
- package/esm/models/itempayload.js.map +1 -0
- package/esm/models/itemupdatepayload.d.ts +4 -1
- package/esm/models/itemupdatepayload.d.ts.map +1 -1
- package/esm/models/itemupdatepayload.js +5 -1
- package/esm/models/itemupdatepayload.js.map +1 -1
- package/esm/models/toolcall.d.ts +14 -0
- package/esm/models/toolcall.d.ts.map +1 -0
- package/esm/models/toolcall.js +11 -0
- package/esm/models/toolcall.js.map +1 -0
- package/package.json +1 -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/annotationitempayload.ts +13 -3
- package/src/models/chatturn.ts +44 -0
- package/src/models/itemmetadataentry.ts +18 -0
- package/src/models/itempayload.ts +83 -0
- package/src/models/itemupdatepayload.ts +16 -3
- package/src/models/toolcall.ts +28 -0
package/esm/landing-page.js
CHANGED
|
@@ -915,7 +915,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
915
915
|
<h1>Instructions</h1>
|
|
916
916
|
<p>One-click installation for Claude Desktop users</p>
|
|
917
917
|
<div class="instruction-item">
|
|
918
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
918
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.69/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
919
919
|
📥 Download MCP Bundle
|
|
920
920
|
</a>
|
|
921
921
|
</div>
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.1.0";
|
|
38
|
-
readonly sdkVersion: "0.0.
|
|
38
|
+
readonly sdkVersion: "0.0.69";
|
|
39
39
|
readonly genVersion: "2.915.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/mcp-typescript 0.0.69 2.915.1 0.1.0 @dalmia/calibrate-mcp";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.1.0",
|
|
30
|
-
sdkVersion: "0.0.
|
|
30
|
+
sdkVersion: "0.0.69",
|
|
31
31
|
genVersion: "2.915.1",
|
|
32
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
32
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.69 2.915.1 0.1.0 @dalmia/calibrate-mcp",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
package/esm/mcp-server/server.js
CHANGED
|
@@ -51,7 +51,7 @@ import { tool$tracesCreate } from "./tools/tracesCreate.js";
|
|
|
51
51
|
export function createMCPServer(deps) {
|
|
52
52
|
const server = new McpServer({
|
|
53
53
|
name: "CalibrateMcp",
|
|
54
|
-
version: "0.0.
|
|
54
|
+
version: "0.0.69",
|
|
55
55
|
});
|
|
56
56
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
57
57
|
security: deps.security,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ItemMetadataEntry } from "./itemmetadataentry.js";
|
|
3
|
+
import { ItemPayload } from "./itempayload.js";
|
|
2
4
|
export type AnnotationItemPayload = {
|
|
3
|
-
payload
|
|
5
|
+
payload: ItemPayload;
|
|
6
|
+
metadata?: Array<ItemMetadataEntry> | null | undefined;
|
|
4
7
|
annotations?: {
|
|
5
8
|
[k: string]: any;
|
|
6
9
|
} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotationitempayload.d.ts","sourceRoot":"","sources":["../../src/models/annotationitempayload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"annotationitempayload.d.ts","sourceRoot":"","sources":["../../src/models/annotationitempayload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,WAAW,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,iBAAiB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7D,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAgBzE,CAAC"}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
|
+
import { ItemMetadataEntry$zodSchema, } from "./itemmetadataentry.js";
|
|
6
|
+
import { ItemPayload$zodSchema } from "./itempayload.js";
|
|
5
7
|
export const AnnotationItemPayload$zodSchema = z.object({
|
|
6
8
|
annotations: z.record(z.string(), z.any()).nullable().optional().describe("Human annotations to seed, keyed by evaluator ID. Each evaluator ID must be linked to the task. Put the judgement in `value`, a bool for binary or a number for rating, with optional `reasoning`. Requires `annotator_id`"),
|
|
7
9
|
evaluator_results: z.record(z.string(), z.any()).nullable().optional()
|
|
8
10
|
.describe("Evaluator scores to record, keyed by evaluator ID. Each evaluator ID must be linked to the task. Put the score in `value`, a bool for binary or a number within the scale for rating, with optional `reasoning` and `version_number`. Omit `version_number` to record against the evaluator's live version. An item recording a tool call takes the tool-call evaluator and no other, and every other item takes any evaluator except that one"),
|
|
9
|
-
|
|
11
|
+
metadata: z.array(ItemMetadataEntry$zodSchema).nullable().optional()
|
|
12
|
+
.describe("Key-value pairs stored with the item and shown beside it on the labelling form. Omit if you have none"),
|
|
13
|
+
payload: ItemPayload$zodSchema.describe("What an annotation item holds. Which fields apply depends on the task type"),
|
|
10
14
|
});
|
|
11
15
|
//# sourceMappingURL=annotationitempayload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotationitempayload.js","sourceRoot":"","sources":["../../src/models/annotationitempayload.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"annotationitempayload.js","sourceRoot":"","sources":["../../src/models/annotationitempayload.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAe,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAStE,MAAM,CAAC,MAAM,+BAA+B,GAC1C,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACvE,4NAA4N,CAC7N;IACD,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SACnE,QAAQ,CACP,gbAAgb,CACjb;IACH,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SACjE,QAAQ,CACP,uGAAuG,CACxG;IACH,OAAO,EAAE,qBAAqB,CAAC,QAAQ,CACrC,4EAA4E,CAC7E;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* One message in a conversation, in OpenAI chat format
|
|
4
|
+
*/
|
|
5
|
+
export type ChatTurn = {
|
|
6
|
+
role: string;
|
|
7
|
+
content?: string | null | undefined;
|
|
8
|
+
AdditionalProperties?: {
|
|
9
|
+
[k: string]: any;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare const ChatTurn$zodSchema: z.ZodType<ChatTurn>;
|
|
13
|
+
export declare const ChatTurn$zodSchemaOutbound: z.ZodType<any>;
|
|
14
|
+
//# sourceMappingURL=chatturn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatturn.d.ts","sourceRoot":"","sources":["../../src/models/chatturn.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAalD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAYrD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { collectExtraKeys as collectExtraKeys$ } from "../lib/schemas.js";
|
|
6
|
+
export const ChatTurn$zodSchema = collectExtraKeys$(z.object({
|
|
7
|
+
content: z.string().nullable().optional().describe("Message text. Omit for turns that only carry tool calls"),
|
|
8
|
+
role: z.string().describe("Message author role in the conversation history"),
|
|
9
|
+
}).describe("One message in a conversation, in OpenAI chat format").catchall(z.any()), "AdditionalProperties", true);
|
|
10
|
+
export const ChatTurn$zodSchemaOutbound = z.object({
|
|
11
|
+
AdditionalProperties: z.record(z.string(), z.any()).optional(),
|
|
12
|
+
content: z.nullable(z.string()).optional(),
|
|
13
|
+
role: z.string(),
|
|
14
|
+
}).describe("One message in a conversation, in OpenAI chat format").transform((v) => {
|
|
15
|
+
const { AdditionalProperties, ...rest } = v;
|
|
16
|
+
return {
|
|
17
|
+
...rest,
|
|
18
|
+
...AdditionalProperties,
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=chatturn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatturn.js","sourceRoot":"","sources":["../../src/models/chatturn.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAW1E,MAAM,CAAC,MAAM,kBAAkB,GAAwB,iBAAiB,CACtE,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAChD,yDAAyD,CAC1D;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CACvB,iDAAiD,CAClD;CACF,CAAC,CAAC,QAAQ,CAAC,sDAAsD,CAAC,CAAC,QAAQ,CAC1E,CAAC,CAAC,GAAG,EAAE,CACR,EACD,sBAAsB,EACtB,IAAI,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAmB,CAAC,CAAC,MAAM,CAAC;IACjE,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC,QAAQ,CAAC,sDAAsD,CAAC,CAAC,SAAS,CAC3E,CAAC,CAAC,EAAE,EAAE;IACJ,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC;IAC5C,OAAO;QACL,GAAG,IAAI;QACP,GAAG,oBAAoB;KACxB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* One key-value pair stored with an item and shown beside it on the labelling form
|
|
4
|
+
*/
|
|
5
|
+
export type ItemMetadataEntry = {
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ItemMetadataEntry$zodSchema: z.ZodType<ItemMetadataEntry>;
|
|
10
|
+
//# sourceMappingURL=itemmetadataentry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemmetadataentry.d.ts","sourceRoot":"","sources":["../../src/models/itemmetadataentry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAMlE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const ItemMetadataEntry$zodSchema = z
|
|
6
|
+
.object({
|
|
7
|
+
key: z.string().describe("Name of the metadata entry"),
|
|
8
|
+
value: z.string().describe("Value of the metadata entry"),
|
|
9
|
+
}).describe("One key-value pair stored with an item and shown beside it on the labelling form");
|
|
10
|
+
//# sourceMappingURL=itemmetadataentry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemmetadataentry.js","sourceRoot":"","sources":["../../src/models/itemmetadataentry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAOzB,MAAM,CAAC,MAAM,2BAA2B,GAAiC,CAAC;KACvE,MAAM,CAAC;IACN,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACtD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;CAC1D,CAAC,CAAC,QAAQ,CACT,kFAAkF,CACnF,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ChatTurn } from "./chatturn.js";
|
|
3
|
+
import { ToolCall } from "./toolcall.js";
|
|
4
|
+
/**
|
|
5
|
+
* What an annotation item holds. Which fields apply depends on the task type
|
|
6
|
+
*/
|
|
7
|
+
export type ItemPayload = {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string | null | undefined;
|
|
10
|
+
reference_transcript?: string | null | undefined;
|
|
11
|
+
predicted_transcript?: string | null | undefined;
|
|
12
|
+
text?: string | null | undefined;
|
|
13
|
+
audio_path?: string | null | undefined;
|
|
14
|
+
chat_history?: Array<ChatTurn> | null | undefined;
|
|
15
|
+
agent_response?: string | null | undefined;
|
|
16
|
+
input?: string | null | undefined;
|
|
17
|
+
output?: string | null | undefined;
|
|
18
|
+
transcript?: Array<ChatTurn> | null | undefined;
|
|
19
|
+
tool_calls?: Array<ToolCall> | null | undefined;
|
|
20
|
+
expected_tool_calls?: Array<ToolCall> | null | undefined;
|
|
21
|
+
actual_tool_calls?: Array<ToolCall> | null | undefined;
|
|
22
|
+
evaluator_variables?: {
|
|
23
|
+
[k: string]: {
|
|
24
|
+
[k: string]: any;
|
|
25
|
+
};
|
|
26
|
+
} | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const ItemPayload$zodSchema: z.ZodType<ItemPayload>;
|
|
29
|
+
//# sourceMappingURL=itempayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itempayload.d.ts","sourceRoot":"","sources":["../../src/models/itempayload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD,iBAAiB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,mBAAmB,CAAC,EAChB;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;SAAE,CAAA;KAAE,GACrC,IAAI,GACJ,SAAS,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAkDxD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { ChatTurn$zodSchema } from "./chatturn.js";
|
|
6
|
+
import { ToolCall$zodSchema } from "./toolcall.js";
|
|
7
|
+
export const ItemPayload$zodSchema = z.object({
|
|
8
|
+
actual_tool_calls: z.array(ToolCall$zodSchema).nullable().optional().describe("Tool calls the agent made. Sending this marks the item as a tool call for a person to judge. For `llm` and `llm-general` tasks"),
|
|
9
|
+
agent_response: z.string().nullable().optional().describe("The reply to judge. An empty string when the reply was a tool call. For `llm` tasks"),
|
|
10
|
+
audio_path: z.string().nullable().optional().describe("Storage key or `s3://` URI of the audio clip. For `tts` tasks"),
|
|
11
|
+
chat_history: z.array(ChatTurn$zodSchema).nullable().optional().describe("The conversation up to the reply being judged, ending at the user turn. For `llm` tasks"),
|
|
12
|
+
description: z.string().nullable().optional().describe("A description of the item. For every task type"),
|
|
13
|
+
evaluator_variables: z.record(z.string(), z.record(z.string(), z.any()))
|
|
14
|
+
.nullable().optional().describe("Values for each evaluator's `{{\"{{\"}}variable}}` placeholders, keyed by evaluator ID. For `llm`, `llm-general` and `conversation` tasks"),
|
|
15
|
+
expected_tool_calls: z.array(ToolCall$zodSchema).nullable().optional()
|
|
16
|
+
.describe("Tool calls the agent should have made. Sending this marks the item as a tool call for a person to judge. For `llm` and `llm-general` tasks"),
|
|
17
|
+
input: z.string().nullable().optional().describe("The standalone input the agent was given. For `llm-general` tasks"),
|
|
18
|
+
name: z.string().describe("Name of the item, unique within the task. For every task type"),
|
|
19
|
+
output: z.string().nullable().optional().describe("The output to judge. For `llm-general` tasks"),
|
|
20
|
+
predicted_transcript: z.string().nullable().optional().describe("The transcript to judge. For `stt` tasks"),
|
|
21
|
+
reference_transcript: z.string().nullable().optional().describe("The correct transcript. For `stt` tasks"),
|
|
22
|
+
text: z.string().nullable().optional().describe("The text that was spoken. For `tts` tasks"),
|
|
23
|
+
tool_calls: z.array(ToolCall$zodSchema).nullable().optional().describe("Tool calls the agent made in place of a text reply. With no text reply, sending this marks the item as a tool call for a person to judge. For `llm` and `llm-general` tasks"),
|
|
24
|
+
transcript: z.array(ChatTurn$zodSchema).nullable().optional().describe("The full conversation to judge. For `conversation` tasks"),
|
|
25
|
+
}).describe("What an annotation item holds. Which fields apply depends on the task type");
|
|
26
|
+
//# sourceMappingURL=itempayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itempayload.js","sourceRoot":"","sources":["../../src/models/itempayload.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAY,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAY,kBAAkB,EAAE,MAAM,eAAe,CAAC;AA0B7D,MAAM,CAAC,MAAM,qBAAqB,GAA2B,CAAC,CAAC,MAAM,CAAC;IACpE,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3E,gIAAgI,CACjI;IACD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACvD,qFAAqF,CACtF;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnD,+DAA+D,CAChE;IACD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACtE,yFAAyF,CAC1F;IACD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpD,gDAAgD,CACjD;IACD,mBAAmB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;SACrE,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7B,2IAA2I,CAC5I;IACH,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SACnE,QAAQ,CACP,4IAA4I,CAC7I;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9C,mEAAmE,CACpE;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CACvB,+DAA+D,CAChE;IACD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/C,8CAA8C,CAC/C;IACD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7D,0CAA0C,CAC3C;IACD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7D,yCAAyC,CAC1C;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7C,2CAA2C,CAC5C;IACD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpE,6KAA6K,CAC9K;IACD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpE,0DAA0D,CAC3D;CACF,CAAC,CAAC,QAAQ,CACT,4EAA4E,CAC7E,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ItemMetadataEntry } from "./itemmetadataentry.js";
|
|
3
|
+
import { ItemPayload } from "./itempayload.js";
|
|
2
4
|
export type ItemUpdatePayload = {
|
|
3
5
|
uuid: string;
|
|
4
|
-
payload
|
|
6
|
+
payload: ItemPayload;
|
|
7
|
+
metadata?: Array<ItemMetadataEntry> | null | undefined;
|
|
5
8
|
};
|
|
6
9
|
export declare const ItemUpdatePayload$zodSchema: z.ZodType<ItemUpdatePayload>;
|
|
7
10
|
//# sourceMappingURL=itemupdatepayload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemupdatepayload.d.ts","sourceRoot":"","sources":["../../src/models/itemupdatepayload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"itemupdatepayload.d.ts","sourceRoot":"","sources":["../../src/models/itemupdatepayload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC;AAEtE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAUjE,CAAC"}
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
|
+
import { ItemMetadataEntry$zodSchema, } from "./itemmetadataentry.js";
|
|
6
|
+
import { ItemPayload$zodSchema } from "./itempayload.js";
|
|
5
7
|
export const ItemUpdatePayload$zodSchema = z
|
|
6
8
|
.object({
|
|
7
|
-
|
|
9
|
+
metadata: z.array(ItemMetadataEntry$zodSchema).nullable().optional()
|
|
10
|
+
.describe("Key-value pairs stored with the item and shown beside it on the labelling form. Omit to leave the stored pairs as they are. Send an empty list to clear them"),
|
|
11
|
+
payload: ItemPayload$zodSchema.describe("What an annotation item holds. Which fields apply depends on the task type"),
|
|
8
12
|
uuid: z.string().describe("ID of the item to update"),
|
|
9
13
|
});
|
|
10
14
|
//# sourceMappingURL=itemupdatepayload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemupdatepayload.js","sourceRoot":"","sources":["../../src/models/itemupdatepayload.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"itemupdatepayload.js","sourceRoot":"","sources":["../../src/models/itemupdatepayload.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAe,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAQtE,MAAM,CAAC,MAAM,2BAA2B,GAAiC,CAAC;KACvE,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SACjE,QAAQ,CACP,8JAA8J,CAC/J;IACH,OAAO,EAAE,qBAAqB,CAAC,QAAQ,CACrC,4EAA4E,CAC7E;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CACtD,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* One call to a tool
|
|
4
|
+
*/
|
|
5
|
+
export type ToolCall = {
|
|
6
|
+
tool: string;
|
|
7
|
+
arguments?: {
|
|
8
|
+
[k: string]: any;
|
|
9
|
+
} | null | undefined;
|
|
10
|
+
output?: any | undefined;
|
|
11
|
+
accept_any_arguments?: boolean | null | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const ToolCall$zodSchema: z.ZodType<ToolCall>;
|
|
14
|
+
//# sourceMappingURL=toolcall.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolcall.d.ts","sourceRoot":"","sources":["../../src/models/toolcall.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAWlB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const ToolCall$zodSchema = z.object({
|
|
6
|
+
accept_any_arguments: z.boolean().nullable().optional().describe("When `true`, only the tool name had to match and `arguments` was ignored. Carried over from a tool-call test's expected calls"),
|
|
7
|
+
arguments: z.record(z.string(), z.any()).nullable().optional().describe("Argument values the agent passed to the tool. Omit when the call had none"),
|
|
8
|
+
output: z.any().optional().describe("What the tool returned for this call. Any JSON value. Omit when you do not record it"),
|
|
9
|
+
tool: z.string().describe("Name of the tool the agent called"),
|
|
10
|
+
}).describe("One call to a tool");
|
|
11
|
+
//# sourceMappingURL=toolcall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolcall.js","sourceRoot":"","sources":["../../src/models/toolcall.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAYzB,MAAM,CAAC,MAAM,kBAAkB,GAAwB,CAAC,CAAC,MAAM,CAAC;IAC9D,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9D,+HAA+H,CAChI;IACD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACrE,2EAA2E,CAC5E;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjC,sFAAsF,CACvF;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;CAC/D,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC"}
|
package/package.json
CHANGED
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.69/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.69",
|
|
69
69
|
genVersion: "2.915.1",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/mcp-typescript 0.0.
|
|
71
|
+
"speakeasy-sdk/mcp-typescript 0.0.69 2.915.1 0.1.0 @dalmia/calibrate-mcp",
|
|
72
72
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -3,9 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
ItemMetadataEntry,
|
|
8
|
+
ItemMetadataEntry$zodSchema,
|
|
9
|
+
} from "./itemmetadataentry.js";
|
|
10
|
+
import { ItemPayload, ItemPayload$zodSchema } from "./itempayload.js";
|
|
6
11
|
|
|
7
12
|
export type AnnotationItemPayload = {
|
|
8
|
-
payload
|
|
13
|
+
payload: ItemPayload;
|
|
14
|
+
metadata?: Array<ItemMetadataEntry> | null | undefined;
|
|
9
15
|
annotations?: { [k: string]: any } | null | undefined;
|
|
10
16
|
evaluator_results?: { [k: string]: any } | null | undefined;
|
|
11
17
|
};
|
|
@@ -19,7 +25,11 @@ export const AnnotationItemPayload$zodSchema: z.ZodType<AnnotationItemPayload> =
|
|
|
19
25
|
.describe(
|
|
20
26
|
"Evaluator scores to record, keyed by evaluator ID. Each evaluator ID must be linked to the task. Put the score in `value`, a bool for binary or a number within the scale for rating, with optional `reasoning` and `version_number`. Omit `version_number` to record against the evaluator's live version. An item recording a tool call takes the tool-call evaluator and no other, and every other item takes any evaluator except that one",
|
|
21
27
|
),
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
metadata: z.array(ItemMetadataEntry$zodSchema).nullable().optional()
|
|
29
|
+
.describe(
|
|
30
|
+
"Key-value pairs stored with the item and shown beside it on the labelling form. Omit if you have none",
|
|
31
|
+
),
|
|
32
|
+
payload: ItemPayload$zodSchema.describe(
|
|
33
|
+
"What an annotation item holds. Which fields apply depends on the task type",
|
|
24
34
|
),
|
|
25
35
|
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { collectExtraKeys as collectExtraKeys$ } from "../lib/schemas.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* One message in a conversation, in OpenAI chat format
|
|
10
|
+
*/
|
|
11
|
+
export type ChatTurn = {
|
|
12
|
+
role: string;
|
|
13
|
+
content?: string | null | undefined;
|
|
14
|
+
AdditionalProperties?: { [k: string]: any };
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const ChatTurn$zodSchema: z.ZodType<ChatTurn> = collectExtraKeys$(
|
|
18
|
+
z.object({
|
|
19
|
+
content: z.string().nullable().optional().describe(
|
|
20
|
+
"Message text. Omit for turns that only carry tool calls",
|
|
21
|
+
),
|
|
22
|
+
role: z.string().describe(
|
|
23
|
+
"Message author role in the conversation history",
|
|
24
|
+
),
|
|
25
|
+
}).describe("One message in a conversation, in OpenAI chat format").catchall(
|
|
26
|
+
z.any(),
|
|
27
|
+
),
|
|
28
|
+
"AdditionalProperties",
|
|
29
|
+
true,
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
export const ChatTurn$zodSchemaOutbound: z.ZodType<any> = z.object({
|
|
33
|
+
AdditionalProperties: z.record(z.string(), z.any()).optional(),
|
|
34
|
+
content: z.nullable(z.string()).optional(),
|
|
35
|
+
role: z.string(),
|
|
36
|
+
}).describe("One message in a conversation, in OpenAI chat format").transform(
|
|
37
|
+
(v) => {
|
|
38
|
+
const { AdditionalProperties, ...rest } = v;
|
|
39
|
+
return {
|
|
40
|
+
...rest,
|
|
41
|
+
...AdditionalProperties,
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* One key-value pair stored with an item and shown beside it on the labelling form
|
|
9
|
+
*/
|
|
10
|
+
export type ItemMetadataEntry = { key: string; value: string };
|
|
11
|
+
|
|
12
|
+
export const ItemMetadataEntry$zodSchema: z.ZodType<ItemMetadataEntry> = z
|
|
13
|
+
.object({
|
|
14
|
+
key: z.string().describe("Name of the metadata entry"),
|
|
15
|
+
value: z.string().describe("Value of the metadata entry"),
|
|
16
|
+
}).describe(
|
|
17
|
+
"One key-value pair stored with an item and shown beside it on the labelling form",
|
|
18
|
+
);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ChatTurn, ChatTurn$zodSchema } from "./chatturn.js";
|
|
7
|
+
import { ToolCall, ToolCall$zodSchema } from "./toolcall.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* What an annotation item holds. Which fields apply depends on the task type
|
|
11
|
+
*/
|
|
12
|
+
export type ItemPayload = {
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string | null | undefined;
|
|
15
|
+
reference_transcript?: string | null | undefined;
|
|
16
|
+
predicted_transcript?: string | null | undefined;
|
|
17
|
+
text?: string | null | undefined;
|
|
18
|
+
audio_path?: string | null | undefined;
|
|
19
|
+
chat_history?: Array<ChatTurn> | null | undefined;
|
|
20
|
+
agent_response?: string | null | undefined;
|
|
21
|
+
input?: string | null | undefined;
|
|
22
|
+
output?: string | null | undefined;
|
|
23
|
+
transcript?: Array<ChatTurn> | null | undefined;
|
|
24
|
+
tool_calls?: Array<ToolCall> | null | undefined;
|
|
25
|
+
expected_tool_calls?: Array<ToolCall> | null | undefined;
|
|
26
|
+
actual_tool_calls?: Array<ToolCall> | null | undefined;
|
|
27
|
+
evaluator_variables?:
|
|
28
|
+
| { [k: string]: { [k: string]: any } }
|
|
29
|
+
| null
|
|
30
|
+
| undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const ItemPayload$zodSchema: z.ZodType<ItemPayload> = z.object({
|
|
34
|
+
actual_tool_calls: z.array(ToolCall$zodSchema).nullable().optional().describe(
|
|
35
|
+
"Tool calls the agent made. Sending this marks the item as a tool call for a person to judge. For `llm` and `llm-general` tasks",
|
|
36
|
+
),
|
|
37
|
+
agent_response: z.string().nullable().optional().describe(
|
|
38
|
+
"The reply to judge. An empty string when the reply was a tool call. For `llm` tasks",
|
|
39
|
+
),
|
|
40
|
+
audio_path: z.string().nullable().optional().describe(
|
|
41
|
+
"Storage key or `s3://` URI of the audio clip. For `tts` tasks",
|
|
42
|
+
),
|
|
43
|
+
chat_history: z.array(ChatTurn$zodSchema).nullable().optional().describe(
|
|
44
|
+
"The conversation up to the reply being judged, ending at the user turn. For `llm` tasks",
|
|
45
|
+
),
|
|
46
|
+
description: z.string().nullable().optional().describe(
|
|
47
|
+
"A description of the item. For every task type",
|
|
48
|
+
),
|
|
49
|
+
evaluator_variables: z.record(z.string(), z.record(z.string(), z.any()))
|
|
50
|
+
.nullable().optional().describe(
|
|
51
|
+
"Values for each evaluator's `{{\"{{\"}}variable}}` placeholders, keyed by evaluator ID. For `llm`, `llm-general` and `conversation` tasks",
|
|
52
|
+
),
|
|
53
|
+
expected_tool_calls: z.array(ToolCall$zodSchema).nullable().optional()
|
|
54
|
+
.describe(
|
|
55
|
+
"Tool calls the agent should have made. Sending this marks the item as a tool call for a person to judge. For `llm` and `llm-general` tasks",
|
|
56
|
+
),
|
|
57
|
+
input: z.string().nullable().optional().describe(
|
|
58
|
+
"The standalone input the agent was given. For `llm-general` tasks",
|
|
59
|
+
),
|
|
60
|
+
name: z.string().describe(
|
|
61
|
+
"Name of the item, unique within the task. For every task type",
|
|
62
|
+
),
|
|
63
|
+
output: z.string().nullable().optional().describe(
|
|
64
|
+
"The output to judge. For `llm-general` tasks",
|
|
65
|
+
),
|
|
66
|
+
predicted_transcript: z.string().nullable().optional().describe(
|
|
67
|
+
"The transcript to judge. For `stt` tasks",
|
|
68
|
+
),
|
|
69
|
+
reference_transcript: z.string().nullable().optional().describe(
|
|
70
|
+
"The correct transcript. For `stt` tasks",
|
|
71
|
+
),
|
|
72
|
+
text: z.string().nullable().optional().describe(
|
|
73
|
+
"The text that was spoken. For `tts` tasks",
|
|
74
|
+
),
|
|
75
|
+
tool_calls: z.array(ToolCall$zodSchema).nullable().optional().describe(
|
|
76
|
+
"Tool calls the agent made in place of a text reply. With no text reply, sending this marks the item as a tool call for a person to judge. For `llm` and `llm-general` tasks",
|
|
77
|
+
),
|
|
78
|
+
transcript: z.array(ChatTurn$zodSchema).nullable().optional().describe(
|
|
79
|
+
"The full conversation to judge. For `conversation` tasks",
|
|
80
|
+
),
|
|
81
|
+
}).describe(
|
|
82
|
+
"What an annotation item holds. Which fields apply depends on the task type",
|
|
83
|
+
);
|
|
@@ -3,13 +3,26 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
ItemMetadataEntry,
|
|
8
|
+
ItemMetadataEntry$zodSchema,
|
|
9
|
+
} from "./itemmetadataentry.js";
|
|
10
|
+
import { ItemPayload, ItemPayload$zodSchema } from "./itempayload.js";
|
|
6
11
|
|
|
7
|
-
export type ItemUpdatePayload = {
|
|
12
|
+
export type ItemUpdatePayload = {
|
|
13
|
+
uuid: string;
|
|
14
|
+
payload: ItemPayload;
|
|
15
|
+
metadata?: Array<ItemMetadataEntry> | null | undefined;
|
|
16
|
+
};
|
|
8
17
|
|
|
9
18
|
export const ItemUpdatePayload$zodSchema: z.ZodType<ItemUpdatePayload> = z
|
|
10
19
|
.object({
|
|
11
|
-
|
|
12
|
-
|
|
20
|
+
metadata: z.array(ItemMetadataEntry$zodSchema).nullable().optional()
|
|
21
|
+
.describe(
|
|
22
|
+
"Key-value pairs stored with the item and shown beside it on the labelling form. Omit to leave the stored pairs as they are. Send an empty list to clear them",
|
|
23
|
+
),
|
|
24
|
+
payload: ItemPayload$zodSchema.describe(
|
|
25
|
+
"What an annotation item holds. Which fields apply depends on the task type",
|
|
13
26
|
),
|
|
14
27
|
uuid: z.string().describe("ID of the item to update"),
|
|
15
28
|
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* One call to a tool
|
|
9
|
+
*/
|
|
10
|
+
export type ToolCall = {
|
|
11
|
+
tool: string;
|
|
12
|
+
arguments?: { [k: string]: any } | null | undefined;
|
|
13
|
+
output?: any | undefined;
|
|
14
|
+
accept_any_arguments?: boolean | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const ToolCall$zodSchema: z.ZodType<ToolCall> = z.object({
|
|
18
|
+
accept_any_arguments: z.boolean().nullable().optional().describe(
|
|
19
|
+
"When `true`, only the tool name had to match and `arguments` was ignored. Carried over from a tool-call test's expected calls",
|
|
20
|
+
),
|
|
21
|
+
arguments: z.record(z.string(), z.any()).nullable().optional().describe(
|
|
22
|
+
"Argument values the agent passed to the tool. Omit when the call had none",
|
|
23
|
+
),
|
|
24
|
+
output: z.any().optional().describe(
|
|
25
|
+
"What the tool returned for this call. Any JSON value. Omit when you do not record it",
|
|
26
|
+
),
|
|
27
|
+
tool: z.string().describe("Name of the tool the agent called"),
|
|
28
|
+
}).describe("One call to a tool");
|