@meetkai/mka1 0.51.35 → 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 +229 -226
- package/bin/mcp-server.js +1663 -1230
- package/bin/mcp-server.js.map +12 -8
- 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 +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- 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/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.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 +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.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 +7 -0
- package/dist/commonjs/sdk/evals.d.ts.map +1 -1
- package/dist/commonjs/sdk/evals.js +10 -0
- package/dist/commonjs/sdk/evals.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 +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- 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/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.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 +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.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 +7 -0
- package/dist/esm/sdk/evals.d.ts.map +1 -1
- package/dist/esm/sdk/evals.js +10 -0
- package/dist/esm/sdk/evals.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- 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 +3 -1
- package/src/mcp-server/tools/llmEvalsListSuiteLeaderboardRuns.ts +39 -0
- package/src/models/components/evalleaderboardrungroup.ts +86 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listevalsuiteleaderboardruns.ts +754 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/llmEvalsListSuiteLeaderboardRuns.core.ts +92 -0
- package/src/react-query/llmEvalsListSuiteLeaderboardRuns.ts +164 -0
- package/src/sdk/evals.ts +18 -0
|
@@ -0,0 +1,754 @@
|
|
|
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 {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
12
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
13
|
+
import * as components from "../components/index.js";
|
|
14
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
15
|
+
|
|
16
|
+
export type ListEvalSuiteLeaderboardRunsRequest = {
|
|
17
|
+
suiteId: string;
|
|
18
|
+
suiteVersion?: number | undefined;
|
|
19
|
+
perGroup?: number | undefined;
|
|
20
|
+
model?: string | undefined;
|
|
21
|
+
cursor?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
24
|
+
*/
|
|
25
|
+
xOnBehalfOf?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type ListEvalSuiteLeaderboardRunsStop = string | Array<string>;
|
|
29
|
+
|
|
30
|
+
export const ListEvalSuiteLeaderboardRunsTruncation = {
|
|
31
|
+
Auto: "auto",
|
|
32
|
+
Disabled: "disabled",
|
|
33
|
+
} as const;
|
|
34
|
+
export type ListEvalSuiteLeaderboardRunsTruncation = ClosedEnum<
|
|
35
|
+
typeof ListEvalSuiteLeaderboardRunsTruncation
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
export const ListEvalSuiteLeaderboardRunsServiceTier = {
|
|
39
|
+
Auto: "auto",
|
|
40
|
+
Default: "default",
|
|
41
|
+
Flex: "flex",
|
|
42
|
+
Priority: "priority",
|
|
43
|
+
} as const;
|
|
44
|
+
export type ListEvalSuiteLeaderboardRunsServiceTier = ClosedEnum<
|
|
45
|
+
typeof ListEvalSuiteLeaderboardRunsServiceTier
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
export type ListEvalSuiteLeaderboardRunsPrefillThink = boolean | string;
|
|
49
|
+
|
|
50
|
+
export type ListEvalSuiteLeaderboardRunsGeneration = {
|
|
51
|
+
instructions?: string | undefined;
|
|
52
|
+
temperature?: number | undefined;
|
|
53
|
+
topP?: number | undefined;
|
|
54
|
+
maxOutputTokens?: number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* lm-eval alias for max_output_tokens.
|
|
57
|
+
*/
|
|
58
|
+
maxGenToks?: number | undefined;
|
|
59
|
+
stop?: string | Array<string> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* lm-eval generate_until stop sequences.
|
|
62
|
+
*/
|
|
63
|
+
until?: Array<string> | undefined;
|
|
64
|
+
maxToolCalls?: number | undefined;
|
|
65
|
+
reasoning?: any | undefined;
|
|
66
|
+
text?: any | undefined;
|
|
67
|
+
tools?: Array<any | null> | undefined;
|
|
68
|
+
toolChoice?: any | undefined;
|
|
69
|
+
parallelToolCalls?: boolean | undefined;
|
|
70
|
+
truncation?: ListEvalSuiteLeaderboardRunsTruncation | undefined;
|
|
71
|
+
serviceTier?: ListEvalSuiteLeaderboardRunsServiceTier | undefined;
|
|
72
|
+
presencePenalty?: number | undefined;
|
|
73
|
+
frequencyPenalty?: number | undefined;
|
|
74
|
+
topK?: number | undefined;
|
|
75
|
+
minP?: number | undefined;
|
|
76
|
+
repetitionPenalty?: number | undefined;
|
|
77
|
+
doSample?: boolean | undefined;
|
|
78
|
+
extraBody?: { [k: string]: any } | undefined;
|
|
79
|
+
chatTemplateKwargs?: { [k: string]: any } | undefined;
|
|
80
|
+
prefillThink?: boolean | string | undefined;
|
|
81
|
+
useCache?: boolean | undefined;
|
|
82
|
+
timeoutSeconds?: number | undefined;
|
|
83
|
+
maxRetries?: number | undefined;
|
|
84
|
+
maxEmptyRetries?: number | undefined;
|
|
85
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type ListEvalSuiteLeaderboardRunsRequestCounts = {
|
|
89
|
+
total: number;
|
|
90
|
+
completed: number;
|
|
91
|
+
failed: number;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type ListEvalSuiteLeaderboardRunsData = {
|
|
95
|
+
id: string;
|
|
96
|
+
object: "eval.run";
|
|
97
|
+
suiteId: string;
|
|
98
|
+
suiteVersion: number;
|
|
99
|
+
suiteVersionId: string;
|
|
100
|
+
status: components.EvalRunStatus;
|
|
101
|
+
models: Array<string>;
|
|
102
|
+
taskIds: Array<string> | null;
|
|
103
|
+
judgeModel: string | null;
|
|
104
|
+
embeddingModel: string | null;
|
|
105
|
+
generation: ListEvalSuiteLeaderboardRunsGeneration;
|
|
106
|
+
requestCounts: ListEvalSuiteLeaderboardRunsRequestCounts;
|
|
107
|
+
metrics: { [k: string]: any } | null;
|
|
108
|
+
error: { [k: string]: any } | null;
|
|
109
|
+
artifactFileIds: Array<string>;
|
|
110
|
+
metadata: { [k: string]: string };
|
|
111
|
+
createdAt: number;
|
|
112
|
+
startedAt: number | null;
|
|
113
|
+
completedAt: number | null;
|
|
114
|
+
cancelledAt: number | null;
|
|
115
|
+
failedAt: number | null;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* OK
|
|
120
|
+
*/
|
|
121
|
+
export type ListEvalSuiteLeaderboardRunsResponseBody = {
|
|
122
|
+
object: "eval.leaderboard_runs";
|
|
123
|
+
/**
|
|
124
|
+
* The deduplicated runs behind `groups`, newest first.
|
|
125
|
+
*/
|
|
126
|
+
data: Array<ListEvalSuiteLeaderboardRunsData>;
|
|
127
|
+
/**
|
|
128
|
+
* The server's group assignments — build boards from these, not from run.models/run.task_ids. Ordered by model, then task id with the covers-everything group first within each model, then rank; that ordering is contract.
|
|
129
|
+
*/
|
|
130
|
+
groups: Array<components.EvalLeaderboardRunGroup>;
|
|
131
|
+
/**
|
|
132
|
+
* True when a server ceiling trimmed the aggregate. Whole runs are kept in (rank, model, task) order — never dropped for being old; resume with `cursor: next_cursor`.
|
|
133
|
+
*/
|
|
134
|
+
truncated: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Set when truncated: pass as `cursor` on the next request and union the responses until truncated is false to assemble the complete aggregate. Null when this response is complete.
|
|
137
|
+
*/
|
|
138
|
+
nextCursor: string | null;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/** @internal */
|
|
142
|
+
export const ListEvalSuiteLeaderboardRunsRequest$inboundSchema: z.ZodType<
|
|
143
|
+
ListEvalSuiteLeaderboardRunsRequest,
|
|
144
|
+
z.ZodTypeDef,
|
|
145
|
+
unknown
|
|
146
|
+
> = z.object({
|
|
147
|
+
suite_id: z.string(),
|
|
148
|
+
suite_version: z.number().int().optional(),
|
|
149
|
+
per_group: z.number().int().default(5),
|
|
150
|
+
model: z.string().optional(),
|
|
151
|
+
cursor: z.string().optional(),
|
|
152
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
153
|
+
}).transform((v) => {
|
|
154
|
+
return remap$(v, {
|
|
155
|
+
"suite_id": "suiteId",
|
|
156
|
+
"suite_version": "suiteVersion",
|
|
157
|
+
"per_group": "perGroup",
|
|
158
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
/** @internal */
|
|
162
|
+
export type ListEvalSuiteLeaderboardRunsRequest$Outbound = {
|
|
163
|
+
suite_id: string;
|
|
164
|
+
suite_version?: number | undefined;
|
|
165
|
+
per_group: number;
|
|
166
|
+
model?: string | undefined;
|
|
167
|
+
cursor?: string | undefined;
|
|
168
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const ListEvalSuiteLeaderboardRunsRequest$outboundSchema: z.ZodType<
|
|
173
|
+
ListEvalSuiteLeaderboardRunsRequest$Outbound,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
ListEvalSuiteLeaderboardRunsRequest
|
|
176
|
+
> = z.object({
|
|
177
|
+
suiteId: z.string(),
|
|
178
|
+
suiteVersion: z.number().int().optional(),
|
|
179
|
+
perGroup: z.number().int().default(5),
|
|
180
|
+
model: z.string().optional(),
|
|
181
|
+
cursor: z.string().optional(),
|
|
182
|
+
xOnBehalfOf: z.string().optional(),
|
|
183
|
+
}).transform((v) => {
|
|
184
|
+
return remap$(v, {
|
|
185
|
+
suiteId: "suite_id",
|
|
186
|
+
suiteVersion: "suite_version",
|
|
187
|
+
perGroup: "per_group",
|
|
188
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
export function listEvalSuiteLeaderboardRunsRequestToJSON(
|
|
193
|
+
listEvalSuiteLeaderboardRunsRequest: ListEvalSuiteLeaderboardRunsRequest,
|
|
194
|
+
): string {
|
|
195
|
+
return JSON.stringify(
|
|
196
|
+
ListEvalSuiteLeaderboardRunsRequest$outboundSchema.parse(
|
|
197
|
+
listEvalSuiteLeaderboardRunsRequest,
|
|
198
|
+
),
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
export function listEvalSuiteLeaderboardRunsRequestFromJSON(
|
|
202
|
+
jsonString: string,
|
|
203
|
+
): SafeParseResult<ListEvalSuiteLeaderboardRunsRequest, SDKValidationError> {
|
|
204
|
+
return safeParse(
|
|
205
|
+
jsonString,
|
|
206
|
+
(x) =>
|
|
207
|
+
ListEvalSuiteLeaderboardRunsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
208
|
+
`Failed to parse 'ListEvalSuiteLeaderboardRunsRequest' from JSON`,
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export const ListEvalSuiteLeaderboardRunsStop$inboundSchema: z.ZodType<
|
|
214
|
+
ListEvalSuiteLeaderboardRunsStop,
|
|
215
|
+
z.ZodTypeDef,
|
|
216
|
+
unknown
|
|
217
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
218
|
+
/** @internal */
|
|
219
|
+
export type ListEvalSuiteLeaderboardRunsStop$Outbound = string | Array<string>;
|
|
220
|
+
|
|
221
|
+
/** @internal */
|
|
222
|
+
export const ListEvalSuiteLeaderboardRunsStop$outboundSchema: z.ZodType<
|
|
223
|
+
ListEvalSuiteLeaderboardRunsStop$Outbound,
|
|
224
|
+
z.ZodTypeDef,
|
|
225
|
+
ListEvalSuiteLeaderboardRunsStop
|
|
226
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
227
|
+
|
|
228
|
+
export function listEvalSuiteLeaderboardRunsStopToJSON(
|
|
229
|
+
listEvalSuiteLeaderboardRunsStop: ListEvalSuiteLeaderboardRunsStop,
|
|
230
|
+
): string {
|
|
231
|
+
return JSON.stringify(
|
|
232
|
+
ListEvalSuiteLeaderboardRunsStop$outboundSchema.parse(
|
|
233
|
+
listEvalSuiteLeaderboardRunsStop,
|
|
234
|
+
),
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
export function listEvalSuiteLeaderboardRunsStopFromJSON(
|
|
238
|
+
jsonString: string,
|
|
239
|
+
): SafeParseResult<ListEvalSuiteLeaderboardRunsStop, SDKValidationError> {
|
|
240
|
+
return safeParse(
|
|
241
|
+
jsonString,
|
|
242
|
+
(x) => ListEvalSuiteLeaderboardRunsStop$inboundSchema.parse(JSON.parse(x)),
|
|
243
|
+
`Failed to parse 'ListEvalSuiteLeaderboardRunsStop' from JSON`,
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const ListEvalSuiteLeaderboardRunsTruncation$inboundSchema:
|
|
249
|
+
z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsTruncation> = z.nativeEnum(
|
|
250
|
+
ListEvalSuiteLeaderboardRunsTruncation,
|
|
251
|
+
);
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const ListEvalSuiteLeaderboardRunsTruncation$outboundSchema:
|
|
254
|
+
z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsTruncation> =
|
|
255
|
+
ListEvalSuiteLeaderboardRunsTruncation$inboundSchema;
|
|
256
|
+
|
|
257
|
+
/** @internal */
|
|
258
|
+
export const ListEvalSuiteLeaderboardRunsServiceTier$inboundSchema:
|
|
259
|
+
z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsServiceTier> = z
|
|
260
|
+
.nativeEnum(ListEvalSuiteLeaderboardRunsServiceTier);
|
|
261
|
+
/** @internal */
|
|
262
|
+
export const ListEvalSuiteLeaderboardRunsServiceTier$outboundSchema:
|
|
263
|
+
z.ZodNativeEnum<typeof ListEvalSuiteLeaderboardRunsServiceTier> =
|
|
264
|
+
ListEvalSuiteLeaderboardRunsServiceTier$inboundSchema;
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const ListEvalSuiteLeaderboardRunsPrefillThink$inboundSchema: z.ZodType<
|
|
268
|
+
ListEvalSuiteLeaderboardRunsPrefillThink,
|
|
269
|
+
z.ZodTypeDef,
|
|
270
|
+
unknown
|
|
271
|
+
> = z.union([z.boolean(), z.string()]);
|
|
272
|
+
/** @internal */
|
|
273
|
+
export type ListEvalSuiteLeaderboardRunsPrefillThink$Outbound =
|
|
274
|
+
| boolean
|
|
275
|
+
| string;
|
|
276
|
+
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const ListEvalSuiteLeaderboardRunsPrefillThink$outboundSchema: z.ZodType<
|
|
279
|
+
ListEvalSuiteLeaderboardRunsPrefillThink$Outbound,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
ListEvalSuiteLeaderboardRunsPrefillThink
|
|
282
|
+
> = z.union([z.boolean(), z.string()]);
|
|
283
|
+
|
|
284
|
+
export function listEvalSuiteLeaderboardRunsPrefillThinkToJSON(
|
|
285
|
+
listEvalSuiteLeaderboardRunsPrefillThink:
|
|
286
|
+
ListEvalSuiteLeaderboardRunsPrefillThink,
|
|
287
|
+
): string {
|
|
288
|
+
return JSON.stringify(
|
|
289
|
+
ListEvalSuiteLeaderboardRunsPrefillThink$outboundSchema.parse(
|
|
290
|
+
listEvalSuiteLeaderboardRunsPrefillThink,
|
|
291
|
+
),
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
export function listEvalSuiteLeaderboardRunsPrefillThinkFromJSON(
|
|
295
|
+
jsonString: string,
|
|
296
|
+
): SafeParseResult<
|
|
297
|
+
ListEvalSuiteLeaderboardRunsPrefillThink,
|
|
298
|
+
SDKValidationError
|
|
299
|
+
> {
|
|
300
|
+
return safeParse(
|
|
301
|
+
jsonString,
|
|
302
|
+
(x) =>
|
|
303
|
+
ListEvalSuiteLeaderboardRunsPrefillThink$inboundSchema.parse(
|
|
304
|
+
JSON.parse(x),
|
|
305
|
+
),
|
|
306
|
+
`Failed to parse 'ListEvalSuiteLeaderboardRunsPrefillThink' from JSON`,
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/** @internal */
|
|
311
|
+
export const ListEvalSuiteLeaderboardRunsGeneration$inboundSchema: z.ZodType<
|
|
312
|
+
ListEvalSuiteLeaderboardRunsGeneration,
|
|
313
|
+
z.ZodTypeDef,
|
|
314
|
+
unknown
|
|
315
|
+
> = collectExtraKeys$(
|
|
316
|
+
z.object({
|
|
317
|
+
instructions: z.string().optional(),
|
|
318
|
+
temperature: z.number().optional(),
|
|
319
|
+
top_p: z.number().optional(),
|
|
320
|
+
max_output_tokens: z.number().int().optional(),
|
|
321
|
+
max_gen_toks: z.number().int().optional(),
|
|
322
|
+
stop: z.union([z.string(), z.array(z.string())]).optional(),
|
|
323
|
+
until: z.array(z.string()).optional(),
|
|
324
|
+
max_tool_calls: z.number().int().optional(),
|
|
325
|
+
reasoning: z.any().optional(),
|
|
326
|
+
text: z.any().optional(),
|
|
327
|
+
tools: z.array(z.nullable(z.any())).optional(),
|
|
328
|
+
tool_choice: z.any().optional(),
|
|
329
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
330
|
+
truncation: ListEvalSuiteLeaderboardRunsTruncation$inboundSchema.optional(),
|
|
331
|
+
service_tier: ListEvalSuiteLeaderboardRunsServiceTier$inboundSchema
|
|
332
|
+
.optional(),
|
|
333
|
+
presence_penalty: z.number().optional(),
|
|
334
|
+
frequency_penalty: z.number().optional(),
|
|
335
|
+
top_k: z.number().int().optional(),
|
|
336
|
+
min_p: z.number().optional(),
|
|
337
|
+
repetition_penalty: z.number().optional(),
|
|
338
|
+
do_sample: z.boolean().optional(),
|
|
339
|
+
extra_body: z.record(z.any()).optional(),
|
|
340
|
+
chat_template_kwargs: z.record(z.any()).optional(),
|
|
341
|
+
prefill_think: z.union([z.boolean(), z.string()]).optional(),
|
|
342
|
+
use_cache: z.boolean().optional(),
|
|
343
|
+
timeout_seconds: z.number().int().optional(),
|
|
344
|
+
max_retries: z.number().int().optional(),
|
|
345
|
+
max_empty_retries: z.number().int().optional(),
|
|
346
|
+
}).catchall(z.any()),
|
|
347
|
+
"additionalProperties",
|
|
348
|
+
true,
|
|
349
|
+
).transform((v) => {
|
|
350
|
+
return remap$(v, {
|
|
351
|
+
"top_p": "topP",
|
|
352
|
+
"max_output_tokens": "maxOutputTokens",
|
|
353
|
+
"max_gen_toks": "maxGenToks",
|
|
354
|
+
"max_tool_calls": "maxToolCalls",
|
|
355
|
+
"tool_choice": "toolChoice",
|
|
356
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
357
|
+
"service_tier": "serviceTier",
|
|
358
|
+
"presence_penalty": "presencePenalty",
|
|
359
|
+
"frequency_penalty": "frequencyPenalty",
|
|
360
|
+
"top_k": "topK",
|
|
361
|
+
"min_p": "minP",
|
|
362
|
+
"repetition_penalty": "repetitionPenalty",
|
|
363
|
+
"do_sample": "doSample",
|
|
364
|
+
"extra_body": "extraBody",
|
|
365
|
+
"chat_template_kwargs": "chatTemplateKwargs",
|
|
366
|
+
"prefill_think": "prefillThink",
|
|
367
|
+
"use_cache": "useCache",
|
|
368
|
+
"timeout_seconds": "timeoutSeconds",
|
|
369
|
+
"max_retries": "maxRetries",
|
|
370
|
+
"max_empty_retries": "maxEmptyRetries",
|
|
371
|
+
});
|
|
372
|
+
});
|
|
373
|
+
/** @internal */
|
|
374
|
+
export type ListEvalSuiteLeaderboardRunsGeneration$Outbound = {
|
|
375
|
+
instructions?: string | undefined;
|
|
376
|
+
temperature?: number | undefined;
|
|
377
|
+
top_p?: number | undefined;
|
|
378
|
+
max_output_tokens?: number | undefined;
|
|
379
|
+
max_gen_toks?: number | undefined;
|
|
380
|
+
stop?: string | Array<string> | undefined;
|
|
381
|
+
until?: Array<string> | undefined;
|
|
382
|
+
max_tool_calls?: number | undefined;
|
|
383
|
+
reasoning?: any | undefined;
|
|
384
|
+
text?: any | undefined;
|
|
385
|
+
tools?: Array<any | null> | undefined;
|
|
386
|
+
tool_choice?: any | undefined;
|
|
387
|
+
parallel_tool_calls?: boolean | undefined;
|
|
388
|
+
truncation?: string | undefined;
|
|
389
|
+
service_tier?: string | undefined;
|
|
390
|
+
presence_penalty?: number | undefined;
|
|
391
|
+
frequency_penalty?: number | undefined;
|
|
392
|
+
top_k?: number | undefined;
|
|
393
|
+
min_p?: number | undefined;
|
|
394
|
+
repetition_penalty?: number | undefined;
|
|
395
|
+
do_sample?: boolean | undefined;
|
|
396
|
+
extra_body?: { [k: string]: any } | undefined;
|
|
397
|
+
chat_template_kwargs?: { [k: string]: any } | undefined;
|
|
398
|
+
prefill_think?: boolean | string | undefined;
|
|
399
|
+
use_cache?: boolean | undefined;
|
|
400
|
+
timeout_seconds?: number | undefined;
|
|
401
|
+
max_retries?: number | undefined;
|
|
402
|
+
max_empty_retries?: number | undefined;
|
|
403
|
+
[additionalProperties: string]: unknown;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
/** @internal */
|
|
407
|
+
export const ListEvalSuiteLeaderboardRunsGeneration$outboundSchema: z.ZodType<
|
|
408
|
+
ListEvalSuiteLeaderboardRunsGeneration$Outbound,
|
|
409
|
+
z.ZodTypeDef,
|
|
410
|
+
ListEvalSuiteLeaderboardRunsGeneration
|
|
411
|
+
> = z.object({
|
|
412
|
+
instructions: z.string().optional(),
|
|
413
|
+
temperature: z.number().optional(),
|
|
414
|
+
topP: z.number().optional(),
|
|
415
|
+
maxOutputTokens: z.number().int().optional(),
|
|
416
|
+
maxGenToks: z.number().int().optional(),
|
|
417
|
+
stop: z.union([z.string(), z.array(z.string())]).optional(),
|
|
418
|
+
until: z.array(z.string()).optional(),
|
|
419
|
+
maxToolCalls: z.number().int().optional(),
|
|
420
|
+
reasoning: z.any().optional(),
|
|
421
|
+
text: z.any().optional(),
|
|
422
|
+
tools: z.array(z.nullable(z.any())).optional(),
|
|
423
|
+
toolChoice: z.any().optional(),
|
|
424
|
+
parallelToolCalls: z.boolean().optional(),
|
|
425
|
+
truncation: ListEvalSuiteLeaderboardRunsTruncation$outboundSchema.optional(),
|
|
426
|
+
serviceTier: ListEvalSuiteLeaderboardRunsServiceTier$outboundSchema
|
|
427
|
+
.optional(),
|
|
428
|
+
presencePenalty: z.number().optional(),
|
|
429
|
+
frequencyPenalty: z.number().optional(),
|
|
430
|
+
topK: z.number().int().optional(),
|
|
431
|
+
minP: z.number().optional(),
|
|
432
|
+
repetitionPenalty: z.number().optional(),
|
|
433
|
+
doSample: z.boolean().optional(),
|
|
434
|
+
extraBody: z.record(z.any()).optional(),
|
|
435
|
+
chatTemplateKwargs: z.record(z.any()).optional(),
|
|
436
|
+
prefillThink: z.union([z.boolean(), z.string()]).optional(),
|
|
437
|
+
useCache: z.boolean().optional(),
|
|
438
|
+
timeoutSeconds: z.number().int().optional(),
|
|
439
|
+
maxRetries: z.number().int().optional(),
|
|
440
|
+
maxEmptyRetries: z.number().int().optional(),
|
|
441
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
442
|
+
}).transform((v) => {
|
|
443
|
+
return {
|
|
444
|
+
...v.additionalProperties,
|
|
445
|
+
...remap$(v, {
|
|
446
|
+
topP: "top_p",
|
|
447
|
+
maxOutputTokens: "max_output_tokens",
|
|
448
|
+
maxGenToks: "max_gen_toks",
|
|
449
|
+
maxToolCalls: "max_tool_calls",
|
|
450
|
+
toolChoice: "tool_choice",
|
|
451
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
452
|
+
serviceTier: "service_tier",
|
|
453
|
+
presencePenalty: "presence_penalty",
|
|
454
|
+
frequencyPenalty: "frequency_penalty",
|
|
455
|
+
topK: "top_k",
|
|
456
|
+
minP: "min_p",
|
|
457
|
+
repetitionPenalty: "repetition_penalty",
|
|
458
|
+
doSample: "do_sample",
|
|
459
|
+
extraBody: "extra_body",
|
|
460
|
+
chatTemplateKwargs: "chat_template_kwargs",
|
|
461
|
+
prefillThink: "prefill_think",
|
|
462
|
+
useCache: "use_cache",
|
|
463
|
+
timeoutSeconds: "timeout_seconds",
|
|
464
|
+
maxRetries: "max_retries",
|
|
465
|
+
maxEmptyRetries: "max_empty_retries",
|
|
466
|
+
additionalProperties: null,
|
|
467
|
+
}),
|
|
468
|
+
};
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
export function listEvalSuiteLeaderboardRunsGenerationToJSON(
|
|
472
|
+
listEvalSuiteLeaderboardRunsGeneration:
|
|
473
|
+
ListEvalSuiteLeaderboardRunsGeneration,
|
|
474
|
+
): string {
|
|
475
|
+
return JSON.stringify(
|
|
476
|
+
ListEvalSuiteLeaderboardRunsGeneration$outboundSchema.parse(
|
|
477
|
+
listEvalSuiteLeaderboardRunsGeneration,
|
|
478
|
+
),
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
export function listEvalSuiteLeaderboardRunsGenerationFromJSON(
|
|
482
|
+
jsonString: string,
|
|
483
|
+
): SafeParseResult<ListEvalSuiteLeaderboardRunsGeneration, SDKValidationError> {
|
|
484
|
+
return safeParse(
|
|
485
|
+
jsonString,
|
|
486
|
+
(x) =>
|
|
487
|
+
ListEvalSuiteLeaderboardRunsGeneration$inboundSchema.parse(JSON.parse(x)),
|
|
488
|
+
`Failed to parse 'ListEvalSuiteLeaderboardRunsGeneration' from JSON`,
|
|
489
|
+
);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/** @internal */
|
|
493
|
+
export const ListEvalSuiteLeaderboardRunsRequestCounts$inboundSchema: z.ZodType<
|
|
494
|
+
ListEvalSuiteLeaderboardRunsRequestCounts,
|
|
495
|
+
z.ZodTypeDef,
|
|
496
|
+
unknown
|
|
497
|
+
> = z.object({
|
|
498
|
+
total: z.number().int(),
|
|
499
|
+
completed: z.number().int(),
|
|
500
|
+
failed: z.number().int(),
|
|
501
|
+
});
|
|
502
|
+
/** @internal */
|
|
503
|
+
export type ListEvalSuiteLeaderboardRunsRequestCounts$Outbound = {
|
|
504
|
+
total: number;
|
|
505
|
+
completed: number;
|
|
506
|
+
failed: number;
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
/** @internal */
|
|
510
|
+
export const ListEvalSuiteLeaderboardRunsRequestCounts$outboundSchema:
|
|
511
|
+
z.ZodType<
|
|
512
|
+
ListEvalSuiteLeaderboardRunsRequestCounts$Outbound,
|
|
513
|
+
z.ZodTypeDef,
|
|
514
|
+
ListEvalSuiteLeaderboardRunsRequestCounts
|
|
515
|
+
> = z.object({
|
|
516
|
+
total: z.number().int(),
|
|
517
|
+
completed: z.number().int(),
|
|
518
|
+
failed: z.number().int(),
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
export function listEvalSuiteLeaderboardRunsRequestCountsToJSON(
|
|
522
|
+
listEvalSuiteLeaderboardRunsRequestCounts:
|
|
523
|
+
ListEvalSuiteLeaderboardRunsRequestCounts,
|
|
524
|
+
): string {
|
|
525
|
+
return JSON.stringify(
|
|
526
|
+
ListEvalSuiteLeaderboardRunsRequestCounts$outboundSchema.parse(
|
|
527
|
+
listEvalSuiteLeaderboardRunsRequestCounts,
|
|
528
|
+
),
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
export function listEvalSuiteLeaderboardRunsRequestCountsFromJSON(
|
|
532
|
+
jsonString: string,
|
|
533
|
+
): SafeParseResult<
|
|
534
|
+
ListEvalSuiteLeaderboardRunsRequestCounts,
|
|
535
|
+
SDKValidationError
|
|
536
|
+
> {
|
|
537
|
+
return safeParse(
|
|
538
|
+
jsonString,
|
|
539
|
+
(x) =>
|
|
540
|
+
ListEvalSuiteLeaderboardRunsRequestCounts$inboundSchema.parse(
|
|
541
|
+
JSON.parse(x),
|
|
542
|
+
),
|
|
543
|
+
`Failed to parse 'ListEvalSuiteLeaderboardRunsRequestCounts' from JSON`,
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/** @internal */
|
|
548
|
+
export const ListEvalSuiteLeaderboardRunsData$inboundSchema: z.ZodType<
|
|
549
|
+
ListEvalSuiteLeaderboardRunsData,
|
|
550
|
+
z.ZodTypeDef,
|
|
551
|
+
unknown
|
|
552
|
+
> = z.object({
|
|
553
|
+
id: z.string(),
|
|
554
|
+
object: z.literal("eval.run"),
|
|
555
|
+
suite_id: z.string(),
|
|
556
|
+
suite_version: z.number().int(),
|
|
557
|
+
suite_version_id: z.string(),
|
|
558
|
+
status: components.EvalRunStatus$inboundSchema,
|
|
559
|
+
models: z.array(z.string()),
|
|
560
|
+
task_ids: z.nullable(z.array(z.string())),
|
|
561
|
+
judge_model: z.nullable(z.string()),
|
|
562
|
+
embedding_model: z.nullable(z.string()),
|
|
563
|
+
generation: z.lazy(() =>
|
|
564
|
+
ListEvalSuiteLeaderboardRunsGeneration$inboundSchema
|
|
565
|
+
),
|
|
566
|
+
request_counts: z.lazy(() =>
|
|
567
|
+
ListEvalSuiteLeaderboardRunsRequestCounts$inboundSchema
|
|
568
|
+
),
|
|
569
|
+
metrics: z.nullable(z.record(z.any())),
|
|
570
|
+
error: z.nullable(z.record(z.any())),
|
|
571
|
+
artifact_file_ids: z.array(z.string()),
|
|
572
|
+
metadata: z.record(z.string()),
|
|
573
|
+
created_at: z.number().int(),
|
|
574
|
+
started_at: z.nullable(z.number().int()),
|
|
575
|
+
completed_at: z.nullable(z.number().int()),
|
|
576
|
+
cancelled_at: z.nullable(z.number().int()),
|
|
577
|
+
failed_at: z.nullable(z.number().int()),
|
|
578
|
+
}).transform((v) => {
|
|
579
|
+
return remap$(v, {
|
|
580
|
+
"suite_id": "suiteId",
|
|
581
|
+
"suite_version": "suiteVersion",
|
|
582
|
+
"suite_version_id": "suiteVersionId",
|
|
583
|
+
"task_ids": "taskIds",
|
|
584
|
+
"judge_model": "judgeModel",
|
|
585
|
+
"embedding_model": "embeddingModel",
|
|
586
|
+
"request_counts": "requestCounts",
|
|
587
|
+
"artifact_file_ids": "artifactFileIds",
|
|
588
|
+
"created_at": "createdAt",
|
|
589
|
+
"started_at": "startedAt",
|
|
590
|
+
"completed_at": "completedAt",
|
|
591
|
+
"cancelled_at": "cancelledAt",
|
|
592
|
+
"failed_at": "failedAt",
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
/** @internal */
|
|
596
|
+
export type ListEvalSuiteLeaderboardRunsData$Outbound = {
|
|
597
|
+
id: string;
|
|
598
|
+
object: "eval.run";
|
|
599
|
+
suite_id: string;
|
|
600
|
+
suite_version: number;
|
|
601
|
+
suite_version_id: string;
|
|
602
|
+
status: string;
|
|
603
|
+
models: Array<string>;
|
|
604
|
+
task_ids: Array<string> | null;
|
|
605
|
+
judge_model: string | null;
|
|
606
|
+
embedding_model: string | null;
|
|
607
|
+
generation: ListEvalSuiteLeaderboardRunsGeneration$Outbound;
|
|
608
|
+
request_counts: ListEvalSuiteLeaderboardRunsRequestCounts$Outbound;
|
|
609
|
+
metrics: { [k: string]: any } | null;
|
|
610
|
+
error: { [k: string]: any } | null;
|
|
611
|
+
artifact_file_ids: Array<string>;
|
|
612
|
+
metadata: { [k: string]: string };
|
|
613
|
+
created_at: number;
|
|
614
|
+
started_at: number | null;
|
|
615
|
+
completed_at: number | null;
|
|
616
|
+
cancelled_at: number | null;
|
|
617
|
+
failed_at: number | null;
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
/** @internal */
|
|
621
|
+
export const ListEvalSuiteLeaderboardRunsData$outboundSchema: z.ZodType<
|
|
622
|
+
ListEvalSuiteLeaderboardRunsData$Outbound,
|
|
623
|
+
z.ZodTypeDef,
|
|
624
|
+
ListEvalSuiteLeaderboardRunsData
|
|
625
|
+
> = z.object({
|
|
626
|
+
id: z.string(),
|
|
627
|
+
object: z.literal("eval.run"),
|
|
628
|
+
suiteId: z.string(),
|
|
629
|
+
suiteVersion: z.number().int(),
|
|
630
|
+
suiteVersionId: z.string(),
|
|
631
|
+
status: components.EvalRunStatus$outboundSchema,
|
|
632
|
+
models: z.array(z.string()),
|
|
633
|
+
taskIds: z.nullable(z.array(z.string())),
|
|
634
|
+
judgeModel: z.nullable(z.string()),
|
|
635
|
+
embeddingModel: z.nullable(z.string()),
|
|
636
|
+
generation: z.lazy(() =>
|
|
637
|
+
ListEvalSuiteLeaderboardRunsGeneration$outboundSchema
|
|
638
|
+
),
|
|
639
|
+
requestCounts: z.lazy(() =>
|
|
640
|
+
ListEvalSuiteLeaderboardRunsRequestCounts$outboundSchema
|
|
641
|
+
),
|
|
642
|
+
metrics: z.nullable(z.record(z.any())),
|
|
643
|
+
error: z.nullable(z.record(z.any())),
|
|
644
|
+
artifactFileIds: z.array(z.string()),
|
|
645
|
+
metadata: z.record(z.string()),
|
|
646
|
+
createdAt: z.number().int(),
|
|
647
|
+
startedAt: z.nullable(z.number().int()),
|
|
648
|
+
completedAt: z.nullable(z.number().int()),
|
|
649
|
+
cancelledAt: z.nullable(z.number().int()),
|
|
650
|
+
failedAt: z.nullable(z.number().int()),
|
|
651
|
+
}).transform((v) => {
|
|
652
|
+
return remap$(v, {
|
|
653
|
+
suiteId: "suite_id",
|
|
654
|
+
suiteVersion: "suite_version",
|
|
655
|
+
suiteVersionId: "suite_version_id",
|
|
656
|
+
taskIds: "task_ids",
|
|
657
|
+
judgeModel: "judge_model",
|
|
658
|
+
embeddingModel: "embedding_model",
|
|
659
|
+
requestCounts: "request_counts",
|
|
660
|
+
artifactFileIds: "artifact_file_ids",
|
|
661
|
+
createdAt: "created_at",
|
|
662
|
+
startedAt: "started_at",
|
|
663
|
+
completedAt: "completed_at",
|
|
664
|
+
cancelledAt: "cancelled_at",
|
|
665
|
+
failedAt: "failed_at",
|
|
666
|
+
});
|
|
667
|
+
});
|
|
668
|
+
|
|
669
|
+
export function listEvalSuiteLeaderboardRunsDataToJSON(
|
|
670
|
+
listEvalSuiteLeaderboardRunsData: ListEvalSuiteLeaderboardRunsData,
|
|
671
|
+
): string {
|
|
672
|
+
return JSON.stringify(
|
|
673
|
+
ListEvalSuiteLeaderboardRunsData$outboundSchema.parse(
|
|
674
|
+
listEvalSuiteLeaderboardRunsData,
|
|
675
|
+
),
|
|
676
|
+
);
|
|
677
|
+
}
|
|
678
|
+
export function listEvalSuiteLeaderboardRunsDataFromJSON(
|
|
679
|
+
jsonString: string,
|
|
680
|
+
): SafeParseResult<ListEvalSuiteLeaderboardRunsData, SDKValidationError> {
|
|
681
|
+
return safeParse(
|
|
682
|
+
jsonString,
|
|
683
|
+
(x) => ListEvalSuiteLeaderboardRunsData$inboundSchema.parse(JSON.parse(x)),
|
|
684
|
+
`Failed to parse 'ListEvalSuiteLeaderboardRunsData' from JSON`,
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/** @internal */
|
|
689
|
+
export const ListEvalSuiteLeaderboardRunsResponseBody$inboundSchema: z.ZodType<
|
|
690
|
+
ListEvalSuiteLeaderboardRunsResponseBody,
|
|
691
|
+
z.ZodTypeDef,
|
|
692
|
+
unknown
|
|
693
|
+
> = z.object({
|
|
694
|
+
object: z.literal("eval.leaderboard_runs"),
|
|
695
|
+
data: z.array(z.lazy(() => ListEvalSuiteLeaderboardRunsData$inboundSchema)),
|
|
696
|
+
groups: z.array(components.EvalLeaderboardRunGroup$inboundSchema),
|
|
697
|
+
truncated: z.boolean(),
|
|
698
|
+
next_cursor: z.nullable(z.string()),
|
|
699
|
+
}).transform((v) => {
|
|
700
|
+
return remap$(v, {
|
|
701
|
+
"next_cursor": "nextCursor",
|
|
702
|
+
});
|
|
703
|
+
});
|
|
704
|
+
/** @internal */
|
|
705
|
+
export type ListEvalSuiteLeaderboardRunsResponseBody$Outbound = {
|
|
706
|
+
object: "eval.leaderboard_runs";
|
|
707
|
+
data: Array<ListEvalSuiteLeaderboardRunsData$Outbound>;
|
|
708
|
+
groups: Array<components.EvalLeaderboardRunGroup$Outbound>;
|
|
709
|
+
truncated: boolean;
|
|
710
|
+
next_cursor: string | null;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
/** @internal */
|
|
714
|
+
export const ListEvalSuiteLeaderboardRunsResponseBody$outboundSchema: z.ZodType<
|
|
715
|
+
ListEvalSuiteLeaderboardRunsResponseBody$Outbound,
|
|
716
|
+
z.ZodTypeDef,
|
|
717
|
+
ListEvalSuiteLeaderboardRunsResponseBody
|
|
718
|
+
> = z.object({
|
|
719
|
+
object: z.literal("eval.leaderboard_runs"),
|
|
720
|
+
data: z.array(z.lazy(() => ListEvalSuiteLeaderboardRunsData$outboundSchema)),
|
|
721
|
+
groups: z.array(components.EvalLeaderboardRunGroup$outboundSchema),
|
|
722
|
+
truncated: z.boolean(),
|
|
723
|
+
nextCursor: z.nullable(z.string()),
|
|
724
|
+
}).transform((v) => {
|
|
725
|
+
return remap$(v, {
|
|
726
|
+
nextCursor: "next_cursor",
|
|
727
|
+
});
|
|
728
|
+
});
|
|
729
|
+
|
|
730
|
+
export function listEvalSuiteLeaderboardRunsResponseBodyToJSON(
|
|
731
|
+
listEvalSuiteLeaderboardRunsResponseBody:
|
|
732
|
+
ListEvalSuiteLeaderboardRunsResponseBody,
|
|
733
|
+
): string {
|
|
734
|
+
return JSON.stringify(
|
|
735
|
+
ListEvalSuiteLeaderboardRunsResponseBody$outboundSchema.parse(
|
|
736
|
+
listEvalSuiteLeaderboardRunsResponseBody,
|
|
737
|
+
),
|
|
738
|
+
);
|
|
739
|
+
}
|
|
740
|
+
export function listEvalSuiteLeaderboardRunsResponseBodyFromJSON(
|
|
741
|
+
jsonString: string,
|
|
742
|
+
): SafeParseResult<
|
|
743
|
+
ListEvalSuiteLeaderboardRunsResponseBody,
|
|
744
|
+
SDKValidationError
|
|
745
|
+
> {
|
|
746
|
+
return safeParse(
|
|
747
|
+
jsonString,
|
|
748
|
+
(x) =>
|
|
749
|
+
ListEvalSuiteLeaderboardRunsResponseBody$inboundSchema.parse(
|
|
750
|
+
JSON.parse(x),
|
|
751
|
+
),
|
|
752
|
+
`Failed to parse 'ListEvalSuiteLeaderboardRunsResponseBody' from JSON`,
|
|
753
|
+
);
|
|
754
|
+
}
|