@lightsage/mcp 0.3.1 → 0.4.0
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/README.md +2 -2
- package/api/well-known-openai-apps-challenge.js +25 -0
- package/bin/mcp-server.js +660 -797
- package/bin/mcp-server.js.map +53 -57
- package/esm/funcs/evalsCancel.d.ts +16 -0
- package/esm/funcs/evalsCancel.d.ts.map +1 -0
- package/esm/funcs/{evalsAnalysis.js → evalsCancel.js} +10 -10
- package/esm/funcs/evalsCancel.js.map +1 -0
- package/esm/funcs/evalsGet.d.ts +16 -0
- package/esm/funcs/evalsGet.d.ts.map +1 -0
- package/esm/funcs/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +5 -5
- package/esm/funcs/evalsGet.js.map +1 -0
- package/esm/funcs/evalsRun.d.ts +6 -4
- package/esm/funcs/evalsRun.d.ts.map +1 -1
- package/esm/funcs/evalsRun.js +6 -4
- package/esm/funcs/evalsRun.js.map +1 -1
- package/esm/funcs/evalsV2EvalsCreate.d.ts +1 -1
- package/esm/funcs/evalsV2EvalsCreate.js +1 -1
- package/esm/funcs/evalsV2EvalsUpdate.d.ts +1 -1
- package/esm/funcs/evalsV2EvalsUpdate.js +1 -1
- package/esm/funcs/promptsV2PromptRunsList.d.ts +1 -1
- package/esm/funcs/promptsV2PromptRunsList.js +1 -1
- package/esm/funcs/promptsV2PromptRunsRetrieve.d.ts +1 -1
- package/esm/funcs/promptsV2PromptRunsRetrieve.js +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -9
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalsCancel.d.ts +7 -0
- package/esm/mcp-server/tools/evalsCancel.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalsCancel.js +35 -0
- package/esm/mcp-server/tools/evalsCancel.js.map +1 -0
- package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.d.ts → evalsGet.d.ts} +2 -2
- package/esm/mcp-server/tools/evalsGet.d.ts.map +1 -0
- package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +8 -8
- package/esm/mcp-server/tools/evalsGet.js.map +1 -0
- package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/evalsRun.js +6 -4
- package/esm/mcp-server/tools/evalsRun.js.map +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsCreate.js +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsCreate.js.map +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsUpdate.js +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsUpdate.js.map +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsList.js +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsList.js.map +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js.map +1 -1
- package/esm/models/createv2evalconfigurationrequest.d.ts +2 -0
- package/esm/models/createv2evalconfigurationrequest.d.ts.map +1 -1
- package/esm/models/createv2evalconfigurationrequest.js +2 -0
- package/esm/models/createv2evalconfigurationrequest.js.map +1 -1
- package/esm/models/createv2evalrequest.d.ts +5 -5
- package/esm/models/createv2evalrequest.d.ts.map +1 -1
- package/esm/models/createv2evalrequest.js +5 -10
- package/esm/models/createv2evalrequest.js.map +1 -1
- package/esm/models/createv2evalrunrequest.d.ts +5 -5
- package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
- package/esm/models/createv2evalrunrequest.js +6 -10
- package/esm/models/createv2evalrunrequest.js.map +1 -1
- package/esm/models/publiccompetitorrow.js +2 -2
- package/esm/models/publiccompetitorrow.js.map +1 -1
- package/esm/models/publiccriterionverdict.d.ts +26 -0
- package/esm/models/publiccriterionverdict.d.ts.map +1 -0
- package/esm/models/publiccriterionverdict.js +24 -0
- package/esm/models/publiccriterionverdict.js.map +1 -0
- package/esm/models/publiccurrentvisibilityresponse.js +2 -2
- package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
- package/esm/models/publicevalrunenvironment.d.ts +15 -0
- package/esm/models/publicevalrunenvironment.d.ts.map +1 -0
- package/esm/models/publicevalrunenvironment.js +15 -0
- package/esm/models/publicevalrunenvironment.js.map +1 -0
- package/esm/models/publicevalrunprogress.d.ts +1 -0
- package/esm/models/publicevalrunprogress.d.ts.map +1 -1
- package/esm/models/publicevalrunprogress.js +3 -2
- package/esm/models/publicevalrunprogress.js.map +1 -1
- package/esm/models/publicgraderresult.d.ts +13 -0
- package/esm/models/publicgraderresult.d.ts.map +1 -0
- package/esm/models/publicgraderresult.js +18 -0
- package/esm/models/publicgraderresult.js.map +1 -0
- package/esm/models/publicpromptvisibilitymetrics.js +2 -2
- package/esm/models/publicpromptvisibilitymetrics.js.map +1 -1
- package/esm/models/publicvisibilitysnapshot.js +2 -2
- package/esm/models/publicvisibilitysnapshot.js.map +1 -1
- package/esm/models/searchgroundingmode.d.ts +20 -0
- package/esm/models/searchgroundingmode.d.ts.map +1 -0
- package/esm/models/searchgroundingmode.js +19 -0
- package/esm/models/searchgroundingmode.js.map +1 -0
- package/esm/models/updatev2evalconfigurationrequest.d.ts +2 -0
- package/esm/models/updatev2evalconfigurationrequest.d.ts.map +1 -1
- package/esm/models/updatev2evalconfigurationrequest.js +3 -0
- package/esm/models/updatev2evalconfigurationrequest.js.map +1 -1
- package/esm/models/updatev2evalrequest.d.ts +5 -5
- package/esm/models/updatev2evalrequest.d.ts.map +1 -1
- package/esm/models/updatev2evalrequest.js +6 -10
- package/esm/models/updatev2evalrequest.js.map +1 -1
- package/esm/models/v2eval.d.ts +6 -2
- package/esm/models/v2eval.d.ts.map +1 -1
- package/esm/models/v2eval.js +5 -1
- package/esm/models/v2eval.js.map +1 -1
- package/esm/models/v2evalconfiguration.d.ts +2 -0
- package/esm/models/v2evalconfiguration.d.ts.map +1 -1
- package/esm/models/v2evalconfiguration.js +2 -0
- package/esm/models/v2evalconfiguration.js.map +1 -1
- package/esm/models/v2evalresultsummary.d.ts +10 -0
- package/esm/models/v2evalresultsummary.d.ts.map +1 -1
- package/esm/models/v2evalresultsummary.js +12 -1
- package/esm/models/v2evalresultsummary.js.map +1 -1
- package/esm/models/v2evalrun.d.ts.map +1 -1
- package/esm/models/v2evalrun.js +1 -1
- package/esm/models/v2evalrun.js.map +1 -1
- package/esm/models/v2evalrundetail.d.ts +30 -0
- package/esm/models/v2evalrundetail.d.ts.map +1 -0
- package/esm/models/v2evalrundetail.js +33 -0
- package/esm/models/v2evalrundetail.js.map +1 -0
- package/esm/models/v2evalrunscancelop.d.ts +31 -0
- package/esm/models/v2evalrunscancelop.d.ts.map +1 -0
- package/esm/models/v2evalrunscancelop.js +27 -0
- package/esm/models/v2evalrunscancelop.js.map +1 -0
- package/esm/models/v2evalrunscreateop.d.ts +23 -3
- package/esm/models/v2evalrunscreateop.d.ts.map +1 -1
- package/esm/models/v2evalrunscreateop.js +15 -2
- package/esm/models/v2evalrunscreateop.js.map +1 -1
- package/esm/models/v2evalrunsretrieveop.d.ts +9 -2
- package/esm/models/v2evalrunsretrieveop.d.ts.map +1 -1
- package/esm/models/v2evalrunsretrieveop.js +6 -2
- package/esm/models/v2evalrunsretrieveop.js.map +1 -1
- package/esm/models/v2evalruntraceevent.d.ts.map +1 -1
- package/esm/models/v2evalruntraceevent.js +1 -1
- package/esm/models/v2evalruntraceevent.js.map +1 -1
- package/esm/models/v2promptrundetail.d.ts +6 -0
- package/esm/models/v2promptrundetail.d.ts.map +1 -1
- package/esm/models/v2promptrundetail.js +4 -1
- package/esm/models/v2promptrundetail.js.map +1 -1
- package/esm/models/v2promptrunsummary.d.ts.map +1 -1
- package/esm/models/v2promptrunsummary.js +1 -1
- package/esm/models/v2promptrunsummary.js.map +1 -1
- package/esm/models/v2publictask.d.ts +2 -2
- package/esm/models/v2publictask.d.ts.map +1 -1
- package/esm/models/v2publictask.js +4 -4
- package/esm/models/v2publictask.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +11 -19
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/{evalsAnalysis.ts → evalsCancel.ts} +13 -13
- package/src/funcs/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +4 -4
- package/src/funcs/evalsRun.ts +6 -4
- package/src/funcs/evalsV2EvalsCreate.ts +1 -1
- package/src/funcs/evalsV2EvalsUpdate.ts +1 -1
- package/src/funcs/promptsV2PromptRunsList.ts +1 -1
- package/src/funcs/promptsV2PromptRunsRetrieve.ts +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -9
- package/src/mcp-server/tools/evalsCancel.ts +43 -0
- package/src/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +7 -7
- package/src/mcp-server/tools/evalsRun.ts +6 -4
- package/src/mcp-server/tools/evalsV2EvalsCreate.ts +1 -1
- package/src/mcp-server/tools/evalsV2EvalsUpdate.ts +1 -1
- package/src/mcp-server/tools/promptsV2PromptRunsList.ts +1 -1
- package/src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts +1 -1
- package/src/models/createv2evalconfigurationrequest.ts +8 -0
- package/src/models/createv2evalrequest.ts +18 -22
- package/src/models/createv2evalrunrequest.ts +19 -24
- package/src/models/publiccompetitorrow.ts +2 -2
- package/src/models/publiccriterionverdict.ts +48 -0
- package/src/models/publiccurrentvisibilityresponse.ts +2 -2
- package/src/models/publicevalrunenvironment.ts +47 -0
- package/src/models/publicevalrunprogress.ts +8 -2
- package/src/models/publicgraderresult.ts +44 -0
- package/src/models/publicpromptvisibilitymetrics.ts +2 -2
- package/src/models/publicvisibilitysnapshot.ts +2 -2
- package/src/models/searchgroundingmode.ts +26 -0
- package/src/models/updatev2evalconfigurationrequest.ts +9 -0
- package/src/models/updatev2evalrequest.ts +20 -21
- package/src/models/v2eval.ts +14 -2
- package/src/models/v2evalconfiguration.ts +8 -0
- package/src/models/v2evalresultsummary.ts +36 -1
- package/src/models/v2evalrun.ts +3 -1
- package/src/models/v2evalrundetail.ts +90 -0
- package/src/models/v2evalrunscancelop.ts +70 -0
- package/src/models/v2evalrunscreateop.ts +43 -5
- package/src/models/v2evalrunsretrieveop.ts +23 -3
- package/src/models/v2evalruntraceevent.ts +3 -1
- package/src/models/v2promptrundetail.ts +12 -1
- package/src/models/v2promptrunsummary.ts +3 -1
- package/src/models/v2publictask.ts +9 -7
- package/src/tool-names.ts +11 -19
- package/test/simulations.test.js +30 -3
- package/esm/funcs/evalResultsV2EvalResultsList.d.ts +0 -16
- package/esm/funcs/evalResultsV2EvalResultsList.d.ts.map +0 -1
- package/esm/funcs/evalResultsV2EvalResultsList.js +0 -87
- package/esm/funcs/evalResultsV2EvalResultsList.js.map +0 -1
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts +0 -16
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.js +0 -88
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.js.map +0 -1
- package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts +0 -16
- package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
- package/esm/funcs/evalRunsV2EvalRunsRetrieve.js.map +0 -1
- package/esm/funcs/evalsAnalysis.d.ts +0 -16
- package/esm/funcs/evalsAnalysis.d.ts.map +0 -1
- package/esm/funcs/evalsAnalysis.js.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts +0 -7
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js +0 -35
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts +0 -7
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js +0 -35
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js.map +0 -1
- package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.js.map +0 -1
- package/esm/mcp-server/tools/evalsAnalysis.d.ts +0 -7
- package/esm/mcp-server/tools/evalsAnalysis.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalsAnalysis.js +0 -35
- package/esm/mcp-server/tools/evalsAnalysis.js.map +0 -1
- package/esm/models/v2evalresult.d.ts +0 -23
- package/esm/models/v2evalresult.d.ts.map +0 -1
- package/esm/models/v2evalresult.js +0 -24
- package/esm/models/v2evalresult.js.map +0 -1
- package/esm/models/v2evalresultslistop.d.ts +0 -11
- package/esm/models/v2evalresultslistop.d.ts.map +0 -1
- package/esm/models/v2evalresultslistop.js +0 -16
- package/esm/models/v2evalresultslistop.js.map +0 -1
- package/esm/models/v2evalresultsresponse.d.ts +0 -9
- package/esm/models/v2evalresultsresponse.d.ts.map +0 -1
- package/esm/models/v2evalresultsresponse.js +0 -12
- package/esm/models/v2evalresultsresponse.js.map +0 -1
- package/esm/models/v2evalresultsretrieveop.d.ts +0 -10
- package/esm/models/v2evalresultsretrieveop.d.ts.map +0 -1
- package/esm/models/v2evalresultsretrieveop.js +0 -15
- package/esm/models/v2evalresultsretrieveop.js.map +0 -1
- package/esm/models/v2evalrunanalysisresponse.d.ts +0 -12
- package/esm/models/v2evalrunanalysisresponse.d.ts.map +0 -1
- package/esm/models/v2evalrunanalysisresponse.js +0 -15
- package/esm/models/v2evalrunanalysisresponse.js.map +0 -1
- package/esm/models/v2evalrunsanalysisop.d.ts +0 -17
- package/esm/models/v2evalrunsanalysisop.d.ts.map +0 -1
- package/esm/models/v2evalrunsanalysisop.js +0 -19
- package/esm/models/v2evalrunsanalysisop.js.map +0 -1
- package/src/funcs/evalResultsV2EvalResultsList.ts +0 -149
- package/src/funcs/evalResultsV2EvalResultsRetrieve.ts +0 -153
- package/src/mcp-server/tools/evalResultsV2EvalResultsList.ts +0 -43
- package/src/mcp-server/tools/evalResultsV2EvalResultsRetrieve.ts +0 -45
- package/src/mcp-server/tools/evalsAnalysis.ts +0 -43
- package/src/models/v2evalresult.ts +0 -46
- package/src/models/v2evalresultslistop.ts +0 -39
- package/src/models/v2evalresultsresponse.ts +0 -23
- package/src/models/v2evalresultsretrieveop.ts +0 -28
- package/src/models/v2evalrunanalysisresponse.ts +0 -32
- package/src/models/v2evalrunsanalysisop.ts +0 -48
package/src/mcp-server/server.ts
CHANGED
|
@@ -24,11 +24,9 @@ import { tool$contentV2ContentDraftsCreate } from "./tools/contentV2ContentDraft
|
|
|
24
24
|
import { tool$contentV2ContentFinalize } from "./tools/contentV2ContentFinalize.js";
|
|
25
25
|
import { tool$contentV2ContentRetrieve } from "./tools/contentV2ContentRetrieve.js";
|
|
26
26
|
import { tool$environmentsV2EnvironmentsList } from "./tools/environmentsV2EnvironmentsList.js";
|
|
27
|
-
import { tool$evalResultsV2EvalResultsList } from "./tools/evalResultsV2EvalResultsList.js";
|
|
28
|
-
import { tool$evalResultsV2EvalResultsRetrieve } from "./tools/evalResultsV2EvalResultsRetrieve.js";
|
|
29
27
|
import { tool$evalRunsV2EvalRunsList } from "./tools/evalRunsV2EvalRunsList.js";
|
|
30
|
-
import { tool$
|
|
31
|
-
import { tool$
|
|
28
|
+
import { tool$evalsCancel } from "./tools/evalsCancel.js";
|
|
29
|
+
import { tool$evalsGet } from "./tools/evalsGet.js";
|
|
32
30
|
import { tool$evalsRun } from "./tools/evalsRun.js";
|
|
33
31
|
import { tool$evalsTrace } from "./tools/evalsTrace.js";
|
|
34
32
|
import { tool$evalsV2EvalConfigurationsCreate } from "./tools/evalsV2EvalConfigurationsCreate.js";
|
|
@@ -92,7 +90,7 @@ export function createMCPServer(deps: {
|
|
|
92
90
|
sizes: ["any"],
|
|
93
91
|
}],
|
|
94
92
|
name: "LightsageMcp",
|
|
95
|
-
version: "0.
|
|
93
|
+
version: "0.4.0",
|
|
96
94
|
});
|
|
97
95
|
|
|
98
96
|
const getClient = deps.getSDK || (() =>
|
|
@@ -175,12 +173,10 @@ export function createMCPServer(deps: {
|
|
|
175
173
|
tool(tool$evalsV2EvalConfigurationsUpdate);
|
|
176
174
|
tool(tool$evalsV2EvalConfigurationsDelete);
|
|
177
175
|
tool(tool$evalsRun);
|
|
178
|
-
tool(tool$
|
|
176
|
+
tool(tool$evalsCancel);
|
|
179
177
|
tool(tool$evalsTrace);
|
|
178
|
+
tool(tool$evalsGet);
|
|
180
179
|
tool(tool$evalRunsV2EvalRunsList);
|
|
181
|
-
tool(tool$evalRunsV2EvalRunsRetrieve);
|
|
182
|
-
tool(tool$evalResultsV2EvalResultsList);
|
|
183
|
-
tool(tool$evalResultsV2EvalResultsRetrieve);
|
|
184
180
|
tool(tool$agentsV2AgentsList);
|
|
185
181
|
tool(tool$repositoriesV2RepositoriesList);
|
|
186
182
|
tool(tool$repositoriesV2RepositoriesCreate);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f3b70c209c44
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { evalsCancel } from "../../funcs/evalsCancel.js";
|
|
7
|
+
import { V2EvalRunsCancelRequest$zodSchema } from "../../models/v2evalrunscancelop.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: V2EvalRunsCancelRequest$zodSchema,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$evalsCancel: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "evals-cancel",
|
|
16
|
+
description: `Cancel an eval run
|
|
17
|
+
|
|
18
|
+
Marks an active eval run as cancelled and prevents queued attempts from starting. Running sandbox attempts are stopped asynchronously. Requests already sent to an external provider cannot be recalled, but any later response does not change the run from cancelled. Repeating this request for an already-cancelled run is safe.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"title": "",
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": false,
|
|
25
|
+
},
|
|
26
|
+
args,
|
|
27
|
+
tool: async (client, args, ctx) => {
|
|
28
|
+
const [result] = await evalsCancel(
|
|
29
|
+
client,
|
|
30
|
+
args.request,
|
|
31
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
32
|
+
).$inspect();
|
|
33
|
+
|
|
34
|
+
if (!result.ok) {
|
|
35
|
+
return {
|
|
36
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37
|
+
isError: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return formatResult(result.value);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
3
|
+
* @generated-id: c9ae728c8946
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { evalsGet } from "../../funcs/evalsGet.js";
|
|
7
7
|
import { V2EvalRunsRetrieveRequest$zodSchema } from "../../models/v2evalrunsretrieveop.js";
|
|
8
8
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
9
|
|
|
@@ -11,11 +11,11 @@ const args = {
|
|
|
11
11
|
request: V2EvalRunsRetrieveRequest$zodSchema,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export const tool$
|
|
15
|
-
name: "
|
|
16
|
-
description: `Retrieve
|
|
14
|
+
export const tool$evalsGet: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "evals-get",
|
|
16
|
+
description: `Retrieve an eval run
|
|
17
17
|
|
|
18
|
-
Returns the status and progress
|
|
18
|
+
Returns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -25,7 +25,7 @@ Returns the status and progress of an eval job. Poll until the status reaches a
|
|
|
25
25
|
},
|
|
26
26
|
args,
|
|
27
27
|
tool: async (client, args, ctx) => {
|
|
28
|
-
const [result] = await
|
|
28
|
+
const [result] = await evalsGet(
|
|
29
29
|
client,
|
|
30
30
|
args.request,
|
|
31
31
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -15,14 +15,16 @@ export const tool$evalsRun: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "evals-run",
|
|
16
16
|
description: `Start an eval run
|
|
17
17
|
|
|
18
|
-
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value.
|
|
18
|
+
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
|
|
19
19
|
|
|
20
20
|
Send one of these flat request forms:
|
|
21
21
|
|
|
22
|
-
- **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
|
23
|
-
- **Direct create-and-run:** provide \`prompts\`, \`judges\`, and \`agent\`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, and
|
|
22
|
+
- **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
|
23
|
+
- **Direct create-and-run:** provide \`prompts\`, \`judges\`, and \`agent\`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.
|
|
24
24
|
|
|
25
|
-
The run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate \`mode\` field is required
|
|
25
|
+
The run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate \`mode\` field is required. If the organization lacks the estimated credits, the request fails with \`402\` before dispatching work.
|
|
26
|
+
|
|
27
|
+
A saved or inline environment containing an empty or placeholder credential is rejected with \`400\` before any evaluation is dispatched.`,
|
|
26
28
|
annotations: {
|
|
27
29
|
"title": "",
|
|
28
30
|
"destructiveHint": false,
|
|
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsCreate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "evals-v2-evals-create",
|
|
16
16
|
description: `Create Eval
|
|
17
17
|
|
|
18
|
-
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, repeat count, and tags are saved with the eval. Creating the eval does not start a run and does not accept secret environment values.`,
|
|
18
|
+
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -15,7 +15,7 @@ export const tool$evalsV2EvalsUpdate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "evals-v2-evals-update",
|
|
16
16
|
description: `Update Eval
|
|
17
17
|
|
|
18
|
-
Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
|
|
18
|
+
Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, \`setup_commands\`, \`cleanup_commands\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -15,7 +15,7 @@ export const tool$promptsV2PromptRunsList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "prompts-v2-prompt-runs-list",
|
|
16
16
|
description: `List Prompt Runs
|
|
17
17
|
|
|
18
|
-
Returns stored prompt runs without exposing raw runtime or provider configuration.
|
|
18
|
+
Returns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -15,7 +15,7 @@ export const tool$promptsV2PromptRunsRetrieve: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "prompts-v2-prompt-runs-retrieve",
|
|
16
16
|
description: `Retrieve Prompt Run
|
|
17
17
|
|
|
18
|
-
Returns one stored prompt run, including
|
|
18
|
+
Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
SearchGroundingMode,
|
|
9
|
+
SearchGroundingMode$zodSchema,
|
|
10
|
+
} from "./searchgroundingmode.js";
|
|
7
11
|
|
|
8
12
|
export type CreateV2EvalConfigurationRequest = {
|
|
9
13
|
name: string;
|
|
@@ -14,6 +18,7 @@ export type CreateV2EvalConfigurationRequest = {
|
|
|
14
18
|
skill_ids?: Array<string> | undefined;
|
|
15
19
|
skills?: Array<string> | undefined;
|
|
16
20
|
include_docs?: boolean | undefined;
|
|
21
|
+
search_grounding?: SearchGroundingMode | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
export const CreateV2EvalConfigurationRequest$zodSchema: z.ZodType<
|
|
@@ -25,6 +30,9 @@ export const CreateV2EvalConfigurationRequest$zodSchema: z.ZodType<
|
|
|
25
30
|
mcp_server_ids: z.array(z.string()).optional(),
|
|
26
31
|
name: z.string(),
|
|
27
32
|
repository_id: z.string().optional(),
|
|
33
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe(
|
|
34
|
+
"Requested web-retrieval behavior for an eval run.",
|
|
35
|
+
),
|
|
28
36
|
skill_ids: z.array(z.string()).optional(),
|
|
29
37
|
skills: z.array(z.string()).optional().describe(
|
|
30
38
|
"Public skill packages saved with this configuration, using GitHub `owner/repository` references such as `resend/resend-skills`.",
|
|
@@ -5,31 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
SearchGroundingMode,
|
|
9
|
+
SearchGroundingMode$zodSchema,
|
|
10
|
+
} from "./searchgroundingmode.js";
|
|
11
11
|
import {
|
|
12
12
|
V2InlineMcpDefinition,
|
|
13
13
|
V2InlineMcpDefinition$zodSchema,
|
|
14
14
|
} from "./v2inlinemcpdefinition.js";
|
|
15
|
-
import {
|
|
16
|
-
V2SavedCliReference,
|
|
17
|
-
V2SavedCliReference$zodSchema,
|
|
18
|
-
} from "./v2savedclireference.js";
|
|
19
15
|
import {
|
|
20
16
|
V2SavedMcpReference,
|
|
21
17
|
V2SavedMcpReference$zodSchema,
|
|
22
18
|
} from "./v2savedmcpreference.js";
|
|
23
19
|
|
|
24
|
-
export type CreateV2EvalRequestCli = V2SavedCliReference | V2InlineCliReference;
|
|
25
|
-
|
|
26
|
-
export const CreateV2EvalRequestCli$zodSchema: z.ZodType<
|
|
27
|
-
CreateV2EvalRequestCli
|
|
28
|
-
> = z.union([
|
|
29
|
-
V2SavedCliReference$zodSchema,
|
|
30
|
-
V2InlineCliReference$zodSchema,
|
|
31
|
-
]);
|
|
32
|
-
|
|
33
20
|
export type CreateV2EvalRequestMcp =
|
|
34
21
|
| V2InlineMcpDefinition
|
|
35
22
|
| V2SavedMcpReference;
|
|
@@ -47,8 +34,11 @@ export type CreateV2EvalRequest = {
|
|
|
47
34
|
judges: Array<string>;
|
|
48
35
|
agent?: Array<string> | undefined;
|
|
49
36
|
persona?: string | undefined;
|
|
50
|
-
clis?: Array<
|
|
37
|
+
clis?: Array<string> | undefined;
|
|
51
38
|
mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | undefined;
|
|
39
|
+
setup_commands?: Array<string> | undefined;
|
|
40
|
+
cleanup_commands?: Array<string> | undefined;
|
|
41
|
+
search_grounding?: SearchGroundingMode | undefined;
|
|
52
42
|
runs?: number | undefined;
|
|
53
43
|
tags?: Array<string> | undefined;
|
|
54
44
|
};
|
|
@@ -58,11 +48,11 @@ export const CreateV2EvalRequest$zodSchema: z.ZodType<CreateV2EvalRequest> = z
|
|
|
58
48
|
agent: z.array(z.string()).optional().describe(
|
|
59
49
|
"Runnable agents from `GET /v2/agents`. An empty array saves the eval without default agents. CLI clients expose repeatable `--agent`.",
|
|
60
50
|
),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"Saved CLI
|
|
51
|
+
cleanup_commands: z.array(z.string()).optional().describe(
|
|
52
|
+
"Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. CLI clients expose repeatable `--cleanup-command`.",
|
|
53
|
+
),
|
|
54
|
+
clis: z.array(z.string()).optional().describe(
|
|
55
|
+
"Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. CLI clients expose repeatable `--cli`.",
|
|
66
56
|
),
|
|
67
57
|
judges: z.array(z.string()).describe(
|
|
68
58
|
"Plain-text success criteria. CLI clients expose this as repeatable `--judge`.",
|
|
@@ -83,6 +73,12 @@ export const CreateV2EvalRequest$zodSchema: z.ZodType<CreateV2EvalRequest> = z
|
|
|
83
73
|
runs: z.int().default(1).describe(
|
|
84
74
|
"Independent attempts for every prompt-agent pair.",
|
|
85
75
|
),
|
|
76
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe(
|
|
77
|
+
"Requested web-retrieval behavior for an eval run.",
|
|
78
|
+
),
|
|
79
|
+
setup_commands: z.array(z.string()).optional().describe(
|
|
80
|
+
"Shell commands run sequentially in the prepared repository before the agent starts. CLI clients expose repeatable `--setup-command`.",
|
|
81
|
+
),
|
|
86
82
|
tags: z.array(z.string()).optional().describe(
|
|
87
83
|
"Optional labels for organizing the eval. CLI clients may expose this string array as a repeatable `--tag` flag.",
|
|
88
84
|
),
|
|
@@ -5,33 +5,18 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
SearchGroundingMode,
|
|
9
|
+
SearchGroundingMode$zodSchema,
|
|
10
|
+
} from "./searchgroundingmode.js";
|
|
11
11
|
import {
|
|
12
12
|
V2InlineMcpDefinition,
|
|
13
13
|
V2InlineMcpDefinition$zodSchema,
|
|
14
14
|
} from "./v2inlinemcpdefinition.js";
|
|
15
|
-
import {
|
|
16
|
-
V2SavedCliReference,
|
|
17
|
-
V2SavedCliReference$zodSchema,
|
|
18
|
-
} from "./v2savedclireference.js";
|
|
19
15
|
import {
|
|
20
16
|
V2SavedMcpReference,
|
|
21
17
|
V2SavedMcpReference$zodSchema,
|
|
22
18
|
} from "./v2savedmcpreference.js";
|
|
23
19
|
|
|
24
|
-
export type CreateV2EvalRunRequestCli =
|
|
25
|
-
| V2SavedCliReference
|
|
26
|
-
| V2InlineCliReference;
|
|
27
|
-
|
|
28
|
-
export const CreateV2EvalRunRequestCli$zodSchema: z.ZodType<
|
|
29
|
-
CreateV2EvalRunRequestCli
|
|
30
|
-
> = z.union([
|
|
31
|
-
V2SavedCliReference$zodSchema,
|
|
32
|
-
V2InlineCliReference$zodSchema,
|
|
33
|
-
]);
|
|
34
|
-
|
|
35
20
|
export type CreateV2EvalRunRequestMcp =
|
|
36
21
|
| V2InlineMcpDefinition
|
|
37
22
|
| V2SavedMcpReference;
|
|
@@ -54,14 +39,17 @@ export type CreateV2EvalRunRequest = {
|
|
|
54
39
|
judges?: Array<string> | null | undefined;
|
|
55
40
|
agent?: Array<string> | null | undefined;
|
|
56
41
|
persona?: string | undefined;
|
|
57
|
-
clis?: Array<
|
|
42
|
+
clis?: Array<string> | null | undefined;
|
|
58
43
|
mcps?: Array<V2InlineMcpDefinition | V2SavedMcpReference> | null | undefined;
|
|
44
|
+
setup_commands?: Array<string> | null | undefined;
|
|
45
|
+
cleanup_commands?: Array<string> | null | undefined;
|
|
59
46
|
runs?: number | undefined;
|
|
60
47
|
tags?: Array<string> | undefined;
|
|
61
48
|
repository?: string | undefined;
|
|
62
49
|
env?: { [k: string]: string } | undefined;
|
|
63
50
|
skills?: Array<string> | undefined;
|
|
64
51
|
skill_ids?: Array<string> | undefined;
|
|
52
|
+
search_grounding?: SearchGroundingMode | null | undefined;
|
|
65
53
|
};
|
|
66
54
|
|
|
67
55
|
export const CreateV2EvalRunRequest$zodSchema: z.ZodType<
|
|
@@ -70,11 +58,11 @@ export const CreateV2EvalRunRequest$zodSchema: z.ZodType<
|
|
|
70
58
|
agent: z.array(z.string()).nullable().optional().describe(
|
|
71
59
|
"Runnable agents from `GET /v2/agents`. Required unless the saved eval already has agents. CLI clients expose repeatable `--agent`.",
|
|
72
60
|
),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"Saved CLI
|
|
61
|
+
cleanup_commands: z.array(z.string()).nullable().optional().describe(
|
|
62
|
+
"Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. In saved mode, an explicit empty array disables saved cleanup commands for this launch. CLI clients expose repeatable `--cleanup-command`.",
|
|
63
|
+
),
|
|
64
|
+
clis: z.array(z.string()).nullable().optional().describe(
|
|
65
|
+
"Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. In saved mode, an explicit empty array disables saved CLIs for this launch. CLI clients expose repeatable `--cli`.",
|
|
78
66
|
),
|
|
79
67
|
configuration_id: z.string().optional().describe(
|
|
80
68
|
"Saved-run form only. Optional saved repository, environment, skills, and legacy tool configuration.",
|
|
@@ -109,6 +97,13 @@ export const CreateV2EvalRunRequest$zodSchema: z.ZodType<
|
|
|
109
97
|
runs: z.int().optional().describe(
|
|
110
98
|
"Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run.",
|
|
111
99
|
),
|
|
100
|
+
search_grounding: SearchGroundingMode$zodSchema.nullable().optional()
|
|
101
|
+
.describe(
|
|
102
|
+
"Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to `default`.",
|
|
103
|
+
),
|
|
104
|
+
setup_commands: z.array(z.string()).nullable().optional().describe(
|
|
105
|
+
"Shell commands run sequentially in the prepared repository before the agent starts. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`.",
|
|
106
|
+
),
|
|
112
107
|
skill_ids: z.array(z.string()).optional().describe(
|
|
113
108
|
"Direct create-and-run form only. Reusable skill IDs from `GET /v2/skills` to install before the agent starts.",
|
|
114
109
|
),
|
|
@@ -26,11 +26,11 @@ export const PublicCompetitorRow$zodSchema: z.ZodType<PublicCompetitorRow> = z
|
|
|
26
26
|
),
|
|
27
27
|
company: PublicCompany$zodSchema,
|
|
28
28
|
share_of_voice: z.number().nullable().optional().describe(
|
|
29
|
-
"
|
|
29
|
+
"Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded. A run can mention several companies, so rows do not sum to 1.",
|
|
30
30
|
),
|
|
31
31
|
share_of_voice_rank: z.int().nullable().optional(),
|
|
32
32
|
visibility_score: z.number().nullable().optional().describe(
|
|
33
|
-
"
|
|
33
|
+
"Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. Rows do not sum to 1.",
|
|
34
34
|
),
|
|
35
35
|
visibility_score_rank: z.int().nullable().optional(),
|
|
36
36
|
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8574e6eb13db
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* `PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.
|
|
11
|
+
*/
|
|
12
|
+
export const Verdict = {
|
|
13
|
+
Pass: "PASS",
|
|
14
|
+
Fail: "FAIL",
|
|
15
|
+
NotVerified: "NOT_VERIFIED",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* `PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.
|
|
19
|
+
*/
|
|
20
|
+
export type Verdict = ClosedEnum<typeof Verdict>;
|
|
21
|
+
|
|
22
|
+
export const Verdict$zodSchema = z.enum([
|
|
23
|
+
"PASS",
|
|
24
|
+
"FAIL",
|
|
25
|
+
"NOT_VERIFIED",
|
|
26
|
+
]).describe(
|
|
27
|
+
"`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.",
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
export type PublicCriterionVerdict = {
|
|
31
|
+
criterion: string;
|
|
32
|
+
verdict: Verdict;
|
|
33
|
+
evidence?: string | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const PublicCriterionVerdict$zodSchema: z.ZodType<
|
|
37
|
+
PublicCriterionVerdict
|
|
38
|
+
> = z.object({
|
|
39
|
+
criterion: z.string().describe(
|
|
40
|
+
"One mandatory requirement from the judge criteria.",
|
|
41
|
+
),
|
|
42
|
+
evidence: z.string().nullable().optional().describe(
|
|
43
|
+
"Short evidence the judge gave for the verdict.",
|
|
44
|
+
),
|
|
45
|
+
verdict: Verdict$zodSchema.describe(
|
|
46
|
+
"`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.",
|
|
47
|
+
),
|
|
48
|
+
});
|
|
@@ -36,12 +36,12 @@ export const PublicCurrentVisibilityResponse$zodSchema: z.ZodType<
|
|
|
36
36
|
end_date: z.string(),
|
|
37
37
|
has_data: z.boolean(),
|
|
38
38
|
share_of_voice: z.number().nullable().optional().describe(
|
|
39
|
-
"
|
|
39
|
+
"Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
|
|
40
40
|
),
|
|
41
41
|
share_of_voice_rank: z.int().nullable().optional(),
|
|
42
42
|
start_date: z.string(),
|
|
43
43
|
visibility_score: z.number().nullable().optional().describe(
|
|
44
|
-
"
|
|
44
|
+
"Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
|
|
45
45
|
),
|
|
46
46
|
visibility_score_rank: z.int().nullable().optional(),
|
|
47
47
|
});
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 99dc6a5135ee
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Non-secret summary of the environment an eval run was queued with.
|
|
10
|
+
*/
|
|
11
|
+
export type PublicEvalRunEnvironment = {
|
|
12
|
+
id?: string | null | undefined;
|
|
13
|
+
name?: string | null | undefined;
|
|
14
|
+
updated_at?: string | null | undefined;
|
|
15
|
+
queued_at?: string | null | undefined;
|
|
16
|
+
variable_names?: Array<string> | undefined;
|
|
17
|
+
inline?: boolean | undefined;
|
|
18
|
+
changed_since_queued?: boolean | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const PublicEvalRunEnvironment$zodSchema: z.ZodType<
|
|
22
|
+
PublicEvalRunEnvironment
|
|
23
|
+
> = z.object({
|
|
24
|
+
changed_since_queued: z.boolean().nullable().optional().describe(
|
|
25
|
+
"True when the saved environment has been edited or deleted since the run was queued, so a rerun would use different values. Null when unknown or for inline environments.",
|
|
26
|
+
),
|
|
27
|
+
id: z.string().nullable().optional().describe(
|
|
28
|
+
"Environment ID, as listed by the environments operation.",
|
|
29
|
+
),
|
|
30
|
+
inline: z.boolean().default(false).describe(
|
|
31
|
+
"True when variables were supplied inline with the run request instead of from a saved environment.",
|
|
32
|
+
),
|
|
33
|
+
name: z.string().nullable().optional().describe(
|
|
34
|
+
"Environment name when the run was queued.",
|
|
35
|
+
),
|
|
36
|
+
queued_at: z.string().nullable().optional().describe(
|
|
37
|
+
"When the run was queued with this environment.",
|
|
38
|
+
),
|
|
39
|
+
updated_at: z.string().nullable().optional().describe(
|
|
40
|
+
"Environment version the run used: when its name or variables last changed before the run was queued. Null if the environment had not changed since versioning was introduced.",
|
|
41
|
+
),
|
|
42
|
+
variable_names: z.array(z.string()).optional().describe(
|
|
43
|
+
"Variable names supplied to the run. Values are never returned.",
|
|
44
|
+
),
|
|
45
|
+
}).describe(
|
|
46
|
+
"Non-secret summary of the environment an eval run was queued with.",
|
|
47
|
+
);
|
|
@@ -12,6 +12,7 @@ export type PublicEvalRunProgress = {
|
|
|
12
12
|
completed?: number | undefined;
|
|
13
13
|
failed?: number | undefined;
|
|
14
14
|
cancelled?: number | undefined;
|
|
15
|
+
retrying?: number | undefined;
|
|
15
16
|
interrupted?: number | undefined;
|
|
16
17
|
percent?: number | undefined;
|
|
17
18
|
};
|
|
@@ -21,11 +22,16 @@ export const PublicEvalRunProgress$zodSchema: z.ZodType<PublicEvalRunProgress> =
|
|
|
21
22
|
cancelled: z.int().default(0),
|
|
22
23
|
completed: z.int().default(0),
|
|
23
24
|
failed: z.int().default(0),
|
|
24
|
-
interrupted: z.int().default(0)
|
|
25
|
+
interrupted: z.int().default(0).describe(
|
|
26
|
+
"Deprecated compatibility alias for `retrying`; use `retrying`.",
|
|
27
|
+
),
|
|
25
28
|
percent: z.number().default(0).describe(
|
|
26
|
-
"The percentage of child jobs in a
|
|
29
|
+
"The percentage of child jobs in a final state (`completed`, `failed`, or `cancelled`). It can reach `100` while the parent job is still summarizing, so use `status` to detect completion.",
|
|
27
30
|
),
|
|
28
31
|
queued: z.int().default(0),
|
|
32
|
+
retrying: z.int().default(0).describe(
|
|
33
|
+
"Recoverable child jobs waiting to be retried. These remain active and are excluded from `percent`.",
|
|
34
|
+
),
|
|
29
35
|
running: z.int().default(0),
|
|
30
36
|
total: z.int().default(0),
|
|
31
37
|
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 73852ac8b2ad
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
PublicCriterionVerdict,
|
|
9
|
+
PublicCriterionVerdict$zodSchema,
|
|
10
|
+
} from "./publiccriterionverdict.js";
|
|
11
|
+
|
|
12
|
+
export type PublicGraderResult = {
|
|
13
|
+
name: string;
|
|
14
|
+
label?: string | null | undefined;
|
|
15
|
+
passed?: boolean | null | undefined;
|
|
16
|
+
score?: number | null | undefined;
|
|
17
|
+
deductions?: Array<string> | undefined;
|
|
18
|
+
details?: string | null | undefined;
|
|
19
|
+
criteria_verdicts?: Array<PublicCriterionVerdict> | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const PublicGraderResult$zodSchema: z.ZodType<PublicGraderResult> = z
|
|
23
|
+
.object({
|
|
24
|
+
criteria_verdicts: z.array(PublicCriterionVerdict$zodSchema).optional()
|
|
25
|
+
.describe(
|
|
26
|
+
"Judges only: a verdict for each mandatory requirement in the judge criteria. Empty for other checks and for runs graded before per-requirement verdicts were recorded.",
|
|
27
|
+
),
|
|
28
|
+
deductions: z.array(z.string()).optional().describe(
|
|
29
|
+
"Specific shortcomings the check recorded, even when it passed. A judge can pass with a score below 1 and still list deductions here; those checks do not appear in `failure_reasons`.",
|
|
30
|
+
),
|
|
31
|
+
details: z.string().nullable().optional().describe(
|
|
32
|
+
"Reasoning or check output explaining the verdict.",
|
|
33
|
+
),
|
|
34
|
+
label: z.string().nullable().optional().describe(
|
|
35
|
+
"Display name for the check, when the grader sets one.",
|
|
36
|
+
),
|
|
37
|
+
name: z.string().describe("Grader name as configured on the eval."),
|
|
38
|
+
passed: z.boolean().nullable().optional().describe(
|
|
39
|
+
"Whether this check passed.",
|
|
40
|
+
),
|
|
41
|
+
score: z.number().nullable().optional().describe(
|
|
42
|
+
"Score from 0 to 1 for checks that score partially, such as judges; null for pass/fail checks.",
|
|
43
|
+
),
|
|
44
|
+
});
|
|
@@ -25,10 +25,10 @@ export const PublicPromptVisibilityMetrics$zodSchema: z.ZodType<
|
|
|
25
25
|
"One per prompt, platform, and run date.",
|
|
26
26
|
),
|
|
27
27
|
share_of_voice: z.number().nullable().optional().describe(
|
|
28
|
-
"
|
|
28
|
+
"Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
|
|
29
29
|
),
|
|
30
30
|
visibility_score: z.number().nullable().optional().describe(
|
|
31
|
-
"
|
|
31
|
+
"Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
|
|
32
32
|
),
|
|
33
33
|
visibility_score_rank: z.int().nullable().optional(),
|
|
34
34
|
});
|
|
@@ -23,14 +23,14 @@ export const PublicVisibilitySnapshot$zodSchema: z.ZodType<
|
|
|
23
23
|
),
|
|
24
24
|
average_position_rank: z.int().nullable().optional(),
|
|
25
25
|
share_of_voice: z.number().nullable().optional().describe(
|
|
26
|
-
"
|
|
26
|
+
"Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
|
|
27
27
|
),
|
|
28
28
|
share_of_voice_rank: z.int().nullable().optional(),
|
|
29
29
|
total_citations: z.int().default(0).describe(
|
|
30
30
|
"Owned-domain citations across all platforms; 0, not `null`, with no prompt runs.",
|
|
31
31
|
),
|
|
32
32
|
visibility_score: z.number().nullable().optional().describe(
|
|
33
|
-
"
|
|
33
|
+
"Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded.",
|
|
34
34
|
),
|
|
35
35
|
visibility_score_rank: z.int().nullable().optional(),
|
|
36
36
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d6aefbc6ebf6
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Requested web-retrieval behavior for an eval run.
|
|
11
|
+
*/
|
|
12
|
+
export const SearchGroundingMode = {
|
|
13
|
+
Disabled: "disabled",
|
|
14
|
+
Enabled: "enabled",
|
|
15
|
+
Default: "default",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Requested web-retrieval behavior for an eval run.
|
|
19
|
+
*/
|
|
20
|
+
export type SearchGroundingMode = ClosedEnum<typeof SearchGroundingMode>;
|
|
21
|
+
|
|
22
|
+
export const SearchGroundingMode$zodSchema = z.enum([
|
|
23
|
+
"disabled",
|
|
24
|
+
"enabled",
|
|
25
|
+
"default",
|
|
26
|
+
]).describe("Requested web-retrieval behavior for an eval run.");
|