@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.
- package/README.md +232 -226
- package/bin/mcp-server.js +2092 -1439
- package/bin/mcp-server.js.map +18 -10
- package/dist/commonjs/funcs/llmEvalsGetSampleAudio.d.ts +18 -0
- package/dist/commonjs/funcs/llmEvalsGetSampleAudio.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmEvalsGetSampleAudio.js +141 -0
- package/dist/commonjs/funcs/llmEvalsGetSampleAudio.js.map +1 -0
- package/dist/commonjs/funcs/llmEvalsListSamples.js +5 -0
- package/dist/commonjs/funcs/llmEvalsListSamples.js.map +1 -1
- package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts +17 -0
- package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.js +138 -0
- package/dist/commonjs/funcs/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmEvalsGetSampleAudio.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
- package/dist/commonjs/models/components/evalleaderboardrungroup.d.ts +35 -0
- package/dist/commonjs/models/components/evalleaderboardrungroup.d.ts.map +1 -0
- package/dist/commonjs/models/components/evalleaderboardrungroup.js +75 -0
- package/dist/commonjs/models/components/evalleaderboardrungroup.js.map +1 -0
- package/dist/commonjs/models/components/evalsampleaudioobject.d.ts +37 -0
- package/dist/commonjs/models/components/evalsampleaudioobject.d.ts.map +1 -0
- package/dist/commonjs/models/components/evalsampleaudioobject.js +77 -0
- package/dist/commonjs/models/components/evalsampleaudioobject.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/getevalsampleaudio.d.ts +28 -0
- package/dist/commonjs/models/operations/getevalsampleaudio.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getevalsampleaudio.js +81 -0
- package/dist/commonjs/models/operations/getevalsampleaudio.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listevalsamples.d.ts +10 -0
- package/dist/commonjs/models/operations/listevalsamples.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevalsamples.js +20 -0
- package/dist/commonjs/models/operations/listevalsamples.js.map +1 -1
- package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.d.ts +273 -0
- package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.js +390 -0
- package/dist/commonjs/models/operations/listevalsuiteleaderboardruns.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.d.ts +17 -0
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.js +45 -0
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.core.js.map +1 -0
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.d.ts +44 -0
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.js +60 -0
- package/dist/commonjs/react-query/llmEvalsGetSampleAudio.js.map +1 -0
- package/dist/commonjs/react-query/llmEvalsListSamples.core.d.ts +5 -0
- package/dist/commonjs/react-query/llmEvalsListSamples.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmEvalsListSamples.core.js +5 -0
- package/dist/commonjs/react-query/llmEvalsListSamples.core.js.map +1 -1
- package/dist/commonjs/react-query/llmEvalsListSamples.d.ts +10 -0
- package/dist/commonjs/react-query/llmEvalsListSamples.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmEvalsListSamples.js.map +1 -1
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts +18 -0
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.js +46 -0
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.core.js.map +1 -0
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts +46 -0
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.js +65 -0
- package/dist/commonjs/react-query/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
- package/dist/commonjs/sdk/evals.d.ts +14 -0
- package/dist/commonjs/sdk/evals.d.ts.map +1 -1
- package/dist/commonjs/sdk/evals.js +20 -0
- package/dist/commonjs/sdk/evals.js.map +1 -1
- package/dist/esm/funcs/llmEvalsGetSampleAudio.d.ts +18 -0
- package/dist/esm/funcs/llmEvalsGetSampleAudio.d.ts.map +1 -0
- package/dist/esm/funcs/llmEvalsGetSampleAudio.js +105 -0
- package/dist/esm/funcs/llmEvalsGetSampleAudio.js.map +1 -0
- package/dist/esm/funcs/llmEvalsListSamples.js +5 -0
- package/dist/esm/funcs/llmEvalsListSamples.js.map +1 -1
- package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts +17 -0
- package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
- package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.js +102 -0
- package/dist/esm/funcs/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.js +28 -0
- package/dist/esm/mcp-server/tools/llmEvalsGetSampleAudio.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js +28 -0
- package/dist/esm/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
- package/dist/esm/models/components/evalleaderboardrungroup.d.ts +35 -0
- package/dist/esm/models/components/evalleaderboardrungroup.d.ts.map +1 -0
- package/dist/esm/models/components/evalleaderboardrungroup.js +37 -0
- package/dist/esm/models/components/evalleaderboardrungroup.js.map +1 -0
- package/dist/esm/models/components/evalsampleaudioobject.d.ts +37 -0
- package/dist/esm/models/components/evalsampleaudioobject.d.ts.map +1 -0
- package/dist/esm/models/components/evalsampleaudioobject.js +39 -0
- package/dist/esm/models/components/evalsampleaudioobject.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/getevalsampleaudio.d.ts +28 -0
- package/dist/esm/models/operations/getevalsampleaudio.d.ts.map +1 -0
- package/dist/esm/models/operations/getevalsampleaudio.js +43 -0
- package/dist/esm/models/operations/getevalsampleaudio.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listevalsamples.d.ts +10 -0
- package/dist/esm/models/operations/listevalsamples.d.ts.map +1 -1
- package/dist/esm/models/operations/listevalsamples.js +20 -0
- package/dist/esm/models/operations/listevalsamples.js.map +1 -1
- package/dist/esm/models/operations/listevalsuiteleaderboardruns.d.ts +273 -0
- package/dist/esm/models/operations/listevalsuiteleaderboardruns.d.ts.map +1 -0
- package/dist/esm/models/operations/listevalsuiteleaderboardruns.js +340 -0
- package/dist/esm/models/operations/listevalsuiteleaderboardruns.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/llmEvalsGetSampleAudio.core.d.ts +17 -0
- package/dist/esm/react-query/llmEvalsGetSampleAudio.core.d.ts.map +1 -0
- package/dist/esm/react-query/llmEvalsGetSampleAudio.core.js +40 -0
- package/dist/esm/react-query/llmEvalsGetSampleAudio.core.js.map +1 -0
- package/dist/esm/react-query/llmEvalsGetSampleAudio.d.ts +44 -0
- package/dist/esm/react-query/llmEvalsGetSampleAudio.d.ts.map +1 -0
- package/dist/esm/react-query/llmEvalsGetSampleAudio.js +50 -0
- package/dist/esm/react-query/llmEvalsGetSampleAudio.js.map +1 -0
- package/dist/esm/react-query/llmEvalsListSamples.core.d.ts +5 -0
- package/dist/esm/react-query/llmEvalsListSamples.core.d.ts.map +1 -1
- package/dist/esm/react-query/llmEvalsListSamples.core.js +5 -0
- package/dist/esm/react-query/llmEvalsListSamples.core.js.map +1 -1
- package/dist/esm/react-query/llmEvalsListSamples.d.ts +10 -0
- package/dist/esm/react-query/llmEvalsListSamples.d.ts.map +1 -1
- package/dist/esm/react-query/llmEvalsListSamples.js.map +1 -1
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts +18 -0
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.d.ts.map +1 -0
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.js +41 -0
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.core.js.map +1 -0
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts +46 -0
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.d.ts.map +1 -0
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.js +55 -0
- package/dist/esm/react-query/llmEvalsListSuiteLeaderboardRuns.js.map +1 -0
- package/dist/esm/sdk/evals.d.ts +14 -0
- package/dist/esm/sdk/evals.d.ts.map +1 -1
- package/dist/esm/sdk/evals.js +20 -0
- package/dist/esm/sdk/evals.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmEvalsGetSampleAudio.ts +195 -0
- package/src/funcs/llmEvalsListSamples.ts +5 -0
- package/src/funcs/llmEvalsListSuiteLeaderboardRuns.ts +198 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/llmEvalsGetSampleAudio.ts +37 -0
- package/src/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.ts +39 -0
- package/src/models/components/evalleaderboardrungroup.ts +86 -0
- package/src/models/components/evalsampleaudioobject.ts +90 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/operations/getevalsampleaudio.ts +85 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listevalsamples.ts +30 -0
- package/src/models/operations/listevalsuiteleaderboardruns.ts +754 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/llmEvalsGetSampleAudio.core.ts +94 -0
- package/src/react-query/llmEvalsGetSampleAudio.ts +154 -0
- package/src/react-query/llmEvalsListSamples.core.ts +10 -0
- package/src/react-query/llmEvalsListSamples.ts +10 -0
- package/src/react-query/llmEvalsListSuiteLeaderboardRuns.core.ts +92 -0
- package/src/react-query/llmEvalsListSuiteLeaderboardRuns.ts +164 -0
- package/src/sdk/evals.ts +36 -0
package/src/react-query/index.ts
CHANGED
|
@@ -139,6 +139,7 @@ export * from "./llmEvalsDeleteSchedule.js";
|
|
|
139
139
|
export * from "./llmEvalsDeleteSuite.js";
|
|
140
140
|
export * from "./llmEvalsGetArtifacts.js";
|
|
141
141
|
export * from "./llmEvalsGetRun.js";
|
|
142
|
+
export * from "./llmEvalsGetSampleAudio.js";
|
|
142
143
|
export * from "./llmEvalsGetSchedule.js";
|
|
143
144
|
export * from "./llmEvalsGetSuite.js";
|
|
144
145
|
export * from "./llmEvalsGetSuiteVersion.js";
|
|
@@ -147,6 +148,7 @@ export * from "./llmEvalsListRuns.js";
|
|
|
147
148
|
export * from "./llmEvalsListSamples.js";
|
|
148
149
|
export * from "./llmEvalsListScheduleRuns.js";
|
|
149
150
|
export * from "./llmEvalsListSchedules.js";
|
|
151
|
+
export * from "./llmEvalsListSuiteLeaderboardRuns.js";
|
|
150
152
|
export * from "./llmEvalsListSuites.js";
|
|
151
153
|
export * from "./llmEvalsListSuiteVersions.js";
|
|
152
154
|
export * from "./llmEvalsRerunFailedSamples.js";
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
QueryClient,
|
|
7
|
+
QueryFunctionContext,
|
|
8
|
+
QueryKey,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { llmEvalsGetSampleAudio } from "../funcs/llmEvalsGetSampleAudio.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import * as operations from "../models/operations/index.js";
|
|
16
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
17
|
+
export type LlmEvalsGetSampleAudioQueryData = components.EvalSampleAudioObject;
|
|
18
|
+
|
|
19
|
+
export function prefetchLlmEvalsGetSampleAudio(
|
|
20
|
+
queryClient: QueryClient,
|
|
21
|
+
client$: SDKCore,
|
|
22
|
+
request: operations.GetEvalSampleAudioRequest,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<void> {
|
|
25
|
+
return queryClient.prefetchQuery({
|
|
26
|
+
...buildLlmEvalsGetSampleAudioQuery(
|
|
27
|
+
client$,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function buildLlmEvalsGetSampleAudioQuery(
|
|
35
|
+
client$: SDKCore,
|
|
36
|
+
request: operations.GetEvalSampleAudioRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): {
|
|
39
|
+
queryKey: QueryKey;
|
|
40
|
+
queryFn: (
|
|
41
|
+
context: QueryFunctionContext,
|
|
42
|
+
) => Promise<LlmEvalsGetSampleAudioQueryData>;
|
|
43
|
+
} {
|
|
44
|
+
return {
|
|
45
|
+
queryKey: queryKeyLlmEvalsGetSampleAudio(
|
|
46
|
+
request.runId,
|
|
47
|
+
request.sampleIndex,
|
|
48
|
+
{
|
|
49
|
+
model: request.model,
|
|
50
|
+
taskId: request.taskId,
|
|
51
|
+
xOnBehalfOf: request.xOnBehalfOf,
|
|
52
|
+
},
|
|
53
|
+
),
|
|
54
|
+
queryFn: async function llmEvalsGetSampleAudioQueryFn(
|
|
55
|
+
ctx,
|
|
56
|
+
): Promise<LlmEvalsGetSampleAudioQueryData> {
|
|
57
|
+
const sig = combineSignals(
|
|
58
|
+
ctx.signal,
|
|
59
|
+
options?.signal,
|
|
60
|
+
options?.fetchOptions?.signal,
|
|
61
|
+
);
|
|
62
|
+
const mergedOptions = {
|
|
63
|
+
...options?.fetchOptions,
|
|
64
|
+
...options,
|
|
65
|
+
signal: sig,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
return unwrapAsync(llmEvalsGetSampleAudio(
|
|
69
|
+
client$,
|
|
70
|
+
request,
|
|
71
|
+
mergedOptions,
|
|
72
|
+
));
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function queryKeyLlmEvalsGetSampleAudio(
|
|
78
|
+
runId: string,
|
|
79
|
+
sampleIndex: number,
|
|
80
|
+
parameters: {
|
|
81
|
+
model?: string | undefined;
|
|
82
|
+
taskId?: string | undefined;
|
|
83
|
+
xOnBehalfOf?: string | undefined;
|
|
84
|
+
},
|
|
85
|
+
): QueryKey {
|
|
86
|
+
return [
|
|
87
|
+
"@meetkai/mka1",
|
|
88
|
+
"evals",
|
|
89
|
+
"getSampleAudio",
|
|
90
|
+
runId,
|
|
91
|
+
sampleIndex,
|
|
92
|
+
parameters,
|
|
93
|
+
];
|
|
94
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InvalidateQueryFilters,
|
|
7
|
+
QueryClient,
|
|
8
|
+
useQuery,
|
|
9
|
+
UseQueryResult,
|
|
10
|
+
useSuspenseQuery,
|
|
11
|
+
UseSuspenseQueryResult,
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { useSDKContext } from "./_context.js";
|
|
25
|
+
import {
|
|
26
|
+
QueryHookOptions,
|
|
27
|
+
SuspenseQueryHookOptions,
|
|
28
|
+
TupleToPrefixes,
|
|
29
|
+
} from "./_types.js";
|
|
30
|
+
import {
|
|
31
|
+
buildLlmEvalsGetSampleAudioQuery,
|
|
32
|
+
LlmEvalsGetSampleAudioQueryData,
|
|
33
|
+
prefetchLlmEvalsGetSampleAudio,
|
|
34
|
+
queryKeyLlmEvalsGetSampleAudio,
|
|
35
|
+
} from "./llmEvalsGetSampleAudio.core.js";
|
|
36
|
+
export {
|
|
37
|
+
buildLlmEvalsGetSampleAudioQuery,
|
|
38
|
+
type LlmEvalsGetSampleAudioQueryData,
|
|
39
|
+
prefetchLlmEvalsGetSampleAudio,
|
|
40
|
+
queryKeyLlmEvalsGetSampleAudio,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type LlmEvalsGetSampleAudioQueryError =
|
|
44
|
+
| SDKError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get eval sample audio
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* 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.
|
|
58
|
+
*/
|
|
59
|
+
export function useLlmEvalsGetSampleAudio(
|
|
60
|
+
request: operations.GetEvalSampleAudioRequest,
|
|
61
|
+
options?: QueryHookOptions<
|
|
62
|
+
LlmEvalsGetSampleAudioQueryData,
|
|
63
|
+
LlmEvalsGetSampleAudioQueryError
|
|
64
|
+
>,
|
|
65
|
+
): UseQueryResult<
|
|
66
|
+
LlmEvalsGetSampleAudioQueryData,
|
|
67
|
+
LlmEvalsGetSampleAudioQueryError
|
|
68
|
+
> {
|
|
69
|
+
const client = useSDKContext();
|
|
70
|
+
return useQuery({
|
|
71
|
+
...buildLlmEvalsGetSampleAudioQuery(
|
|
72
|
+
client,
|
|
73
|
+
request,
|
|
74
|
+
options,
|
|
75
|
+
),
|
|
76
|
+
...options,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Get eval sample audio
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* 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.
|
|
85
|
+
*/
|
|
86
|
+
export function useLlmEvalsGetSampleAudioSuspense(
|
|
87
|
+
request: operations.GetEvalSampleAudioRequest,
|
|
88
|
+
options?: SuspenseQueryHookOptions<
|
|
89
|
+
LlmEvalsGetSampleAudioQueryData,
|
|
90
|
+
LlmEvalsGetSampleAudioQueryError
|
|
91
|
+
>,
|
|
92
|
+
): UseSuspenseQueryResult<
|
|
93
|
+
LlmEvalsGetSampleAudioQueryData,
|
|
94
|
+
LlmEvalsGetSampleAudioQueryError
|
|
95
|
+
> {
|
|
96
|
+
const client = useSDKContext();
|
|
97
|
+
return useSuspenseQuery({
|
|
98
|
+
...buildLlmEvalsGetSampleAudioQuery(
|
|
99
|
+
client,
|
|
100
|
+
request,
|
|
101
|
+
options,
|
|
102
|
+
),
|
|
103
|
+
...options,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function setLlmEvalsGetSampleAudioData(
|
|
108
|
+
client: QueryClient,
|
|
109
|
+
queryKeyBase: [
|
|
110
|
+
runId: string,
|
|
111
|
+
sampleIndex: number,
|
|
112
|
+
parameters: {
|
|
113
|
+
model?: string | undefined;
|
|
114
|
+
taskId?: string | undefined;
|
|
115
|
+
xOnBehalfOf?: string | undefined;
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
data: LlmEvalsGetSampleAudioQueryData,
|
|
119
|
+
): LlmEvalsGetSampleAudioQueryData | undefined {
|
|
120
|
+
const key = queryKeyLlmEvalsGetSampleAudio(...queryKeyBase);
|
|
121
|
+
|
|
122
|
+
return client.setQueryData<LlmEvalsGetSampleAudioQueryData>(key, data);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function invalidateLlmEvalsGetSampleAudio(
|
|
126
|
+
client: QueryClient,
|
|
127
|
+
queryKeyBase: TupleToPrefixes<
|
|
128
|
+
[
|
|
129
|
+
runId: string,
|
|
130
|
+
sampleIndex: number,
|
|
131
|
+
parameters: {
|
|
132
|
+
model?: string | undefined;
|
|
133
|
+
taskId?: string | undefined;
|
|
134
|
+
xOnBehalfOf?: string | undefined;
|
|
135
|
+
},
|
|
136
|
+
]
|
|
137
|
+
>,
|
|
138
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
139
|
+
): Promise<void> {
|
|
140
|
+
return client.invalidateQueries({
|
|
141
|
+
...filters,
|
|
142
|
+
queryKey: ["@meetkai/mka1", "evals", "getSampleAudio", ...queryKeyBase],
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function invalidateAllLlmEvalsGetSampleAudio(
|
|
147
|
+
client: QueryClient,
|
|
148
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
149
|
+
): Promise<void> {
|
|
150
|
+
return client.invalidateQueries({
|
|
151
|
+
...filters,
|
|
152
|
+
queryKey: ["@meetkai/mka1", "evals", "getSampleAudio"],
|
|
153
|
+
});
|
|
154
|
+
}
|
|
@@ -48,6 +48,11 @@ export function buildLlmEvalsListSamplesQuery(
|
|
|
48
48
|
taskId: request.taskId,
|
|
49
49
|
model: request.model,
|
|
50
50
|
status: request.status,
|
|
51
|
+
scoreMetric: request.scoreMetric,
|
|
52
|
+
scoreMin: request.scoreMin,
|
|
53
|
+
scoreMax: request.scoreMax,
|
|
54
|
+
includeDatasetRow: request.includeDatasetRow,
|
|
55
|
+
sampleIndex: request.sampleIndex,
|
|
51
56
|
xOnBehalfOf: request.xOnBehalfOf,
|
|
52
57
|
}),
|
|
53
58
|
queryFn: async function llmEvalsListSamplesQueryFn(
|
|
@@ -81,6 +86,11 @@ export function queryKeyLlmEvalsListSamples(
|
|
|
81
86
|
taskId?: string | undefined;
|
|
82
87
|
model?: string | undefined;
|
|
83
88
|
status?: operations.QueryParamStatus | undefined;
|
|
89
|
+
scoreMetric?: string | undefined;
|
|
90
|
+
scoreMin?: number | undefined;
|
|
91
|
+
scoreMax?: number | undefined;
|
|
92
|
+
includeDatasetRow?: boolean | undefined;
|
|
93
|
+
sampleIndex?: string | undefined;
|
|
84
94
|
xOnBehalfOf?: string | undefined;
|
|
85
95
|
},
|
|
86
96
|
): QueryKey {
|
|
@@ -111,6 +111,11 @@ export function setLlmEvalsListSamplesData(
|
|
|
111
111
|
taskId?: string | undefined;
|
|
112
112
|
model?: string | undefined;
|
|
113
113
|
status?: operations.QueryParamStatus | undefined;
|
|
114
|
+
scoreMetric?: string | undefined;
|
|
115
|
+
scoreMin?: number | undefined;
|
|
116
|
+
scoreMax?: number | undefined;
|
|
117
|
+
includeDatasetRow?: boolean | undefined;
|
|
118
|
+
sampleIndex?: string | undefined;
|
|
114
119
|
xOnBehalfOf?: string | undefined;
|
|
115
120
|
},
|
|
116
121
|
],
|
|
@@ -132,6 +137,11 @@ export function invalidateLlmEvalsListSamples(
|
|
|
132
137
|
taskId?: string | undefined;
|
|
133
138
|
model?: string | undefined;
|
|
134
139
|
status?: operations.QueryParamStatus | undefined;
|
|
140
|
+
scoreMetric?: string | undefined;
|
|
141
|
+
scoreMin?: number | undefined;
|
|
142
|
+
scoreMax?: number | undefined;
|
|
143
|
+
includeDatasetRow?: boolean | undefined;
|
|
144
|
+
sampleIndex?: string | undefined;
|
|
135
145
|
xOnBehalfOf?: string | undefined;
|
|
136
146
|
},
|
|
137
147
|
]
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
QueryClient,
|
|
7
|
+
QueryFunctionContext,
|
|
8
|
+
QueryKey,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { llmEvalsListSuiteLeaderboardRuns } from "../funcs/llmEvalsListSuiteLeaderboardRuns.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as operations from "../models/operations/index.js";
|
|
15
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
16
|
+
export type LlmEvalsListSuiteLeaderboardRunsQueryData =
|
|
17
|
+
operations.ListEvalSuiteLeaderboardRunsResponseBody;
|
|
18
|
+
|
|
19
|
+
export function prefetchLlmEvalsListSuiteLeaderboardRuns(
|
|
20
|
+
queryClient: QueryClient,
|
|
21
|
+
client$: SDKCore,
|
|
22
|
+
request: operations.ListEvalSuiteLeaderboardRunsRequest,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): Promise<void> {
|
|
25
|
+
return queryClient.prefetchQuery({
|
|
26
|
+
...buildLlmEvalsListSuiteLeaderboardRunsQuery(
|
|
27
|
+
client$,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function buildLlmEvalsListSuiteLeaderboardRunsQuery(
|
|
35
|
+
client$: SDKCore,
|
|
36
|
+
request: operations.ListEvalSuiteLeaderboardRunsRequest,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): {
|
|
39
|
+
queryKey: QueryKey;
|
|
40
|
+
queryFn: (
|
|
41
|
+
context: QueryFunctionContext,
|
|
42
|
+
) => Promise<LlmEvalsListSuiteLeaderboardRunsQueryData>;
|
|
43
|
+
} {
|
|
44
|
+
return {
|
|
45
|
+
queryKey: queryKeyLlmEvalsListSuiteLeaderboardRuns(request.suiteId, {
|
|
46
|
+
suiteVersion: request.suiteVersion,
|
|
47
|
+
perGroup: request.perGroup,
|
|
48
|
+
model: request.model,
|
|
49
|
+
cursor: request.cursor,
|
|
50
|
+
xOnBehalfOf: request.xOnBehalfOf,
|
|
51
|
+
}),
|
|
52
|
+
queryFn: async function llmEvalsListSuiteLeaderboardRunsQueryFn(
|
|
53
|
+
ctx,
|
|
54
|
+
): Promise<LlmEvalsListSuiteLeaderboardRunsQueryData> {
|
|
55
|
+
const sig = combineSignals(
|
|
56
|
+
ctx.signal,
|
|
57
|
+
options?.signal,
|
|
58
|
+
options?.fetchOptions?.signal,
|
|
59
|
+
);
|
|
60
|
+
const mergedOptions = {
|
|
61
|
+
...options?.fetchOptions,
|
|
62
|
+
...options,
|
|
63
|
+
signal: sig,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return unwrapAsync(llmEvalsListSuiteLeaderboardRuns(
|
|
67
|
+
client$,
|
|
68
|
+
request,
|
|
69
|
+
mergedOptions,
|
|
70
|
+
));
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function queryKeyLlmEvalsListSuiteLeaderboardRuns(
|
|
76
|
+
suiteId: string,
|
|
77
|
+
parameters: {
|
|
78
|
+
suiteVersion?: number | undefined;
|
|
79
|
+
perGroup?: number | undefined;
|
|
80
|
+
model?: string | undefined;
|
|
81
|
+
cursor?: string | undefined;
|
|
82
|
+
xOnBehalfOf?: string | undefined;
|
|
83
|
+
},
|
|
84
|
+
): QueryKey {
|
|
85
|
+
return [
|
|
86
|
+
"@meetkai/mka1",
|
|
87
|
+
"evals",
|
|
88
|
+
"listSuiteLeaderboardRuns",
|
|
89
|
+
suiteId,
|
|
90
|
+
parameters,
|
|
91
|
+
];
|
|
92
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InvalidateQueryFilters,
|
|
7
|
+
QueryClient,
|
|
8
|
+
useQuery,
|
|
9
|
+
UseQueryResult,
|
|
10
|
+
useSuspenseQuery,
|
|
11
|
+
UseSuspenseQueryResult,
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { useSDKContext } from "./_context.js";
|
|
25
|
+
import {
|
|
26
|
+
QueryHookOptions,
|
|
27
|
+
SuspenseQueryHookOptions,
|
|
28
|
+
TupleToPrefixes,
|
|
29
|
+
} from "./_types.js";
|
|
30
|
+
import {
|
|
31
|
+
buildLlmEvalsListSuiteLeaderboardRunsQuery,
|
|
32
|
+
LlmEvalsListSuiteLeaderboardRunsQueryData,
|
|
33
|
+
prefetchLlmEvalsListSuiteLeaderboardRuns,
|
|
34
|
+
queryKeyLlmEvalsListSuiteLeaderboardRuns,
|
|
35
|
+
} from "./llmEvalsListSuiteLeaderboardRuns.core.js";
|
|
36
|
+
export {
|
|
37
|
+
buildLlmEvalsListSuiteLeaderboardRunsQuery,
|
|
38
|
+
type LlmEvalsListSuiteLeaderboardRunsQueryData,
|
|
39
|
+
prefetchLlmEvalsListSuiteLeaderboardRuns,
|
|
40
|
+
queryKeyLlmEvalsListSuiteLeaderboardRuns,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type LlmEvalsListSuiteLeaderboardRunsQueryError =
|
|
44
|
+
| SDKError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* List leaderboard runs for an eval suite
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* 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.
|
|
58
|
+
*/
|
|
59
|
+
export function useLlmEvalsListSuiteLeaderboardRuns(
|
|
60
|
+
request: operations.ListEvalSuiteLeaderboardRunsRequest,
|
|
61
|
+
options?: QueryHookOptions<
|
|
62
|
+
LlmEvalsListSuiteLeaderboardRunsQueryData,
|
|
63
|
+
LlmEvalsListSuiteLeaderboardRunsQueryError
|
|
64
|
+
>,
|
|
65
|
+
): UseQueryResult<
|
|
66
|
+
LlmEvalsListSuiteLeaderboardRunsQueryData,
|
|
67
|
+
LlmEvalsListSuiteLeaderboardRunsQueryError
|
|
68
|
+
> {
|
|
69
|
+
const client = useSDKContext();
|
|
70
|
+
return useQuery({
|
|
71
|
+
...buildLlmEvalsListSuiteLeaderboardRunsQuery(
|
|
72
|
+
client,
|
|
73
|
+
request,
|
|
74
|
+
options,
|
|
75
|
+
),
|
|
76
|
+
...options,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* List leaderboard runs for an eval suite
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* 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.
|
|
85
|
+
*/
|
|
86
|
+
export function useLlmEvalsListSuiteLeaderboardRunsSuspense(
|
|
87
|
+
request: operations.ListEvalSuiteLeaderboardRunsRequest,
|
|
88
|
+
options?: SuspenseQueryHookOptions<
|
|
89
|
+
LlmEvalsListSuiteLeaderboardRunsQueryData,
|
|
90
|
+
LlmEvalsListSuiteLeaderboardRunsQueryError
|
|
91
|
+
>,
|
|
92
|
+
): UseSuspenseQueryResult<
|
|
93
|
+
LlmEvalsListSuiteLeaderboardRunsQueryData,
|
|
94
|
+
LlmEvalsListSuiteLeaderboardRunsQueryError
|
|
95
|
+
> {
|
|
96
|
+
const client = useSDKContext();
|
|
97
|
+
return useSuspenseQuery({
|
|
98
|
+
...buildLlmEvalsListSuiteLeaderboardRunsQuery(
|
|
99
|
+
client,
|
|
100
|
+
request,
|
|
101
|
+
options,
|
|
102
|
+
),
|
|
103
|
+
...options,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function setLlmEvalsListSuiteLeaderboardRunsData(
|
|
108
|
+
client: QueryClient,
|
|
109
|
+
queryKeyBase: [
|
|
110
|
+
suiteId: string,
|
|
111
|
+
parameters: {
|
|
112
|
+
suiteVersion?: number | undefined;
|
|
113
|
+
perGroup?: number | undefined;
|
|
114
|
+
model?: string | undefined;
|
|
115
|
+
cursor?: string | undefined;
|
|
116
|
+
xOnBehalfOf?: string | undefined;
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
data: LlmEvalsListSuiteLeaderboardRunsQueryData,
|
|
120
|
+
): LlmEvalsListSuiteLeaderboardRunsQueryData | undefined {
|
|
121
|
+
const key = queryKeyLlmEvalsListSuiteLeaderboardRuns(...queryKeyBase);
|
|
122
|
+
|
|
123
|
+
return client.setQueryData<LlmEvalsListSuiteLeaderboardRunsQueryData>(
|
|
124
|
+
key,
|
|
125
|
+
data,
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function invalidateLlmEvalsListSuiteLeaderboardRuns(
|
|
130
|
+
client: QueryClient,
|
|
131
|
+
queryKeyBase: TupleToPrefixes<
|
|
132
|
+
[
|
|
133
|
+
suiteId: string,
|
|
134
|
+
parameters: {
|
|
135
|
+
suiteVersion?: number | undefined;
|
|
136
|
+
perGroup?: number | undefined;
|
|
137
|
+
model?: string | undefined;
|
|
138
|
+
cursor?: string | undefined;
|
|
139
|
+
xOnBehalfOf?: string | undefined;
|
|
140
|
+
},
|
|
141
|
+
]
|
|
142
|
+
>,
|
|
143
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
144
|
+
): Promise<void> {
|
|
145
|
+
return client.invalidateQueries({
|
|
146
|
+
...filters,
|
|
147
|
+
queryKey: [
|
|
148
|
+
"@meetkai/mka1",
|
|
149
|
+
"evals",
|
|
150
|
+
"listSuiteLeaderboardRuns",
|
|
151
|
+
...queryKeyBase,
|
|
152
|
+
],
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function invalidateAllLlmEvalsListSuiteLeaderboardRuns(
|
|
157
|
+
client: QueryClient,
|
|
158
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
159
|
+
): Promise<void> {
|
|
160
|
+
return client.invalidateQueries({
|
|
161
|
+
...filters,
|
|
162
|
+
queryKey: ["@meetkai/mka1", "evals", "listSuiteLeaderboardRuns"],
|
|
163
|
+
});
|
|
164
|
+
}
|
package/src/sdk/evals.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { llmEvalsDeleteSchedule } from "../funcs/llmEvalsDeleteSchedule.js";
|
|
|
12
12
|
import { llmEvalsDeleteSuite } from "../funcs/llmEvalsDeleteSuite.js";
|
|
13
13
|
import { llmEvalsGetArtifacts } from "../funcs/llmEvalsGetArtifacts.js";
|
|
14
14
|
import { llmEvalsGetRun } from "../funcs/llmEvalsGetRun.js";
|
|
15
|
+
import { llmEvalsGetSampleAudio } from "../funcs/llmEvalsGetSampleAudio.js";
|
|
15
16
|
import { llmEvalsGetSchedule } from "../funcs/llmEvalsGetSchedule.js";
|
|
16
17
|
import { llmEvalsGetSuite } from "../funcs/llmEvalsGetSuite.js";
|
|
17
18
|
import { llmEvalsGetSuiteVersion } from "../funcs/llmEvalsGetSuiteVersion.js";
|
|
@@ -20,6 +21,7 @@ import { llmEvalsListRuns } from "../funcs/llmEvalsListRuns.js";
|
|
|
20
21
|
import { llmEvalsListSamples } from "../funcs/llmEvalsListSamples.js";
|
|
21
22
|
import { llmEvalsListScheduleRuns } from "../funcs/llmEvalsListScheduleRuns.js";
|
|
22
23
|
import { llmEvalsListSchedules } from "../funcs/llmEvalsListSchedules.js";
|
|
24
|
+
import { llmEvalsListSuiteLeaderboardRuns } from "../funcs/llmEvalsListSuiteLeaderboardRuns.js";
|
|
23
25
|
import { llmEvalsListSuites } from "../funcs/llmEvalsListSuites.js";
|
|
24
26
|
import { llmEvalsListSuiteVersions } from "../funcs/llmEvalsListSuiteVersions.js";
|
|
25
27
|
import { llmEvalsRerunFailedSamples } from "../funcs/llmEvalsRerunFailedSamples.js";
|
|
@@ -151,6 +153,23 @@ export class Evals extends ClientSDK {
|
|
|
151
153
|
));
|
|
152
154
|
}
|
|
153
155
|
|
|
156
|
+
/**
|
|
157
|
+
* List leaderboard runs for an eval suite
|
|
158
|
+
*
|
|
159
|
+
* @remarks
|
|
160
|
+
* 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.
|
|
161
|
+
*/
|
|
162
|
+
async listSuiteLeaderboardRuns(
|
|
163
|
+
request: operations.ListEvalSuiteLeaderboardRunsRequest,
|
|
164
|
+
options?: RequestOptions,
|
|
165
|
+
): Promise<operations.ListEvalSuiteLeaderboardRunsResponseBody> {
|
|
166
|
+
return unwrapAsync(llmEvalsListSuiteLeaderboardRuns(
|
|
167
|
+
this,
|
|
168
|
+
request,
|
|
169
|
+
options,
|
|
170
|
+
));
|
|
171
|
+
}
|
|
172
|
+
|
|
154
173
|
/**
|
|
155
174
|
* Create an eval run
|
|
156
175
|
*
|
|
@@ -287,6 +306,23 @@ export class Evals extends ClientSDK {
|
|
|
287
306
|
));
|
|
288
307
|
}
|
|
289
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Get eval sample audio
|
|
311
|
+
*
|
|
312
|
+
* @remarks
|
|
313
|
+
* 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.
|
|
314
|
+
*/
|
|
315
|
+
async getSampleAudio(
|
|
316
|
+
request: operations.GetEvalSampleAudioRequest,
|
|
317
|
+
options?: RequestOptions,
|
|
318
|
+
): Promise<components.EvalSampleAudioObject> {
|
|
319
|
+
return unwrapAsync(llmEvalsGetSampleAudio(
|
|
320
|
+
this,
|
|
321
|
+
request,
|
|
322
|
+
options,
|
|
323
|
+
));
|
|
324
|
+
}
|
|
325
|
+
|
|
290
326
|
/**
|
|
291
327
|
* Get eval run artifacts
|
|
292
328
|
*
|