@meetkai/mka1 0.51.34 → 0.51.36

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.
Files changed (194) hide show
  1. package/README.md +232 -226
  2. package/bin/mcp-server.js +2092 -1439
  3. package/bin/mcp-server.js.map +18 -10
  4. package/dist/commonjs/funcs/llmEvalsGetSampleAudio.d.ts +18 -0
  5. package/dist/commonjs/funcs/llmEvalsGetSampleAudio.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/llmEvalsGetSampleAudio.js +141 -0
  7. package/dist/commonjs/funcs/llmEvalsGetSampleAudio.js.map +1 -0
  8. package/dist/commonjs/funcs/llmEvalsListSamples.js +5 -0
  9. package/dist/commonjs/funcs/llmEvalsListSamples.js.map +1 -1
  10. package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts +17 -0
  11. package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.js +138 -0
  13. package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  14. package/dist/commonjs/lib/config.d.ts +2 -2
  15. package/dist/commonjs/lib/config.js +2 -2
  16. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  17. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  18. package/dist/commonjs/mcp-server/server.js +5 -1
  19. package/dist/commonjs/mcp-server/server.js.map +1 -1
  20. package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.d.ts +8 -0
  21. package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.d.ts.map +1 -0
  22. package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.js +64 -0
  23. package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.js.map +1 -0
  24. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts +8 -0
  25. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  26. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js +64 -0
  27. package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  28. package/dist/commonjs/models/components/evalleaderboardrungroup.d.ts +35 -0
  29. package/dist/commonjs/models/components/evalleaderboardrungroup.d.ts.map +1 -0
  30. package/dist/commonjs/models/components/evalleaderboardrungroup.js +75 -0
  31. package/dist/commonjs/models/components/evalleaderboardrungroup.js.map +1 -0
  32. package/dist/commonjs/models/components/evalsampleaudioobject.d.ts +37 -0
  33. package/dist/commonjs/models/components/evalsampleaudioobject.d.ts.map +1 -0
  34. package/dist/commonjs/models/components/evalsampleaudioobject.js +77 -0
  35. package/dist/commonjs/models/components/evalsampleaudioobject.js.map +1 -0
  36. package/dist/commonjs/models/components/index.d.ts +2 -0
  37. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/index.js +2 -0
  39. package/dist/commonjs/models/components/index.js.map +1 -1
  40. package/dist/commonjs/models/operations/getevalsampleaudio.d.ts +28 -0
  41. package/dist/commonjs/models/operations/getevalsampleaudio.d.ts.map +1 -0
  42. package/dist/commonjs/models/operations/getevalsampleaudio.js +81 -0
  43. package/dist/commonjs/models/operations/getevalsampleaudio.js.map +1 -0
  44. package/dist/commonjs/models/operations/index.d.ts +2 -0
  45. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/index.js +2 -0
  47. package/dist/commonjs/models/operations/index.js.map +1 -1
  48. package/dist/commonjs/models/operations/listevalsamples.d.ts +10 -0
  49. package/dist/commonjs/models/operations/listevalsamples.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/listevalsamples.js +20 -0
  51. package/dist/commonjs/models/operations/listevalsamples.js.map +1 -1
  52. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.d.ts +273 -0
  53. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.d.ts.map +1 -0
  54. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.js +390 -0
  55. package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.js.map +1 -0
  56. package/dist/commonjs/react-query/index.d.ts +2 -0
  57. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  58. package/dist/commonjs/react-query/index.js +2 -0
  59. package/dist/commonjs/react-query/index.js.map +1 -1
  60. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.d.ts +17 -0
  61. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.d.ts.map +1 -0
  62. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.js +45 -0
  63. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.js.map +1 -0
  64. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.d.ts +44 -0
  65. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.d.ts.map +1 -0
  66. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.js +60 -0
  67. package/dist/commonjs/react-query/llmEvalsGetSampleAudio.js.map +1 -0
  68. package/dist/commonjs/react-query/llmEvalsListSamples.core.d.ts +5 -0
  69. package/dist/commonjs/react-query/llmEvalsListSamples.core.d.ts.map +1 -1
  70. package/dist/commonjs/react-query/llmEvalsListSamples.core.js +5 -0
  71. package/dist/commonjs/react-query/llmEvalsListSamples.core.js.map +1 -1
  72. package/dist/commonjs/react-query/llmEvalsListSamples.d.ts +10 -0
  73. package/dist/commonjs/react-query/llmEvalsListSamples.d.ts.map +1 -1
  74. package/dist/commonjs/react-query/llmEvalsListSamples.js.map +1 -1
  75. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts +18 -0
  76. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts.map +1 -0
  77. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.js +46 -0
  78. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.js.map +1 -0
  79. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts +46 -0
  80. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  81. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.js +65 -0
  82. package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  83. package/dist/commonjs/sdk/evals.d.ts +14 -0
  84. package/dist/commonjs/sdk/evals.d.ts.map +1 -1
  85. package/dist/commonjs/sdk/evals.js +20 -0
  86. package/dist/commonjs/sdk/evals.js.map +1 -1
  87. package/dist/esm/funcs/llmEvalsGetSampleAudio.d.ts +18 -0
  88. package/dist/esm/funcs/llmEvalsGetSampleAudio.d.ts.map +1 -0
  89. package/dist/esm/funcs/llmEvalsGetSampleAudio.js +105 -0
  90. package/dist/esm/funcs/llmEvalsGetSampleAudio.js.map +1 -0
  91. package/dist/esm/funcs/llmEvalsListSamples.js +5 -0
  92. package/dist/esm/funcs/llmEvalsListSamples.js.map +1 -1
  93. package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts +17 -0
  94. package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  95. package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.js +102 -0
  96. package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  97. package/dist/esm/lib/config.d.ts +2 -2
  98. package/dist/esm/lib/config.js +2 -2
  99. package/dist/esm/mcp-server/mcp-server.js +1 -1
  100. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  101. package/dist/esm/mcp-server/server.js +5 -1
  102. package/dist/esm/mcp-server/server.js.map +1 -1
  103. package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.d.ts +8 -0
  104. package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.d.ts.map +1 -0
  105. package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.js +28 -0
  106. package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.js.map +1 -0
  107. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts +8 -0
  108. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  109. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js +28 -0
  110. package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  111. package/dist/esm/models/components/evalleaderboardrungroup.d.ts +35 -0
  112. package/dist/esm/models/components/evalleaderboardrungroup.d.ts.map +1 -0
  113. package/dist/esm/models/components/evalleaderboardrungroup.js +37 -0
  114. package/dist/esm/models/components/evalleaderboardrungroup.js.map +1 -0
  115. package/dist/esm/models/components/evalsampleaudioobject.d.ts +37 -0
  116. package/dist/esm/models/components/evalsampleaudioobject.d.ts.map +1 -0
  117. package/dist/esm/models/components/evalsampleaudioobject.js +39 -0
  118. package/dist/esm/models/components/evalsampleaudioobject.js.map +1 -0
  119. package/dist/esm/models/components/index.d.ts +2 -0
  120. package/dist/esm/models/components/index.d.ts.map +1 -1
  121. package/dist/esm/models/components/index.js +2 -0
  122. package/dist/esm/models/components/index.js.map +1 -1
  123. package/dist/esm/models/operations/getevalsampleaudio.d.ts +28 -0
  124. package/dist/esm/models/operations/getevalsampleaudio.d.ts.map +1 -0
  125. package/dist/esm/models/operations/getevalsampleaudio.js +43 -0
  126. package/dist/esm/models/operations/getevalsampleaudio.js.map +1 -0
  127. package/dist/esm/models/operations/index.d.ts +2 -0
  128. package/dist/esm/models/operations/index.d.ts.map +1 -1
  129. package/dist/esm/models/operations/index.js +2 -0
  130. package/dist/esm/models/operations/index.js.map +1 -1
  131. package/dist/esm/models/operations/listevalsamples.d.ts +10 -0
  132. package/dist/esm/models/operations/listevalsamples.d.ts.map +1 -1
  133. package/dist/esm/models/operations/listevalsamples.js +20 -0
  134. package/dist/esm/models/operations/listevalsamples.js.map +1 -1
  135. package/dist/esm/models/operations/listevalsuiteleaderboardruns.d.ts +273 -0
  136. package/dist/esm/models/operations/listevalsuiteleaderboardruns.d.ts.map +1 -0
  137. package/dist/esm/models/operations/listevalsuiteleaderboardruns.js +340 -0
  138. package/dist/esm/models/operations/listevalsuiteleaderboardruns.js.map +1 -0
  139. package/dist/esm/react-query/index.d.ts +2 -0
  140. package/dist/esm/react-query/index.d.ts.map +1 -1
  141. package/dist/esm/react-query/index.js +2 -0
  142. package/dist/esm/react-query/index.js.map +1 -1
  143. package/dist/esm/react-query/llmEvalsGetSampleAudio.core.d.ts +17 -0
  144. package/dist/esm/react-query/llmEvalsGetSampleAudio.core.d.ts.map +1 -0
  145. package/dist/esm/react-query/llmEvalsGetSampleAudio.core.js +40 -0
  146. package/dist/esm/react-query/llmEvalsGetSampleAudio.core.js.map +1 -0
  147. package/dist/esm/react-query/llmEvalsGetSampleAudio.d.ts +44 -0
  148. package/dist/esm/react-query/llmEvalsGetSampleAudio.d.ts.map +1 -0
  149. package/dist/esm/react-query/llmEvalsGetSampleAudio.js +50 -0
  150. package/dist/esm/react-query/llmEvalsGetSampleAudio.js.map +1 -0
  151. package/dist/esm/react-query/llmEvalsListSamples.core.d.ts +5 -0
  152. package/dist/esm/react-query/llmEvalsListSamples.core.d.ts.map +1 -1
  153. package/dist/esm/react-query/llmEvalsListSamples.core.js +5 -0
  154. package/dist/esm/react-query/llmEvalsListSamples.core.js.map +1 -1
  155. package/dist/esm/react-query/llmEvalsListSamples.d.ts +10 -0
  156. package/dist/esm/react-query/llmEvalsListSamples.d.ts.map +1 -1
  157. package/dist/esm/react-query/llmEvalsListSamples.js.map +1 -1
  158. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts +18 -0
  159. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts.map +1 -0
  160. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.js +41 -0
  161. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.js.map +1 -0
  162. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts +46 -0
  163. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
  164. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.js +55 -0
  165. package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
  166. package/dist/esm/sdk/evals.d.ts +14 -0
  167. package/dist/esm/sdk/evals.d.ts.map +1 -1
  168. package/dist/esm/sdk/evals.js +20 -0
  169. package/dist/esm/sdk/evals.js.map +1 -1
  170. package/jsr.json +1 -1
  171. package/package.json +1 -1
  172. package/src/funcs/llmEvalsGetSampleAudio.ts +195 -0
  173. package/src/funcs/llmEvalsListSamples.ts +5 -0
  174. package/src/funcs/llmEvalsListSuiteLeaderboardRuns.ts +198 -0
  175. package/src/lib/config.ts +2 -2
  176. package/src/mcp-server/mcp-server.ts +1 -1
  177. package/src/mcp-server/server.ts +5 -1
  178. package/src/mcp-server/tools/llmEvalsGetSampleAudio.ts +37 -0
  179. package/src/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.ts +39 -0
  180. package/src/models/components/evalleaderboardrungroup.ts +86 -0
  181. package/src/models/components/evalsampleaudioobject.ts +90 -0
  182. package/src/models/components/index.ts +2 -0
  183. package/src/models/operations/getevalsampleaudio.ts +85 -0
  184. package/src/models/operations/index.ts +2 -0
  185. package/src/models/operations/listevalsamples.ts +30 -0
  186. package/src/models/operations/listevalsuiteleaderboardruns.ts +754 -0
  187. package/src/react-query/index.ts +2 -0
  188. package/src/react-query/llmEvalsGetSampleAudio.core.ts +94 -0
  189. package/src/react-query/llmEvalsGetSampleAudio.ts +154 -0
  190. package/src/react-query/llmEvalsListSamples.core.ts +10 -0
  191. package/src/react-query/llmEvalsListSamples.ts +10 -0
  192. package/src/react-query/llmEvalsListSuiteLeaderboardRuns.core.ts +92 -0
  193. package/src/react-query/llmEvalsListSuiteLeaderboardRuns.ts +164 -0
  194. package/src/sdk/evals.ts +36 -0
@@ -147,6 +147,7 @@ import { tool$llmEvalsDeleteSchedule } from "./tools/llmEvalsDeleteSchedule.js";
147
147
  import { tool$llmEvalsDeleteSuite } from "./tools/llmEvalsDeleteSuite.js";
148
148
  import { tool$llmEvalsGetArtifacts } from "./tools/llmEvalsGetArtifacts.js";
149
149
  import { tool$llmEvalsGetRun } from "./tools/llmEvalsGetRun.js";
150
+ import { tool$llmEvalsGetSampleAudio } from "./tools/llmEvalsGetSampleAudio.js";
150
151
  import { tool$llmEvalsGetSchedule } from "./tools/llmEvalsGetSchedule.js";
151
152
  import { tool$llmEvalsGetSuite } from "./tools/llmEvalsGetSuite.js";
152
153
  import { tool$llmEvalsGetSuiteVersion } from "./tools/llmEvalsGetSuiteVersion.js";
@@ -155,6 +156,7 @@ import { tool$llmEvalsListRuns } from "./tools/llmEvalsListRuns.js";
155
156
  import { tool$llmEvalsListSamples } from "./tools/llmEvalsListSamples.js";
156
157
  import { tool$llmEvalsListScheduleRuns } from "./tools/llmEvalsListScheduleRuns.js";
157
158
  import { tool$llmEvalsListSchedules } from "./tools/llmEvalsListSchedules.js";
159
+ import { tool$llmEvalsListSuiteLeaderboardRuns } from "./tools/llmEvalsListSuiteLeaderboardRuns.js";
158
160
  import { tool$llmEvalsListSuites } from "./tools/llmEvalsListSuites.js";
159
161
  import { tool$llmEvalsListSuiteVersions } from "./tools/llmEvalsListSuiteVersions.js";
160
162
  import { tool$llmEvalsRerunFailedSamples } from "./tools/llmEvalsRerunFailedSamples.js";
@@ -346,7 +348,7 @@ export function createMCPServer(deps: {
346
348
  }) {
347
349
  const server = new McpServer({
348
350
  name: "SDK",
349
- version: "0.51.34",
351
+ version: "0.51.36",
350
352
  });
351
353
 
352
354
  const client = new SDKCore({
@@ -494,6 +496,7 @@ export function createMCPServer(deps: {
494
496
  tool(tool$llmEvalsCreateSuiteVersion);
495
497
  tool(tool$llmEvalsListSuiteVersions);
496
498
  tool(tool$llmEvalsGetSuiteVersion);
499
+ tool(tool$llmEvalsListSuiteLeaderboardRuns);
497
500
  tool(tool$llmEvalsCreateRun);
498
501
  tool(tool$llmEvalsListRuns);
499
502
  tool(tool$llmEvalsGetRun);
@@ -502,6 +505,7 @@ export function createMCPServer(deps: {
502
505
  tool(tool$llmEvalsRerunFailedSamples);
503
506
  tool(tool$llmEvalsRetryFailedRun);
504
507
  tool(tool$llmEvalsListSamples);
508
+ tool(tool$llmEvalsGetSampleAudio);
505
509
  tool(tool$llmEvalsGetArtifacts);
506
510
  tool(tool$llmEvalsImportHistoricalResults);
507
511
  tool(tool$llmEvalsCreateSchedule);
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { llmEvalsGetSampleAudio } from "../../funcs/llmEvalsGetSampleAudio.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.GetEvalSampleAudioRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$llmEvalsGetSampleAudio: ToolDefinition<typeof args> = {
14
+ name: "llm-evals-get-sample-audio",
15
+ description: `Get eval sample audio
16
+
17
+ Returns \`{ object, audio, sample_index, task_id, model }\` for a single transcription sample — the clip reference (a base64 \`data:\` URI or a URL) read from the un-redacted \`dataset_row\` (list responses redact inline \`data:\` blobs), plus the resolved task/model. Prefers the task's configured \`audio_column\`, falling back to a heuristic scan. The clip differs across tasks, so pass \`task_id\` when a run has more than one transcription task; if the index spans multiple tasks and \`task_id\` is omitted, returns 400 rather than guessing. \`model\` is optional (the clip is identical across models) and only extends the index prefix. Returns 404 when the sample or its audio is absent, 413 when the inline clip is too large.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await llmEvalsGetSampleAudio(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { llmEvalsListSuiteLeaderboardRuns } from "../../funcs/llmEvalsListSuiteLeaderboardRuns.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ListEvalSuiteLeaderboardRunsRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$llmEvalsListSuiteLeaderboardRuns: ToolDefinition<
14
+ typeof args
15
+ > = {
16
+ name: "llm-evals-list-suite-leaderboard-runs",
17
+ description: `List leaderboard runs for an eval suite
18
+
19
+ Returns each ranking group's most recent completed runs for a suite in one request, with the group assignments in \`groups\`. A group is (model, targeted task) for task_ids-restricted runs and (model) for unrestricted runs (task_id null). Build boards from \`groups\`, not from run.models/run.task_ids — a returned run may name models or tasks whose groups it did not rank in. \`truncated: true\` means a server ceiling trimmed the aggregate; whole runs are kept in (best rank, first model, first task, id) order, so every group's newest runs survive before any group's fallbacks and no group is dropped for being old. Resume a truncated board by passing \`next_cursor\` back as \`cursor\` and unioning the responses. See the evals docs for grouping rationale and cost characteristics.`,
20
+ args,
21
+ tool: async (client, args, ctx) => {
22
+ const [result, apiCall] = await llmEvalsListSuiteLeaderboardRuns(
23
+ client,
24
+ args.request,
25
+ { fetchOptions: { signal: ctx.signal } },
26
+ ).$inspect();
27
+
28
+ if (!result.ok) {
29
+ return {
30
+ content: [{ type: "text", text: result.error.message }],
31
+ isError: true,
32
+ };
33
+ }
34
+
35
+ const value = result.value;
36
+
37
+ return formatResult(value, apiCall);
38
+ },
39
+ };
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type EvalLeaderboardRunGroup = {
12
+ /**
13
+ * The group's model.
14
+ */
15
+ model: string;
16
+ /**
17
+ * The group's targeted task, or null for the per-model covers-everything group that unrestricted runs (no task_ids) rank in — those runs cover every task of their version.
18
+ */
19
+ taskId: string | null;
20
+ /**
21
+ * 1 is the group's newest completed run. Ranks order runs within a group but are not slot indexes: under truncation a group's surviving ranks may be non-contiguous.
22
+ */
23
+ rank: number;
24
+ /**
25
+ * The run holding this rank; the full run object is in `data`.
26
+ */
27
+ runId: string;
28
+ };
29
+
30
+ /** @internal */
31
+ export const EvalLeaderboardRunGroup$inboundSchema: z.ZodType<
32
+ EvalLeaderboardRunGroup,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ model: z.string(),
37
+ task_id: z.nullable(z.string()),
38
+ rank: z.number().int(),
39
+ run_id: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ "task_id": "taskId",
43
+ "run_id": "runId",
44
+ });
45
+ });
46
+ /** @internal */
47
+ export type EvalLeaderboardRunGroup$Outbound = {
48
+ model: string;
49
+ task_id: string | null;
50
+ rank: number;
51
+ run_id: string;
52
+ };
53
+
54
+ /** @internal */
55
+ export const EvalLeaderboardRunGroup$outboundSchema: z.ZodType<
56
+ EvalLeaderboardRunGroup$Outbound,
57
+ z.ZodTypeDef,
58
+ EvalLeaderboardRunGroup
59
+ > = z.object({
60
+ model: z.string(),
61
+ taskId: z.nullable(z.string()),
62
+ rank: z.number().int(),
63
+ runId: z.string(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
66
+ taskId: "task_id",
67
+ runId: "run_id",
68
+ });
69
+ });
70
+
71
+ export function evalLeaderboardRunGroupToJSON(
72
+ evalLeaderboardRunGroup: EvalLeaderboardRunGroup,
73
+ ): string {
74
+ return JSON.stringify(
75
+ EvalLeaderboardRunGroup$outboundSchema.parse(evalLeaderboardRunGroup),
76
+ );
77
+ }
78
+ export function evalLeaderboardRunGroupFromJSON(
79
+ jsonString: string,
80
+ ): SafeParseResult<EvalLeaderboardRunGroup, SDKValidationError> {
81
+ return safeParse(
82
+ jsonString,
83
+ (x) => EvalLeaderboardRunGroup$inboundSchema.parse(JSON.parse(x)),
84
+ `Failed to parse 'EvalLeaderboardRunGroup' from JSON`,
85
+ );
86
+ }
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type EvalSampleAudioObject = {
12
+ object: "eval.sample.audio";
13
+ /**
14
+ * Playable clip reference: a base64 `data:` URI or an http(s) URL.
15
+ */
16
+ audio: string;
17
+ /**
18
+ * Echoes the requested sample index so the client has a complete cache key without tracking it.
19
+ */
20
+ sampleIndex: number;
21
+ /**
22
+ * The task the clip was resolved from (the clip differs across tasks).
23
+ */
24
+ taskId: string;
25
+ /**
26
+ * The model row the clip was read from. The clip is identical across models within a task.
27
+ */
28
+ model: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const EvalSampleAudioObject$inboundSchema: z.ZodType<
33
+ EvalSampleAudioObject,
34
+ z.ZodTypeDef,
35
+ unknown
36
+ > = z.object({
37
+ object: z.literal("eval.sample.audio"),
38
+ audio: z.string(),
39
+ sample_index: z.number().int(),
40
+ task_id: z.string(),
41
+ model: z.string(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ "sample_index": "sampleIndex",
45
+ "task_id": "taskId",
46
+ });
47
+ });
48
+ /** @internal */
49
+ export type EvalSampleAudioObject$Outbound = {
50
+ object: "eval.sample.audio";
51
+ audio: string;
52
+ sample_index: number;
53
+ task_id: string;
54
+ model: string;
55
+ };
56
+
57
+ /** @internal */
58
+ export const EvalSampleAudioObject$outboundSchema: z.ZodType<
59
+ EvalSampleAudioObject$Outbound,
60
+ z.ZodTypeDef,
61
+ EvalSampleAudioObject
62
+ > = z.object({
63
+ object: z.literal("eval.sample.audio"),
64
+ audio: z.string(),
65
+ sampleIndex: z.number().int(),
66
+ taskId: z.string(),
67
+ model: z.string(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ sampleIndex: "sample_index",
71
+ taskId: "task_id",
72
+ });
73
+ });
74
+
75
+ export function evalSampleAudioObjectToJSON(
76
+ evalSampleAudioObject: EvalSampleAudioObject,
77
+ ): string {
78
+ return JSON.stringify(
79
+ EvalSampleAudioObject$outboundSchema.parse(evalSampleAudioObject),
80
+ );
81
+ }
82
+ export function evalSampleAudioObjectFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<EvalSampleAudioObject, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => EvalSampleAudioObject$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'EvalSampleAudioObject' from JSON`,
89
+ );
90
+ }
@@ -198,6 +198,7 @@ export * from "./evaldatasetformat.js";
198
198
  export * from "./evalfewshotconfig.js";
199
199
  export * from "./evalgenerationconfig.js";
200
200
  export * from "./evalhistoricalimportobject.js";
201
+ export * from "./evalleaderboardrungroup.js";
201
202
  export * from "./evalmetric.js";
202
203
  export * from "./evaloutputextraction.js";
203
204
  export * from "./evalpythongrader.js";
@@ -207,6 +208,7 @@ export * from "./evalpythongradermodelaccess.js";
207
208
  export * from "./evalpythonpreprocessor.js";
208
209
  export * from "./evalrundeletedobject.js";
209
210
  export * from "./evalrunstatus.js";
211
+ export * from "./evalsampleaudioobject.js";
210
212
  export * from "./evalsamplelist.js";
211
213
  export * from "./evalsampleobject.js";
212
214
  export * from "./evalsamplestatus.js";
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type GetEvalSampleAudioRequest = {
12
+ runId: string;
13
+ sampleIndex: number;
14
+ model?: string | undefined;
15
+ taskId?: string | undefined;
16
+ /**
17
+ * Optional external end-user identifier forwarded by the API gateway.
18
+ */
19
+ xOnBehalfOf?: string | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const GetEvalSampleAudioRequest$inboundSchema: z.ZodType<
24
+ GetEvalSampleAudioRequest,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ run_id: z.string(),
29
+ sample_index: z.number().int(),
30
+ model: z.string().optional(),
31
+ task_id: z.string().optional(),
32
+ "X-On-Behalf-Of": z.string().optional(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "run_id": "runId",
36
+ "sample_index": "sampleIndex",
37
+ "task_id": "taskId",
38
+ "X-On-Behalf-Of": "xOnBehalfOf",
39
+ });
40
+ });
41
+ /** @internal */
42
+ export type GetEvalSampleAudioRequest$Outbound = {
43
+ run_id: string;
44
+ sample_index: number;
45
+ model?: string | undefined;
46
+ task_id?: string | undefined;
47
+ "X-On-Behalf-Of"?: string | undefined;
48
+ };
49
+
50
+ /** @internal */
51
+ export const GetEvalSampleAudioRequest$outboundSchema: z.ZodType<
52
+ GetEvalSampleAudioRequest$Outbound,
53
+ z.ZodTypeDef,
54
+ GetEvalSampleAudioRequest
55
+ > = z.object({
56
+ runId: z.string(),
57
+ sampleIndex: z.number().int(),
58
+ model: z.string().optional(),
59
+ taskId: z.string().optional(),
60
+ xOnBehalfOf: z.string().optional(),
61
+ }).transform((v) => {
62
+ return remap$(v, {
63
+ runId: "run_id",
64
+ sampleIndex: "sample_index",
65
+ taskId: "task_id",
66
+ xOnBehalfOf: "X-On-Behalf-Of",
67
+ });
68
+ });
69
+
70
+ export function getEvalSampleAudioRequestToJSON(
71
+ getEvalSampleAudioRequest: GetEvalSampleAudioRequest,
72
+ ): string {
73
+ return JSON.stringify(
74
+ GetEvalSampleAudioRequest$outboundSchema.parse(getEvalSampleAudioRequest),
75
+ );
76
+ }
77
+ export function getEvalSampleAudioRequestFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<GetEvalSampleAudioRequest, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => GetEvalSampleAudioRequest$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'GetEvalSampleAudioRequest' from JSON`,
84
+ );
85
+ }
@@ -131,6 +131,7 @@ export * from "./getcurrency.js";
131
131
  export * from "./getembeddingsusage.js";
132
132
  export * from "./getevalartifacts.js";
133
133
  export * from "./getevalrun.js";
134
+ export * from "./getevalsampleaudio.js";
134
135
  export * from "./getevalschedule.js";
135
136
  export * from "./getevalsuite.js";
136
137
  export * from "./getevalsuiteversion.js";
@@ -200,6 +201,7 @@ export * from "./listevalruns.js";
200
201
  export * from "./listevalsamples.js";
201
202
  export * from "./listevalscheduleruns.js";
202
203
  export * from "./listevalschedules.js";
204
+ export * from "./listevalsuiteleaderboardruns.js";
203
205
  export * from "./listevalsuites.js";
204
206
  export * from "./listevalsuiteversions.js";
205
207
  export * from "./listfiles.js";
@@ -27,6 +27,11 @@ export type ListEvalSamplesRequest = {
27
27
  taskId?: string | undefined;
28
28
  model?: string | undefined;
29
29
  status?: QueryParamStatus | undefined;
30
+ scoreMetric?: string | undefined;
31
+ scoreMin?: number | undefined;
32
+ scoreMax?: number | undefined;
33
+ includeDatasetRow?: boolean | undefined;
34
+ sampleIndex?: string | undefined;
30
35
  /**
31
36
  * Optional external end-user identifier forwarded by the API gateway.
32
37
  */
@@ -54,11 +59,21 @@ export const ListEvalSamplesRequest$inboundSchema: z.ZodType<
54
59
  task_id: z.string().optional(),
55
60
  model: z.string().optional(),
56
61
  status: QueryParamStatus$inboundSchema.optional(),
62
+ score_metric: z.string().optional(),
63
+ score_min: z.number().optional(),
64
+ score_max: z.number().optional(),
65
+ include_dataset_row: z.boolean().default(true),
66
+ sample_index: z.string().optional(),
57
67
  "X-On-Behalf-Of": z.string().optional(),
58
68
  }).transform((v) => {
59
69
  return remap$(v, {
60
70
  "run_id": "runId",
61
71
  "task_id": "taskId",
72
+ "score_metric": "scoreMetric",
73
+ "score_min": "scoreMin",
74
+ "score_max": "scoreMax",
75
+ "include_dataset_row": "includeDatasetRow",
76
+ "sample_index": "sampleIndex",
62
77
  "X-On-Behalf-Of": "xOnBehalfOf",
63
78
  });
64
79
  });
@@ -70,6 +85,11 @@ export type ListEvalSamplesRequest$Outbound = {
70
85
  task_id?: string | undefined;
71
86
  model?: string | undefined;
72
87
  status?: string | undefined;
88
+ score_metric?: string | undefined;
89
+ score_min?: number | undefined;
90
+ score_max?: number | undefined;
91
+ include_dataset_row: boolean;
92
+ sample_index?: string | undefined;
73
93
  "X-On-Behalf-Of"?: string | undefined;
74
94
  };
75
95
 
@@ -85,11 +105,21 @@ export const ListEvalSamplesRequest$outboundSchema: z.ZodType<
85
105
  taskId: z.string().optional(),
86
106
  model: z.string().optional(),
87
107
  status: QueryParamStatus$outboundSchema.optional(),
108
+ scoreMetric: z.string().optional(),
109
+ scoreMin: z.number().optional(),
110
+ scoreMax: z.number().optional(),
111
+ includeDatasetRow: z.boolean().default(true),
112
+ sampleIndex: z.string().optional(),
88
113
  xOnBehalfOf: z.string().optional(),
89
114
  }).transform((v) => {
90
115
  return remap$(v, {
91
116
  runId: "run_id",
92
117
  taskId: "task_id",
118
+ scoreMetric: "score_metric",
119
+ scoreMin: "score_min",
120
+ scoreMax: "score_max",
121
+ includeDatasetRow: "include_dataset_row",
122
+ sampleIndex: "sample_index",
93
123
  xOnBehalfOf: "X-On-Behalf-Of",
94
124
  });
95
125
  });