@dalmia/calibrate-mcp 0.0.40 → 0.0.42
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 +1218 -682
- package/bin/mcp-server.js.map +35 -33
- package/esm/funcs/agentTestsListRunsForAgent.js +1 -0
- package/esm/funcs/agentTestsListRunsForAgent.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/agentcreate.d.ts +26 -0
- package/esm/models/agentcreate.d.ts.map +1 -1
- package/esm/models/agentcreate.js +18 -0
- package/esm/models/agentcreate.js.map +1 -1
- package/esm/models/agentresponse.d.ts +26 -0
- package/esm/models/agentresponse.d.ts.map +1 -1
- package/esm/models/agentresponse.js +17 -0
- package/esm/models/agentresponse.js.map +1 -1
- package/esm/models/agentsummary.d.ts +26 -0
- package/esm/models/agentsummary.d.ts.map +1 -1
- package/esm/models/agentsummary.js +17 -0
- package/esm/models/agentsummary.js.map +1 -1
- package/esm/models/agenttestrunlistitem.d.ts +2 -0
- package/esm/models/agenttestrunlistitem.d.ts.map +1 -1
- package/esm/models/agenttestrunlistitem.js +2 -0
- package/esm/models/agenttestrunlistitem.js.map +1 -1
- package/esm/models/annotationtaskresponse.js +1 -1
- package/esm/models/annotationtaskresponse.js.map +1 -1
- package/esm/models/bulktestitem.d.ts +2 -1
- package/esm/models/bulktestitem.d.ts.map +1 -1
- package/esm/models/bulktestitem.js +4 -2
- package/esm/models/bulktestitem.js.map +1 -1
- package/esm/models/bulktestupload.d.ts +4 -0
- package/esm/models/bulktestupload.d.ts.map +1 -1
- package/esm/models/bulktestupload.js +5 -2
- package/esm/models/bulktestupload.js.map +1 -1
- package/esm/models/evaluatorcreate.d.ts +4 -0
- package/esm/models/evaluatorcreate.d.ts.map +1 -1
- package/esm/models/evaluatorcreate.js +5 -2
- package/esm/models/evaluatorcreate.js.map +1 -1
- package/esm/models/evaluatordetailresponsecompact.d.ts +5 -0
- package/esm/models/evaluatordetailresponsecompact.d.ts.map +1 -1
- package/esm/models/evaluatordetailresponsecompact.js +6 -2
- package/esm/models/evaluatordetailresponsecompact.js.map +1 -1
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.d.ts +1 -0
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.d.ts.map +1 -1
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.js +1 -0
- package/esm/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.js.map +1 -1
- package/esm/models/listevaluatorsevaluatorsgetop.d.ts +2 -0
- package/esm/models/listevaluatorsevaluatorsgetop.d.ts.map +1 -1
- package/esm/models/listevaluatorsevaluatorsgetop.js +2 -0
- package/esm/models/listevaluatorsevaluatorsgetop.js.map +1 -1
- package/esm/models/routersevaluatorsevaluatorresponse.d.ts +5 -0
- package/esm/models/routersevaluatorsevaluatorresponse.d.ts.map +1 -1
- package/esm/models/routersevaluatorsevaluatorresponse.js +6 -2
- package/esm/models/routersevaluatorsevaluatorresponse.js.map +1 -1
- package/esm/models/testcreate.d.ts +4 -0
- package/esm/models/testcreate.d.ts.map +1 -1
- package/esm/models/testcreate.js +6 -3
- package/esm/models/testcreate.js.map +1 -1
- package/esm/models/testlistresponse.d.ts +4 -0
- package/esm/models/testlistresponse.d.ts.map +1 -1
- package/esm/models/testlistresponse.js +5 -2
- package/esm/models/testlistresponse.js.map +1 -1
- package/esm/models/testresponse.d.ts +4 -0
- package/esm/models/testresponse.d.ts.map +1 -1
- package/esm/models/testresponse.js +5 -2
- package/esm/models/testresponse.js.map +1 -1
- package/esm/models/testupdate.d.ts +2 -0
- package/esm/models/testupdate.d.ts.map +1 -1
- package/esm/models/testupdate.js +4 -2
- package/esm/models/testupdate.js.map +1 -1
- package/esm/models/traceingest.d.ts +6 -1
- package/esm/models/traceingest.d.ts.map +1 -1
- package/esm/models/traceingest.js +8 -1
- package/esm/models/traceingest.js.map +1 -1
- package/esm/models/tracetoolcall.d.ts +1 -0
- package/esm/models/tracetoolcall.d.ts.map +1 -1
- package/esm/models/tracetoolcall.js +1 -0
- package/esm/models/tracetoolcall.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/agentTestsListRunsForAgent.ts +1 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/agentcreate.ts +36 -0
- package/src/models/agentresponse.ts +35 -0
- package/src/models/agentsummary.ts +35 -0
- package/src/models/agenttestrunlistitem.ts +6 -0
- package/src/models/annotationtaskresponse.ts +1 -1
- package/src/models/bulktestitem.ts +10 -5
- package/src/models/bulktestupload.ts +6 -2
- package/src/models/evaluatorcreate.ts +6 -2
- package/src/models/evaluatordetailresponsecompact.ts +10 -2
- package/src/models/getagenttestrunsagenttestsagentagentuuidrunsgetop.ts +4 -0
- package/src/models/listevaluatorsevaluatorsgetop.ts +2 -0
- package/src/models/routersevaluatorsevaluatorresponse.ts +10 -2
- package/src/models/testcreate.ts +7 -3
- package/src/models/testlistresponse.ts +6 -2
- package/src/models/testresponse.ts +6 -2
- package/src/models/testupdate.ts +4 -2
- package/src/models/traceingest.ts +18 -3
- package/src/models/tracetoolcall.ts +4 -0
|
@@ -32,6 +32,7 @@ async function $do(client$, request, options) {
|
|
|
32
32
|
};
|
|
33
33
|
const path$ = pathToFunc("/agent-tests/agent/{agent_uuid}/runs")(pathParams$);
|
|
34
34
|
const query$ = encodeFormQuery({
|
|
35
|
+
"around": payload$.around,
|
|
35
36
|
"has_failures": payload$.has_failures,
|
|
36
37
|
"limit": payload$.limit,
|
|
37
38
|
"offset": payload$.offset,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentTestsListRunsForAgent.js","sourceRoot":"","sources":["../../src/funcs/agentTestsListRunsForAgent.ts"],"names":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AAI,EAAE,KAAK;QACX,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;QACrC,SAAS,EAAE,OAAO,EAAE,SAAS,IAAI,OAAO,CAAC,QAAQ,CAAC,SAAS;eACtD,CAAC,CAAC;KACR,EAAE,OAAO,CAAC,CAAC;IACZ,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;QACnB,OAAO,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC;IAE9B,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE;QACvC,OAAO;QACP,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,CAAC,QAAQ,EAAE;YAChB,MAAM,EAAE,UAAU;YAClB,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,QAAQ,CAAC,KAAK;SACzB,CAAC,CAAC;AACL,CAAC"}
|
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.42/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.42";
|
|
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.42 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.42",
|
|
31
31
|
genVersion: "2.915.1",
|
|
32
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
32
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.42 2.915.1 0.1.0 @dalmia/calibrate-mcp",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
package/esm/mcp-server/server.js
CHANGED
|
@@ -49,7 +49,7 @@ import { tool$tracesCreate } from "./tools/tracesCreate.js";
|
|
|
49
49
|
export function createMCPServer(deps) {
|
|
50
50
|
const server = new McpServer({
|
|
51
51
|
name: "CalibrateMcp",
|
|
52
|
-
version: "0.0.
|
|
52
|
+
version: "0.0.42",
|
|
53
53
|
});
|
|
54
54
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
55
55
|
security: deps.security,
|
|
@@ -21,9 +21,35 @@ export declare const AgentCreateType$zodSchema: z.ZodEnum<{
|
|
|
21
21
|
agent: "agent";
|
|
22
22
|
connection: "connection";
|
|
23
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* What the agent expects in the request body:
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
*
|
|
29
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
30
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
31
|
+
*/
|
|
32
|
+
export declare const AgentCreateInteractionType: {
|
|
33
|
+
readonly Conversation: "conversation";
|
|
34
|
+
readonly General: "general";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* What the agent expects in the request body:
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
*
|
|
41
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
42
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
43
|
+
*/
|
|
44
|
+
export type AgentCreateInteractionType = ClosedEnum<typeof AgentCreateInteractionType>;
|
|
45
|
+
export declare const AgentCreateInteractionType$zodSchema: z.ZodEnum<{
|
|
46
|
+
conversation: "conversation";
|
|
47
|
+
general: "general";
|
|
48
|
+
}>;
|
|
24
49
|
export type AgentCreate = {
|
|
25
50
|
name: string;
|
|
26
51
|
type?: AgentCreateType | undefined;
|
|
52
|
+
interaction_type?: AgentCreateInteractionType | undefined;
|
|
27
53
|
config?: {
|
|
28
54
|
[k: string]: any;
|
|
29
55
|
} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcreate.d.ts","sourceRoot":"","sources":["../../src/models/agentcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MA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AC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAYvD,CAAC"}
|
|
@@ -16,8 +16,26 @@ export const AgentCreateType$zodSchema = z.enum([
|
|
|
16
16
|
"agent",
|
|
17
17
|
"connection",
|
|
18
18
|
]).describe("- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate");
|
|
19
|
+
/**
|
|
20
|
+
* What the agent expects in the request body:
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*
|
|
24
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
25
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
26
|
+
*/
|
|
27
|
+
export const AgentCreateInteractionType = {
|
|
28
|
+
Conversation: "conversation",
|
|
29
|
+
General: "general",
|
|
30
|
+
};
|
|
31
|
+
export const AgentCreateInteractionType$zodSchema = z.enum([
|
|
32
|
+
"conversation",
|
|
33
|
+
"general",
|
|
34
|
+
]).describe("What the agent expects in the request body:\n\n- `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{\"messages\": [...]}`\n- `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{\"input\": \"...\"}`");
|
|
19
35
|
export const AgentCreate$zodSchema = z.object({
|
|
20
36
|
config: z.record(z.string(), z.any()).nullable().optional().describe("Agent behavioral config. The keys depend on `type`.\n\n**`type=agent`**, built inside Calibrate:\n- `system_prompt`: the agent's instructions\n- `llm.model`: `provider/model`, e.g. `openai/gpt-4.1` or `google/gemini-2.5-flash`\n- `stt.provider`: `deepgram`, `openai`, `cartesia`, `elevenlabs`, `google`, `sarvam`, or `smallest`\n- `tts.provider`: `cartesia`, `openai`, `google`, `elevenlabs`, `sarvam`, or `smallest`\n- `settings.agent_speaks_first`, `settings.max_assistant_turns`\n- `system_tools.end_call`: let the agent end the call\n- `data_extraction_fields`: `[{name, type, description, required}]`\n\n```json\n{\n \"system_prompt\": \"You are a helpful support agent.\",\n \"llm\": {\"model\": \"openai/gpt-4.1\"},\n \"stt\": {\"provider\": \"deepgram\"},\n \"tts\": {\"provider\": \"elevenlabs\"},\n \"settings\": {\"agent_speaks_first\": true, \"max_assistant_turns\": 50}\n}\n```\n\n**`type=connection`**, your own HTTP endpoint:\n- `agent_url`: public HTTP(S) endpoint your agent is called at\n- `agent_headers`: headers sent on each request, e.g. auth\n- `benchmark_provider`: `openrouter` by default. Other values: `openai`, `google`, `anthropic`, `meta-llama`, `mistralai`, `deepseek`, `x-ai`, `cohere`, `qwen`, or `ai21`\n\n```json\n{\n \"agent_url\": \"https://api.example.com/agent\",\n \"agent_headers\": {\"Authorization\": \"Bearer <token>\"},\n \"benchmark_provider\": \"openrouter\"\n}\n```\n\nFor `type=agent`, omitted keys inherit managed defaults. Omit `config` entirely to use all defaults. For `type=connection`, `config` is stored as-is and must contain `agent_url`"),
|
|
37
|
+
interaction_type: AgentCreateInteractionType$zodSchema.default("conversation")
|
|
38
|
+
.describe("What the agent expects in the request body:\n\n- `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{\"messages\": [...]}`\n- `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{\"input\": \"...\"}`"),
|
|
21
39
|
name: z.string().describe("Agent name, unique within the workspace"),
|
|
22
40
|
type: AgentCreateType$zodSchema.default("agent").describe("- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate"),
|
|
23
41
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcreate.js","sourceRoot":"","sources":["../../src/models/agentcreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,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CAAyC,CAAC;IACpE,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CACvD,+FAA+F,CAChG;CACF,CAAC,CAAC"}
|
|
@@ -21,10 +21,36 @@ export declare const AgentResponseType$zodSchema: z.ZodEnum<{
|
|
|
21
21
|
agent: "agent";
|
|
22
22
|
connection: "connection";
|
|
23
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* What the agent expects in the request body:
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
*
|
|
29
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
30
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
31
|
+
*/
|
|
32
|
+
export declare const AgentResponseInteractionType: {
|
|
33
|
+
readonly Conversation: "conversation";
|
|
34
|
+
readonly General: "general";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* What the agent expects in the request body:
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
*
|
|
41
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
42
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
43
|
+
*/
|
|
44
|
+
export type AgentResponseInteractionType = ClosedEnum<typeof AgentResponseInteractionType>;
|
|
45
|
+
export declare const AgentResponseInteractionType$zodSchema: z.ZodEnum<{
|
|
46
|
+
conversation: "conversation";
|
|
47
|
+
general: "general";
|
|
48
|
+
}>;
|
|
24
49
|
export type AgentResponse = {
|
|
25
50
|
uuid: string;
|
|
26
51
|
name: string;
|
|
27
52
|
type: AgentResponseType;
|
|
53
|
+
interaction_type: AgentResponseInteractionType;
|
|
28
54
|
config?: {
|
|
29
55
|
[k: string]: any;
|
|
30
56
|
} | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentresponse.d.ts","sourceRoot":"","sources":["../../src/models/agentresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;EAKvC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;IACxB,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;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"agentresponse.d.ts","sourceRoot":"","sources":["../../src/models/agentresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;EAKvC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AACX;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;EAKlD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;IACxB,gBAAgB,EAAE,4BAA4B,CAAC;IAC/C,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;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAgB3D,CAAC"}
|
|
@@ -16,9 +16,26 @@ export const AgentResponseType$zodSchema = z.enum([
|
|
|
16
16
|
"agent",
|
|
17
17
|
"connection",
|
|
18
18
|
]).describe("- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate");
|
|
19
|
+
/**
|
|
20
|
+
* What the agent expects in the request body:
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*
|
|
24
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
25
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
26
|
+
*/
|
|
27
|
+
export const AgentResponseInteractionType = {
|
|
28
|
+
Conversation: "conversation",
|
|
29
|
+
General: "general",
|
|
30
|
+
};
|
|
31
|
+
export const AgentResponseInteractionType$zodSchema = z.enum([
|
|
32
|
+
"conversation",
|
|
33
|
+
"general",
|
|
34
|
+
]).describe("What the agent expects in the request body:\n\n- `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{\"messages\": [...]}`\n- `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{\"input\": \"...\"}`");
|
|
19
35
|
export const AgentResponse$zodSchema = z.object({
|
|
20
36
|
config: z.record(z.string(), z.any()).nullable().optional().describe("Agent configuration"),
|
|
21
37
|
created_at: z.string().describe("When the agent was created (ISO 8601 UTC)"),
|
|
38
|
+
interaction_type: AgentResponseInteractionType$zodSchema.describe("What the agent expects in the request body:\n\n- `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{\"messages\": [...]}`\n- `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{\"input\": \"...\"}`"),
|
|
22
39
|
name: z.string().describe("Name of the agent"),
|
|
23
40
|
type: AgentResponseType$zodSchema.describe("- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate"),
|
|
24
41
|
updated_at: z.string().describe("When the agent was last updated (ISO 8601 UTC)"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentresponse.js","sourceRoot":"","sources":["../../src/models/agentresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;CAChB,CAAC;AASX,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,OAAO;IACP,YAAY;CACb,CAAC,CAAC,QAAQ,CACT,+FAA+F,CAChG,CAAC;
|
|
1
|
+
{"version":3,"file":"agentresponse.js","sourceRoot":"","sources":["../../src/models/agentresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;CAChB,CAAC;AASX,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,OAAO;IACP,YAAY;CACb,CAAC,CAAC,QAAQ,CACT,+FAA+F,CAChG,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;CACV,CAAC;AAaX,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,cAAc;IACd,SAAS;CACV,CAAC,CAAC,QAAQ,CACT,0TAA0T,CAC3T,CAAC;AAYF,MAAM,CAAC,MAAM,uBAAuB,GAA6B,CAAC,CAAC,MAAM,CAAC;IACxE,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,qBAAqB,CACtB;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IAC5E,gBAAgB,EAAE,sCAAsC,CAAC,QAAQ,CAC/D,0TAA0T,CAC3T;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC9C,IAAI,EAAE,2BAA2B,CAAC,QAAQ,CACxC,+FAA+F,CAChG;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAC7B,gDAAgD,CACjD;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;CAC7C,CAAC,CAAC"}
|
|
@@ -21,10 +21,36 @@ export declare const AgentSummaryType$zodSchema: z.ZodEnum<{
|
|
|
21
21
|
agent: "agent";
|
|
22
22
|
connection: "connection";
|
|
23
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* What the agent expects in the request body:
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
*
|
|
29
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
30
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
31
|
+
*/
|
|
32
|
+
export declare const AgentSummaryInteractionType: {
|
|
33
|
+
readonly Conversation: "conversation";
|
|
34
|
+
readonly General: "general";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* What the agent expects in the request body:
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
*
|
|
41
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
42
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
43
|
+
*/
|
|
44
|
+
export type AgentSummaryInteractionType = ClosedEnum<typeof AgentSummaryInteractionType>;
|
|
45
|
+
export declare const AgentSummaryInteractionType$zodSchema: z.ZodEnum<{
|
|
46
|
+
conversation: "conversation";
|
|
47
|
+
general: "general";
|
|
48
|
+
}>;
|
|
24
49
|
export type AgentSummary = {
|
|
25
50
|
uuid: string;
|
|
26
51
|
name: string;
|
|
27
52
|
type: AgentSummaryType;
|
|
53
|
+
interaction_type: AgentSummaryInteractionType;
|
|
28
54
|
created_at: string;
|
|
29
55
|
updated_at: string;
|
|
30
56
|
connection_verified?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsummary.d.ts","sourceRoot":"","sources":["../../src/models/agentsummary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,0BAA0B;;;EAKtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;I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E,CAAC,CAAC,OAAO,CAAC,YAAY,CAmBzD,CAAC"}
|
|
@@ -16,10 +16,27 @@ export const AgentSummaryType$zodSchema = z.enum([
|
|
|
16
16
|
"agent",
|
|
17
17
|
"connection",
|
|
18
18
|
]).describe("- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate");
|
|
19
|
+
/**
|
|
20
|
+
* What the agent expects in the request body:
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*
|
|
24
|
+
* - `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{"messages": [...]}`
|
|
25
|
+
* - `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{"input": "..."}`
|
|
26
|
+
*/
|
|
27
|
+
export const AgentSummaryInteractionType = {
|
|
28
|
+
Conversation: "conversation",
|
|
29
|
+
General: "general",
|
|
30
|
+
};
|
|
31
|
+
export const AgentSummaryInteractionType$zodSchema = z.enum([
|
|
32
|
+
"conversation",
|
|
33
|
+
"general",
|
|
34
|
+
]).describe("What the agent expects in the request body:\n\n- `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{\"messages\": [...]}`\n- `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{\"input\": \"...\"}`");
|
|
19
35
|
export const AgentSummary$zodSchema = z.object({
|
|
20
36
|
connection_verified: z.boolean().nullable().optional().describe("Whether the agent's connection has been verified, for a `type=connection` agent"),
|
|
21
37
|
created_at: z.string().describe("When the agent was created (ISO 8601 UTC)"),
|
|
22
38
|
has_default_inputs: z.boolean().describe("Whether the agent has custom request fields configured"),
|
|
39
|
+
interaction_type: AgentSummaryInteractionType$zodSchema.describe("What the agent expects in the request body:\n\n- `conversation`: a normal back-and-forth agent, answers within an ongoing conversation. Receives `{\"messages\": [...]}`\n- `general`: a one-shot agent, takes a single plain input and produces a single plain output, no conversation. Receives `{\"input\": \"...\"}`"),
|
|
23
40
|
name: z.string().describe("Name of the agent"),
|
|
24
41
|
type: AgentSummaryType$zodSchema.describe("- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate"),
|
|
25
42
|
updated_at: z.string().describe("When the agent was last updated (ISO 8601 UTC)"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsummary.js","sourceRoot":"","sources":["../../src/models/agentsummary.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;CAChB,CAAC;AASX,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,YAAY;CACb,CAAC,CAAC,QAAQ,CACT,+FAA+F,CAChG,CAAC;
|
|
1
|
+
{"version":3,"file":"agentsummary.js","sourceRoot":"","sources":["../../src/models/agentsummary.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;CAChB,CAAC;AASX,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,YAAY;CACb,CAAC,CAAC,QAAQ,CACT,+FAA+F,CAChG,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;CACV,CAAC;AAaX,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1D,cAAc;IACd,SAAS;CACV,CAAC,CAAC,QAAQ,CACT,0TAA0T,CAC3T,CAAC;AAaF,MAAM,CAAC,MAAM,sBAAsB,GAA4B,CAAC,CAAC,MAAM,CAAC;IACtE,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7D,iFAAiF,CAClF;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IAC5E,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CACtC,wDAAwD,CACzD;IACD,gBAAgB,EAAE,qCAAqC,CAAC,QAAQ,CAC9D,0TAA0T,CAC3T;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC9C,IAAI,EAAE,0BAA0B,CAAC,QAAQ,CACvC,+FAA+F,CAChG;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAC7B,gDAAgD,CACjD;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;CAC7C,CAAC,CAAC"}
|
|
@@ -31,10 +31,12 @@ export type AgentTestRunListItem = {
|
|
|
31
31
|
name: string;
|
|
32
32
|
status: TaskStatus;
|
|
33
33
|
type: AgentTestRunListItemType;
|
|
34
|
+
created_at: string;
|
|
34
35
|
updated_at: string;
|
|
35
36
|
total_tests?: number | null | undefined;
|
|
36
37
|
passed?: number | null | undefined;
|
|
37
38
|
failed?: number | null | undefined;
|
|
39
|
+
evaluators?: Array<string> | undefined;
|
|
38
40
|
results?: Array<TestRunCaseSummary> | null | undefined;
|
|
39
41
|
latency_ms?: {
|
|
40
42
|
[k: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agenttestrunlistitem.d.ts","sourceRoot":"","sources":["../../src/models/agenttestrunlistitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,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CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,UAAU,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,IAAI,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,aAAa,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1D,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAkDvE,CAAC"}
|
|
@@ -23,7 +23,9 @@ export const AgentTestRunListItemType$zodSchema = z.enum([
|
|
|
23
23
|
export const AgentTestRunListItem$zodSchema = z
|
|
24
24
|
.object({
|
|
25
25
|
cost: z.record(z.string(), z.any()).nullable().optional().describe("Aggregated cost as `{mean, min, max, count}` (USD)"),
|
|
26
|
+
created_at: z.string().describe("When the run was created (ISO 8601 UTC)"),
|
|
26
27
|
error: z.boolean().default(false).describe("True if the run failed"),
|
|
28
|
+
evaluators: z.array(z.string()).optional().describe("Names of the evaluators that judged this run, deduplicated and in display order. `Tool call` is appended when any test in the run was a tool-call test. Empty when the run had no evaluators"),
|
|
27
29
|
failed: z.int().nullable().optional().describe("Number of test cases that failed"),
|
|
28
30
|
is_public: z.boolean().default(false).describe("Whether the run is shared publicly"),
|
|
29
31
|
latency_ms: z.record(z.string(), z.any()).nullable().optional().describe("Aggregated latency in milliseconds, as `{p50, p95, p99, count}`"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agenttestrunlistitem.js","sourceRoot":"","sources":["../../src/models/agenttestrunlistitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAc,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAEL,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,eAAe;CACrB,CAAC;AAYX,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,eAAe;IACf,eAAe;CAChB,CAAC,CAAC,QAAQ,CACT,8HAA8H,CAC/H,CAAC;
|
|
1
|
+
{"version":3,"file":"agenttestrunlistitem.js","sourceRoot":"","sources":["../../src/models/agenttestrunlistitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAEL,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAc,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAEL,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,eAAe;CACrB,CAAC;AAYX,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC;IACvD,eAAe;IACf,eAAe;CAChB,CAAC,CAAC,QAAQ,CACT,8HAA8H,CAC/H,CAAC;AAuBF,MAAM,CAAC,MAAM,8BAA8B,GAAoC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E,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SACjE,QAAQ,CACP,mFAAmF,CACpF;IACH,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpD,yCAAyC,CAC1C;IACD,MAAM,EAAE,oBAAoB;IAC5B,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD,4BAA4B,CAC7B;IACD,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxE,qDAAqD,CACtD;IACD,IAAI,EAAE,kCAAkC,CAAC,QAAQ,CAC/C,8HAA8H,CAC/H;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAC7B,8CAA8C,CAC/C;IACD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;CAC7C,CAAC,CAAC"}
|
|
@@ -31,7 +31,7 @@ export const AnnotationTaskResponse$zodSchema = z.object({
|
|
|
31
31
|
evaluators: z.array(z.record(z.string(), z.any())).optional().describe("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"),
|
|
32
32
|
has_agreement: z.boolean().default(false).describe("Whether the task has at least one comparable human-vs-human or human-vs-evaluator pair, computed over all time"),
|
|
33
33
|
item_count: z.int().nullable().optional().describe("Number of items in the task"),
|
|
34
|
-
items: z.array(z.record(z.string(), z.any())).optional().describe("The task's items, each with its agreement stats. You get these when you fetch one task by ID, not when you list tasks"),
|
|
34
|
+
items: z.array(z.record(z.string(), z.any())).optional().describe("The task's items, each with its agreement stats and an `is_tool_call` flag marking the rows a person labels on the tool call rather than a text reply. You get these when you fetch one task by ID, not when you list tasks"),
|
|
35
35
|
jobs: z.array(z.record(z.string(), z.any())).optional().describe("The task's labelling jobs. You get these when you fetch one task by ID, not when you list tasks"),
|
|
36
36
|
name: z.string().describe("Name of the task"),
|
|
37
37
|
type: AnnotationTaskResponseType$zodSchema.describe("Task type. Determines the shape of each item's payload.\n- `stt`: judge a transcript on its own\n- `llm`: judge one response with its conversation history\n- `llm-general`: judge a standalone `input -> output` pair\n- `conversation`: judge a full conversation"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotationtaskresponse.js","sourceRoot":"","sources":["../../src/models/annotationtaskresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,cAAc;IAC5B,GAAG,EAAE,KAAK;CACF,CAAC;AAcX,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,IAAI,CAAC;IACzD,KAAK;IACL,KAAK;IACL,aAAa;IACb,cAAc;IACd,KAAK;CACN,CAAC,CAAC,QAAQ,CACT,qQAAqQ,CACtQ,CAAC;AAgBF,MAAM,CAAC,MAAM,gCAAgC,GAEzC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IAC3E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpD,wBAAwB,CACzB;IACD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,C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
6
6
|
name: string;
|
|
7
|
-
conversation_history
|
|
7
|
+
conversation_history?: Array<ChatMessage> | null | undefined;
|
|
8
|
+
input?: string | null | undefined;
|
|
8
9
|
evaluators?: Array<RoutersTestsEvaluatorRef> | null | undefined;
|
|
9
10
|
tool_calls?: Array<ExpectedToolCall> | null | undefined;
|
|
10
11
|
inputs?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulktestitem.d.ts","sourceRoot":"","sources":["../../src/models/bulktestitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"bulktestitem.d.ts","sourceRoot":"","sources":["../../src/models/bulktestitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,WAAW,EAAyB,MAAM,kBAAkB,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAoBzD,CAAC"}
|
|
@@ -6,9 +6,11 @@ import { ChatMessage$zodSchema } from "./chatmessage.js";
|
|
|
6
6
|
import { ExpectedToolCall$zodSchema, } from "./expectedtoolcall.js";
|
|
7
7
|
import { RoutersTestsEvaluatorRef$zodSchema, } from "./routerstestsevaluatorref.js";
|
|
8
8
|
export const BulkTestItem$zodSchema = z.object({
|
|
9
|
-
conversation_history: z.array(ChatMessage$zodSchema).
|
|
9
|
+
conversation_history: z.array(ChatMessage$zodSchema).nullable().optional()
|
|
10
|
+
.describe("Ordered messages ending at the user turn the agent should answer. **Required for `response` and `conversation` batches**, and for `tool_call` batches aimed at a conversational agent"),
|
|
10
11
|
evaluators: z.array(RoutersTestsEvaluatorRef$zodSchema).nullable().optional()
|
|
11
|
-
.describe("Evaluators to link. Used by `response` and `
|
|
12
|
+
.describe("Evaluators to link. Used by `response`, `conversation`, and `general` tests"),
|
|
13
|
+
input: z.string().nullable().optional().describe("Standalone prompt with no conversation around it. **Required for `general` batches**, and for `tool_call` batches aimed at a general agent"),
|
|
12
14
|
inputs: z.record(z.string(), z.any()).nullable().optional().describe("Extra request fields for this test, overriding the agent's `default_inputs` per key"),
|
|
13
15
|
name: z.string().describe("Name of the test, unique within the workspace and within the batch"),
|
|
14
16
|
tool_calls: z.array(ExpectedToolCall$zodSchema).nullable().optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulktestitem.js","sourceRoot":"","sources":["../../src/models/bulktestitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAA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,QAAQ,EAAE;SAClE,QAAQ,CAAC,2DAA2D,CAAC;CACzE,CAAC,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { BulkTestItem } from "./bulktestitem.js";
|
|
|
9
9
|
* - `response`: judges the generated reply
|
|
10
10
|
* - `tool_call`: diffs the generated tool calls
|
|
11
11
|
* - `conversation`: judges the full conversation
|
|
12
|
+
* - `general`: judges a single plain-text input/output pair with no conversation involved (e.g. summarization, extraction, classification)
|
|
12
13
|
*
|
|
13
14
|
* Applied to every test in the batch
|
|
14
15
|
*/
|
|
@@ -16,6 +17,7 @@ export declare const BulkTestUploadType: {
|
|
|
16
17
|
readonly Response: "response";
|
|
17
18
|
readonly ToolCall: "tool_call";
|
|
18
19
|
readonly Conversation: "conversation";
|
|
20
|
+
readonly General: "general";
|
|
19
21
|
};
|
|
20
22
|
/**
|
|
21
23
|
* What the test judges:
|
|
@@ -25,6 +27,7 @@ export declare const BulkTestUploadType: {
|
|
|
25
27
|
* - `response`: judges the generated reply
|
|
26
28
|
* - `tool_call`: diffs the generated tool calls
|
|
27
29
|
* - `conversation`: judges the full conversation
|
|
30
|
+
* - `general`: judges a single plain-text input/output pair with no conversation involved (e.g. summarization, extraction, classification)
|
|
28
31
|
*
|
|
29
32
|
* Applied to every test in the batch
|
|
30
33
|
*/
|
|
@@ -33,6 +36,7 @@ export declare const BulkTestUploadType$zodSchema: z.ZodEnum<{
|
|
|
33
36
|
response: "response";
|
|
34
37
|
tool_call: "tool_call";
|
|
35
38
|
conversation: "conversation";
|
|
39
|
+
general: "general";
|
|
36
40
|
}>;
|
|
37
41
|
export type BulkTestUpload = {
|
|
38
42
|
type: BulkTestUploadType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulktestupload.d.ts","sourceRoot":"","sources":["../../src/models/bulktestupload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAA0B,MAAM,mBAAmB,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"bulktestupload.d.ts","sourceRoot":"","sources":["../../src/models/bulktestupload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAA0B,MAAM,mBAAmB,CAAC;AAEzE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AACX;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE,eAAO,MAAM,4BAA4B;;;;;EAOxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAa7D,CAAC"}
|
|
@@ -11,6 +11,7 @@ import { BulkTestItem$zodSchema } from "./bulktestitem.js";
|
|
|
11
11
|
* - `response`: judges the generated reply
|
|
12
12
|
* - `tool_call`: diffs the generated tool calls
|
|
13
13
|
* - `conversation`: judges the full conversation
|
|
14
|
+
* - `general`: judges a single plain-text input/output pair with no conversation involved (e.g. summarization, extraction, classification)
|
|
14
15
|
*
|
|
15
16
|
* Applied to every test in the batch
|
|
16
17
|
*/
|
|
@@ -18,16 +19,18 @@ export const BulkTestUploadType = {
|
|
|
18
19
|
Response: "response",
|
|
19
20
|
ToolCall: "tool_call",
|
|
20
21
|
Conversation: "conversation",
|
|
22
|
+
General: "general",
|
|
21
23
|
};
|
|
22
24
|
export const BulkTestUploadType$zodSchema = z.enum([
|
|
23
25
|
"response",
|
|
24
26
|
"tool_call",
|
|
25
27
|
"conversation",
|
|
26
|
-
|
|
28
|
+
"general",
|
|
29
|
+
]).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- `general`: judges a single plain-text input/output pair with no conversation involved (e.g. summarization, extraction, classification)\n\n\nApplied to every test in the batch");
|
|
27
30
|
export const BulkTestUpload$zodSchema = z.object({
|
|
28
31
|
agent_uuids: z.array(z.string()).nullable().optional().describe("IDs of agents to link every created test to. Omit to link none"),
|
|
29
32
|
language: z.string().nullable().optional().describe("Language written to each test's `config.settings.language`. Omit to leave unset"),
|
|
30
33
|
tests: z.array(BulkTestItem$zodSchema).describe("Test items to create, at most 500 per request, with names unique within the batch"),
|
|
31
|
-
type: BulkTestUploadType$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\n\nApplied to every test in the batch"),
|
|
34
|
+
type: BulkTestUploadType$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- `general`: judges a single plain-text input/output pair with no conversation involved (e.g. summarization, extraction, classification)\n\n\nApplied to every test in the batch"),
|
|
32
35
|
});
|
|
33
36
|
//# sourceMappingURL=bulktestupload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulktestupload.js","sourceRoot":"","sources":["../../src/models/bulktestupload.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAgB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"bulktestupload.js","sourceRoot":"","sources":["../../src/models/bulktestupload.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAgB,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEzE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,SAAS;CACV,CAAC;AAeX,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,WAAW;IACX,cAAc;IACd,SAAS;CACV,CAAC,CAAC,QAAQ,CACT,oVAAoV,CACrV,CAAC;AASF,MAAM,CAAC,MAAM,wBAAwB,GAA8B,CAAC,CAAC,MAAM,CAAC;IAC1E,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7D,gEAAgE,CACjE;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD,iFAAiF,CAClF;IACD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAC7C,mFAAmF,CACpF;IACD,IAAI,EAAE,4BAA4B,CAAC,QAAQ,CACzC,oVAAoV,CACrV;CACF,CAAC,CAAC"}
|
|
@@ -11,6 +11,7 @@ import { EvaluatorVersionCreate } from "./evaluatorversioncreate.js";
|
|
|
11
11
|
* - `llm`: a reply with its conversation history
|
|
12
12
|
* - `llm-general`: a standalone input and output pair
|
|
13
13
|
* - `conversation`: a full conversation
|
|
14
|
+
* - `tool-call`: whether the agent called the right tool, labelled by a person
|
|
14
15
|
*/
|
|
15
16
|
export declare const EvaluatorCreateEvaluatorType: {
|
|
16
17
|
readonly Tts: "tts";
|
|
@@ -18,6 +19,7 @@ export declare const EvaluatorCreateEvaluatorType: {
|
|
|
18
19
|
readonly Llm: "llm";
|
|
19
20
|
readonly LlmGeneral: "llm-general";
|
|
20
21
|
readonly Conversation: "conversation";
|
|
22
|
+
readonly ToolCall: "tool-call";
|
|
21
23
|
};
|
|
22
24
|
/**
|
|
23
25
|
* What the evaluator judges:
|
|
@@ -29,6 +31,7 @@ export declare const EvaluatorCreateEvaluatorType: {
|
|
|
29
31
|
* - `llm`: a reply with its conversation history
|
|
30
32
|
* - `llm-general`: a standalone input and output pair
|
|
31
33
|
* - `conversation`: a full conversation
|
|
34
|
+
* - `tool-call`: whether the agent called the right tool, labelled by a person
|
|
32
35
|
*/
|
|
33
36
|
export type EvaluatorCreateEvaluatorType = ClosedEnum<typeof EvaluatorCreateEvaluatorType>;
|
|
34
37
|
export declare const EvaluatorCreateEvaluatorType$zodSchema: z.ZodEnum<{
|
|
@@ -37,6 +40,7 @@ export declare const EvaluatorCreateEvaluatorType$zodSchema: z.ZodEnum<{
|
|
|
37
40
|
stt: "stt";
|
|
38
41
|
llm: "llm";
|
|
39
42
|
"llm-general": "llm-general";
|
|
43
|
+
"tool-call": "tool-call";
|
|
40
44
|
}>;
|
|
41
45
|
/**
|
|
42
46
|
* The modality the judge reads:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluatorcreate.d.ts","sourceRoot":"","sources":["../../src/models/evaluatorcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"evaluatorcreate.d.ts","sourceRoot":"","sources":["../../src/models/evaluatorcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B;;;;;;;CAO/B,CAAC;AACX;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,4BAA4B,CACpC,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;EASlD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AACX;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;EAGuB,CAAC;AAEtE;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX;;;;;;;GAOG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;EAK/C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAC1D,SAAS,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAChD,WAAW,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACpD,OAAO,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAkB/D,CAAC"}
|
|
@@ -13,6 +13,7 @@ import { EvaluatorVersionCreate$zodSchema, } from "./evaluatorversioncreate.js";
|
|
|
13
13
|
* - `llm`: a reply with its conversation history
|
|
14
14
|
* - `llm-general`: a standalone input and output pair
|
|
15
15
|
* - `conversation`: a full conversation
|
|
16
|
+
* - `tool-call`: whether the agent called the right tool, labelled by a person
|
|
16
17
|
*/
|
|
17
18
|
export const EvaluatorCreateEvaluatorType = {
|
|
18
19
|
Tts: "tts",
|
|
@@ -20,6 +21,7 @@ export const EvaluatorCreateEvaluatorType = {
|
|
|
20
21
|
Llm: "llm",
|
|
21
22
|
LlmGeneral: "llm-general",
|
|
22
23
|
Conversation: "conversation",
|
|
24
|
+
ToolCall: "tool-call",
|
|
23
25
|
};
|
|
24
26
|
export const EvaluatorCreateEvaluatorType$zodSchema = z.enum([
|
|
25
27
|
"tts",
|
|
@@ -27,7 +29,8 @@ export const EvaluatorCreateEvaluatorType$zodSchema = z.enum([
|
|
|
27
29
|
"llm",
|
|
28
30
|
"llm-general",
|
|
29
31
|
"conversation",
|
|
30
|
-
|
|
32
|
+
"tool-call",
|
|
33
|
+
]).describe("What the evaluator judges:\n\n- `tts`: TTS audio\n- `stt`: one transcript\n- `llm`: a reply with its conversation history\n- `llm-general`: a standalone input and output pair\n- `conversation`: a full conversation\n- `tool-call`: whether the agent called the right tool, labelled by a person\n");
|
|
31
34
|
/**
|
|
32
35
|
* The modality the judge reads:
|
|
33
36
|
*
|
|
@@ -64,7 +67,7 @@ export const EvaluatorCreate$zodSchema = z.object({
|
|
|
64
67
|
data_type: EvaluatorCreateDataType$zodSchema.default("text").describe("The modality the judge reads:\n\n- `text`\n- `audio`\n"),
|
|
65
68
|
description: z.string().nullable().optional().describe("Description. Omit to leave blank"),
|
|
66
69
|
evaluator_type: EvaluatorCreateEvaluatorType$zodSchema.default("llm")
|
|
67
|
-
.describe("What the evaluator judges:\n\n- `tts`: TTS audio\n- `stt`: one transcript\n- `llm`: a reply with its conversation history\n- `llm-general`: a standalone input and output pair\n- `conversation`: a full conversation\n"),
|
|
70
|
+
.describe("What the evaluator judges:\n\n- `tts`: TTS audio\n- `stt`: one transcript\n- `llm`: a reply with its conversation history\n- `llm-general`: a standalone input and output pair\n- `conversation`: a full conversation\n- `tool-call`: whether the agent called the right tool, labelled by a person\n"),
|
|
68
71
|
name: z.string().describe("Evaluator name, unique within your workspace"),
|
|
69
72
|
output_type: EvaluatorCreateOutputType$zodSchema.default("binary").describe("How the evaluator scores:\n\n- `binary`: pass or fail\n- `rating`: a numeric score, using the scale in `output_config`\n"),
|
|
70
73
|
version: EvaluatorVersionCreate$zodSchema.describe("One version of an evaluator: its judge prompt, model, variables, and rubric."),
|