@dalmia/calibrate-mcp 0.0.68 → 0.0.70
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 +123 -11
- package/bin/mcp-server.js.map +16 -11
- 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 +18 -0
- package/esm/models/chatturn.d.ts.map +1 -0
- package/esm/models/chatturn.js +25 -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 +45 -0
- package/esm/models/itempayload.d.ts.map +1 -0
- package/esm/models/itempayload.js +49 -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/esm/models/traceingest.d.ts +2 -2
- package/esm/models/traceingest.d.ts.map +1 -1
- package/esm/models/traceingest.js +1 -1
- package/esm/models/traceingest.js.map +1 -1
- package/esm/models/turntext.d.ts +13 -0
- package/esm/models/turntext.d.ts.map +1 -0
- package/esm/models/turntext.js +10 -0
- package/esm/models/turntext.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 +54 -0
- package/src/models/itemmetadataentry.ts +18 -0
- package/src/models/itempayload.ts +128 -0
- package/src/models/itemupdatepayload.ts +16 -3
- package/src/models/toolcall.ts +28 -0
- package/src/models/traceingest.ts +2 -2
- package/src/models/turntext.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.70/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.70";
|
|
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.70 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.70",
|
|
31
31
|
genVersion: "2.915.1",
|
|
32
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
32
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.70 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.70",
|
|
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,18 @@
|
|
|
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
|
+
label?: string | null | undefined;
|
|
9
|
+
versions?: {
|
|
10
|
+
[k: string]: string;
|
|
11
|
+
} | null | undefined;
|
|
12
|
+
AdditionalProperties?: {
|
|
13
|
+
[k: string]: any;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const ChatTurn$zodSchema: z.ZodType<ChatTurn>;
|
|
17
|
+
export declare const ChatTurn$zodSchemaOutbound: z.ZodType<any>;
|
|
18
|
+
//# 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,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,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,CAmBlD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAcrD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
label: z.string().nullable().optional().describe("Display name for the text in `content`, shown to annotators"),
|
|
9
|
+
role: z.string().describe("Message author role in the conversation history"),
|
|
10
|
+
versions: z.record(z.string(), z.string()).nullable().optional().describe("Other forms of the same text, such as a translation or a human rewrite, keyed by the name annotators see for each. Shown to annotators only"),
|
|
11
|
+
}).describe("One message in a conversation, in OpenAI chat format").catchall(z.any()), "AdditionalProperties", true);
|
|
12
|
+
export const ChatTurn$zodSchemaOutbound = z.object({
|
|
13
|
+
AdditionalProperties: z.record(z.string(), z.any()).optional(),
|
|
14
|
+
content: z.nullable(z.string()).optional(),
|
|
15
|
+
label: z.nullable(z.string()).optional(),
|
|
16
|
+
role: z.string(),
|
|
17
|
+
versions: z.nullable(z.record(z.string(), z.string())).optional(),
|
|
18
|
+
}).describe("One message in a conversation, in OpenAI chat format").transform((v) => {
|
|
19
|
+
const { AdditionalProperties, ...rest } = v;
|
|
20
|
+
return {
|
|
21
|
+
...rest,
|
|
22
|
+
...AdditionalProperties,
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
//# 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;AAa1E,MAAM,CAAC,MAAM,k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E;CAClE,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,45 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ChatTurn } from "./chatturn.js";
|
|
3
|
+
import { ToolCall } from "./toolcall.js";
|
|
4
|
+
import { TurnText } from "./turntext.js";
|
|
5
|
+
/**
|
|
6
|
+
* The reply to judge. An empty string when the reply was a tool call. For `llm` tasks
|
|
7
|
+
*/
|
|
8
|
+
export type AgentResponseUnion = TurnText | string;
|
|
9
|
+
export declare const AgentResponseUnion$zodSchema: z.ZodType<AgentResponseUnion>;
|
|
10
|
+
/**
|
|
11
|
+
* The standalone input the agent was given. For `llm-general` tasks
|
|
12
|
+
*/
|
|
13
|
+
export type ItemPayloadInput = TurnText | string;
|
|
14
|
+
export declare const ItemPayloadInput$zodSchema: z.ZodType<ItemPayloadInput>;
|
|
15
|
+
/**
|
|
16
|
+
* The output to judge. For `llm-general` tasks
|
|
17
|
+
*/
|
|
18
|
+
export type Output = TurnText | string;
|
|
19
|
+
export declare const Output$zodSchema: z.ZodType<Output>;
|
|
20
|
+
/**
|
|
21
|
+
* What an annotation item holds. Which fields apply depends on the task type
|
|
22
|
+
*/
|
|
23
|
+
export type ItemPayload = {
|
|
24
|
+
name: string;
|
|
25
|
+
description?: string | null | undefined;
|
|
26
|
+
reference_transcript?: string | null | undefined;
|
|
27
|
+
predicted_transcript?: string | null | undefined;
|
|
28
|
+
text?: string | null | undefined;
|
|
29
|
+
audio_path?: string | null | undefined;
|
|
30
|
+
chat_history?: Array<ChatTurn> | null | undefined;
|
|
31
|
+
agent_response?: TurnText | string | null | undefined;
|
|
32
|
+
input?: TurnText | string | null | undefined;
|
|
33
|
+
output?: TurnText | string | null | undefined;
|
|
34
|
+
transcript?: Array<ChatTurn> | null | undefined;
|
|
35
|
+
tool_calls?: Array<ToolCall> | null | undefined;
|
|
36
|
+
expected_tool_calls?: Array<ToolCall> | null | undefined;
|
|
37
|
+
actual_tool_calls?: Array<ToolCall> | null | undefined;
|
|
38
|
+
evaluator_variables?: {
|
|
39
|
+
[k: string]: {
|
|
40
|
+
[k: string]: any;
|
|
41
|
+
};
|
|
42
|
+
} | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
export declare const ItemPayload$zodSchema: z.ZodType<ItemPayload>;
|
|
45
|
+
//# 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;AAC7D,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEnD,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAMpE,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEjD,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,O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M,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,CA2DxD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { TurnText$zodSchema } from "./turntext.js";
|
|
8
|
+
export const AgentResponseUnion$zodSchema = z
|
|
9
|
+
.union([
|
|
10
|
+
TurnText$zodSchema,
|
|
11
|
+
z.string(),
|
|
12
|
+
]).describe("The reply to judge. An empty string when the reply was a tool call. For `llm` tasks");
|
|
13
|
+
export const ItemPayloadInput$zodSchema = z.union([
|
|
14
|
+
TurnText$zodSchema,
|
|
15
|
+
z.string(),
|
|
16
|
+
]).describe("The standalone input the agent was given. For `llm-general` tasks");
|
|
17
|
+
export const Output$zodSchema = z.union([
|
|
18
|
+
TurnText$zodSchema,
|
|
19
|
+
z.string(),
|
|
20
|
+
]).describe("The output to judge. For `llm-general` tasks");
|
|
21
|
+
export const ItemPayload$zodSchema = z.object({
|
|
22
|
+
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"),
|
|
23
|
+
agent_response: z.union([
|
|
24
|
+
TurnText$zodSchema,
|
|
25
|
+
z.string(),
|
|
26
|
+
]).nullable().optional().describe("The reply to judge. An empty string when the reply was a tool call. For `llm` tasks"),
|
|
27
|
+
audio_path: z.string().nullable().optional().describe("Storage key or `s3://` URI of the audio clip. For `tts` tasks"),
|
|
28
|
+
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"),
|
|
29
|
+
description: z.string().nullable().optional().describe("A description of the item. For every task type"),
|
|
30
|
+
evaluator_variables: z.record(z.string(), z.record(z.string(), z.any()))
|
|
31
|
+
.nullable().optional().describe("Values for each evaluator's `{{\"{{\"}}variable}}` placeholders, keyed by evaluator ID. For `llm`, `llm-general` and `conversation` tasks"),
|
|
32
|
+
expected_tool_calls: z.array(ToolCall$zodSchema).nullable().optional()
|
|
33
|
+
.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"),
|
|
34
|
+
input: z.union([
|
|
35
|
+
TurnText$zodSchema,
|
|
36
|
+
z.string(),
|
|
37
|
+
]).nullable().optional().describe("The standalone input the agent was given. For `llm-general` tasks"),
|
|
38
|
+
name: z.string().describe("Name of the item, unique within the task. For every task type"),
|
|
39
|
+
output: z.union([
|
|
40
|
+
TurnText$zodSchema,
|
|
41
|
+
z.string(),
|
|
42
|
+
]).nullable().optional().describe("The output to judge. For `llm-general` tasks"),
|
|
43
|
+
predicted_transcript: z.string().nullable().optional().describe("The transcript to judge. For `stt` tasks"),
|
|
44
|
+
reference_transcript: z.string().nullable().optional().describe("The correct transcript. For `stt` tasks"),
|
|
45
|
+
text: z.string().nullable().optional().describe("The text that was spoken. For `tts` tasks"),
|
|
46
|
+
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"),
|
|
47
|
+
transcript: z.array(ChatTurn$zodSchema).nullable().optional().describe("The full conversation to judge. For `conversation` tasks"),
|
|
48
|
+
}).describe("What an annotation item holds. Which fields apply depends on the task type");
|
|
49
|
+
//# sourceMappingURL=itempayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itempayload.js","sourceRoot":"","sources":["../../src/models/itempayload.ts"],"names":[],"m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,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"}
|
|
@@ -5,8 +5,8 @@ import { TraceTurn } from "./traceturn.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* What the agent was given for this turn. For a `general` agent, the standalone prompt as a string. For a `conversation` agent, the history up to the reported output, oldest turn first, in OpenAI chat format
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
8
|
+
export type TraceIngestInput = string | Array<TraceTurn>;
|
|
9
|
+
export declare const TraceIngestInput$zodSchema: z.ZodType<TraceIngestInput>;
|
|
10
10
|
export type TraceIngest = {
|
|
11
11
|
agent_id: string;
|
|
12
12
|
message_id?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traceingest.d.ts","sourceRoot":"","sources":["../../src/models/traceingest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAuB,MAAM,gBAAgB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"traceingest.d.ts","sourceRoot":"","sources":["../../src/models/traceingest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAuB,MAAM,gBAAgB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAEzD,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAKlE,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAwBvD,CAAC"}
|
|
@@ -5,7 +5,7 @@ import * as z from "zod";
|
|
|
5
5
|
import { TraceMetadataEntry$zodSchema, } from "./tracemetadataentry.js";
|
|
6
6
|
import { TraceOutput$zodSchema } from "./traceoutput.js";
|
|
7
7
|
import { TraceTurn$zodSchema } from "./traceturn.js";
|
|
8
|
-
export const
|
|
8
|
+
export const TraceIngestInput$zodSchema = z.union([
|
|
9
9
|
z.string(),
|
|
10
10
|
z.array(TraceTurn$zodSchema),
|
|
11
11
|
]).describe("What the agent was given for this turn. For a `general` agent, the standalone prompt as a string. For a `conversation` agent, the history up to the reported output, oldest turn first, in OpenAI chat format");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traceingest.js","sourceRoot":"","sources":["../../src/models/traceingest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAe,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAa,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAOhE,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"traceingest.js","sourceRoot":"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,MAAM,EAAE,qBAAqB;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Text with a display name and other forms of it, sent in place of a plain string
|
|
4
|
+
*/
|
|
5
|
+
export type TurnText = {
|
|
6
|
+
content: string;
|
|
7
|
+
label?: string | null | undefined;
|
|
8
|
+
versions?: {
|
|
9
|
+
[k: string]: string;
|
|
10
|
+
} | null | undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare const TurnText$zodSchema: z.ZodType<TurnText>;
|
|
13
|
+
//# sourceMappingURL=turntext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turntext.d.ts","sourceRoot":"","sources":["../../src/models/turntext.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAYlD,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 TurnText$zodSchema = z.object({
|
|
6
|
+
content: z.string().describe("The text the LLM judge reads and annotators see by default"),
|
|
7
|
+
label: z.string().nullable().optional().describe("Display name for the text in `content`, shown to annotators"),
|
|
8
|
+
versions: z.record(z.string(), z.string()).nullable().optional().describe("Other forms of the same text, such as a translation or a human rewrite, keyed by the name annotators see for each. Shown to annotators only"),
|
|
9
|
+
}).describe("Text with a display name and other forms of it, sent in place of a plain string");
|
|
10
|
+
//# sourceMappingURL=turntext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turntext.js","sourceRoot":"","sources":["../../src/models/turntext.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB,MAAM,CAAC,MAAM,kBAAkB,GAAwB,CAAC,CAAC,MAAM,CAAC;IAC9D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAC1B,4DAA4D,CAC7D;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9C,6DAA6D,CAC9D;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACvE,6IAA6I,CAC9I;CACF,CAAC,CAAC,QAAQ,CACT,iFAAiF,CAClF,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.70/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.70",
|
|
69
69
|
genVersion: "2.915.1",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/mcp-typescript 0.0.
|
|
71
|
+
"speakeasy-sdk/mcp-typescript 0.0.70 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,54 @@
|
|
|
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
|
+
label?: string | null | undefined;
|
|
15
|
+
versions?: { [k: string]: string } | null | undefined;
|
|
16
|
+
AdditionalProperties?: { [k: string]: any };
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const ChatTurn$zodSchema: z.ZodType<ChatTurn> = collectExtraKeys$(
|
|
20
|
+
z.object({
|
|
21
|
+
content: z.string().nullable().optional().describe(
|
|
22
|
+
"Message text. Omit for turns that only carry tool calls",
|
|
23
|
+
),
|
|
24
|
+
label: z.string().nullable().optional().describe(
|
|
25
|
+
"Display name for the text in `content`, shown to annotators",
|
|
26
|
+
),
|
|
27
|
+
role: z.string().describe(
|
|
28
|
+
"Message author role in the conversation history",
|
|
29
|
+
),
|
|
30
|
+
versions: z.record(z.string(), z.string()).nullable().optional().describe(
|
|
31
|
+
"Other forms of the same text, such as a translation or a human rewrite, keyed by the name annotators see for each. Shown to annotators only",
|
|
32
|
+
),
|
|
33
|
+
}).describe("One message in a conversation, in OpenAI chat format").catchall(
|
|
34
|
+
z.any(),
|
|
35
|
+
),
|
|
36
|
+
"AdditionalProperties",
|
|
37
|
+
true,
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export const ChatTurn$zodSchemaOutbound: z.ZodType<any> = z.object({
|
|
41
|
+
AdditionalProperties: z.record(z.string(), z.any()).optional(),
|
|
42
|
+
content: z.nullable(z.string()).optional(),
|
|
43
|
+
label: z.nullable(z.string()).optional(),
|
|
44
|
+
role: z.string(),
|
|
45
|
+
versions: z.nullable(z.record(z.string(), z.string())).optional(),
|
|
46
|
+
}).describe("One message in a conversation, in OpenAI chat format").transform(
|
|
47
|
+
(v) => {
|
|
48
|
+
const { AdditionalProperties, ...rest } = v;
|
|
49
|
+
return {
|
|
50
|
+
...rest,
|
|
51
|
+
...AdditionalProperties,
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
);
|
|
@@ -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
|
+
);
|