openpond-sdk 0.1.11 → 0.1.13
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/MODEL_STARTERS.md +22 -0
- package/dist/model-starter-attempts.js +422 -0
- package/dist/model-starter-attempts.js.map +7 -0
- package/dist/model-starter-catalog.js +38 -0
- package/dist/model-starter-catalog.js.map +3 -3
- package/dist/model-starters.js +50 -1
- package/dist/model-starters.js.map +3 -3
- package/dist/types/packages/sdk/src/model-starter-attempts.d.ts +692 -0
- package/dist/types/packages/sdk/src/model-starter-attempts.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/model-starter-execution.d.ts +63 -0
- package/dist/types/packages/sdk/src/model-starter-execution.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/model-starters.d.ts +12 -1
- package/dist/types/packages/sdk/src/model-starters.d.ts.map +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ModelStarterAttemptPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"hosted_chat">;
|
|
4
|
+
modelId: z.ZodString;
|
|
5
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
topP: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9
|
+
kind: z.ZodLiteral<"fixture">;
|
|
10
|
+
fixtureId: z.ZodString;
|
|
11
|
+
}, z.core.$strict>], "kind">;
|
|
12
|
+
/** The server resolves task input, private state, verifier and fixture script.
|
|
13
|
+
* A caller can select releases, but cannot submit replacement execution bytes. */
|
|
14
|
+
export declare const ModelStarterAttemptRequestSchema: z.ZodObject<{
|
|
15
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptRequest.v1">;
|
|
16
|
+
operationId: z.ZodString;
|
|
17
|
+
teamId: z.ZodString;
|
|
18
|
+
modelProjectId: z.ZodString;
|
|
19
|
+
taskset: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
contentHash: z.ZodString;
|
|
22
|
+
revision: z.ZodNumber;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
taskId: z.ZodString;
|
|
25
|
+
environmentSeed: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
|
+
kind: z.ZodLiteral<"hosted_chat">;
|
|
28
|
+
modelId: z.ZodString;
|
|
29
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
topP: z.ZodDefault<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
33
|
+
kind: z.ZodLiteral<"fixture">;
|
|
34
|
+
fixtureId: z.ZodString;
|
|
35
|
+
}, z.core.$strict>], "kind">;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type ModelStarterAttemptRequest = z.infer<typeof ModelStarterAttemptRequestSchema>;
|
|
38
|
+
export declare const ModelStarterAttemptChoicesQuerySchema: z.ZodObject<{
|
|
39
|
+
modelProjectId: z.ZodString;
|
|
40
|
+
taskset: z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
contentHash: z.ZodString;
|
|
43
|
+
revision: z.ZodNumber;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
afterTaskId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export declare const ModelStarterAttemptChoicesSchema: z.ZodObject<{
|
|
49
|
+
modelProjectId: z.ZodString;
|
|
50
|
+
taskset: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
contentHash: z.ZodString;
|
|
53
|
+
revision: z.ZodNumber;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
available: z.ZodBoolean;
|
|
56
|
+
unavailableReason: z.ZodNullable<z.ZodString>;
|
|
57
|
+
models: z.ZodArray<z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
}, z.core.$strict>>;
|
|
61
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
split: z.ZodEnum<{
|
|
64
|
+
train: "train";
|
|
65
|
+
validation: "validation";
|
|
66
|
+
frozen_eval: "frozen_eval";
|
|
67
|
+
}>;
|
|
68
|
+
inputPreview: z.ZodString;
|
|
69
|
+
fixtures: z.ZodArray<z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
label: z.ZodString;
|
|
72
|
+
}, z.core.$strict>>;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export declare const ModelStarterAttemptSummarySchema: z.ZodObject<{
|
|
77
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptSummary.v1">;
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
revision: z.ZodNumber;
|
|
80
|
+
request: z.ZodObject<{
|
|
81
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptRequest.v1">;
|
|
82
|
+
operationId: z.ZodString;
|
|
83
|
+
teamId: z.ZodString;
|
|
84
|
+
modelProjectId: z.ZodString;
|
|
85
|
+
taskset: z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
contentHash: z.ZodString;
|
|
88
|
+
revision: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
taskId: z.ZodString;
|
|
91
|
+
environmentSeed: z.ZodDefault<z.ZodNumber>;
|
|
92
|
+
policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"hosted_chat">;
|
|
94
|
+
modelId: z.ZodString;
|
|
95
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
96
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
97
|
+
topP: z.ZodDefault<z.ZodNumber>;
|
|
98
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
99
|
+
kind: z.ZodLiteral<"fixture">;
|
|
100
|
+
fixtureId: z.ZodString;
|
|
101
|
+
}, z.core.$strict>], "kind">;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
status: z.ZodEnum<{
|
|
104
|
+
running: "running";
|
|
105
|
+
failed: "failed";
|
|
106
|
+
queued: "queued";
|
|
107
|
+
cancelled: "cancelled";
|
|
108
|
+
cancelling: "cancelling";
|
|
109
|
+
completed: "completed";
|
|
110
|
+
}>;
|
|
111
|
+
policySnapshot: z.ZodNullable<z.ZodObject<{
|
|
112
|
+
modelId: z.ZodString;
|
|
113
|
+
provider: z.ZodString;
|
|
114
|
+
upstreamModelId: z.ZodString;
|
|
115
|
+
configurationHash: z.ZodString;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
createdAt: z.ZodISODateTime;
|
|
118
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
119
|
+
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
120
|
+
cleanupComplete: z.ZodBoolean;
|
|
121
|
+
resultAvailable: z.ZodBoolean;
|
|
122
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
123
|
+
gradingStatus: z.ZodDefault<z.ZodEnum<{
|
|
124
|
+
unscorable: "unscorable";
|
|
125
|
+
scored: "scored";
|
|
126
|
+
not_configured: "not_configured";
|
|
127
|
+
not_started: "not_started";
|
|
128
|
+
}>>;
|
|
129
|
+
passed: z.ZodNullable<z.ZodBoolean>;
|
|
130
|
+
outputPreview: z.ZodNullable<z.ZodString>;
|
|
131
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
132
|
+
code: z.ZodString;
|
|
133
|
+
message: z.ZodString;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
export type ModelStarterAttemptSummary = z.infer<typeof ModelStarterAttemptSummarySchema>;
|
|
137
|
+
export declare const ModelStarterAttemptListQuerySchema: z.ZodObject<{
|
|
138
|
+
modelProjectId: z.ZodString;
|
|
139
|
+
afterId: z.ZodOptional<z.ZodString>;
|
|
140
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export declare const ModelStarterAttemptPageSchema: z.ZodObject<{
|
|
143
|
+
items: z.ZodArray<z.ZodObject<{
|
|
144
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptSummary.v1">;
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
revision: z.ZodNumber;
|
|
147
|
+
request: z.ZodObject<{
|
|
148
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptRequest.v1">;
|
|
149
|
+
operationId: z.ZodString;
|
|
150
|
+
teamId: z.ZodString;
|
|
151
|
+
modelProjectId: z.ZodString;
|
|
152
|
+
taskset: z.ZodObject<{
|
|
153
|
+
id: z.ZodString;
|
|
154
|
+
contentHash: z.ZodString;
|
|
155
|
+
revision: z.ZodNumber;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
taskId: z.ZodString;
|
|
158
|
+
environmentSeed: z.ZodDefault<z.ZodNumber>;
|
|
159
|
+
policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"hosted_chat">;
|
|
161
|
+
modelId: z.ZodString;
|
|
162
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
163
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
164
|
+
topP: z.ZodDefault<z.ZodNumber>;
|
|
165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"fixture">;
|
|
167
|
+
fixtureId: z.ZodString;
|
|
168
|
+
}, z.core.$strict>], "kind">;
|
|
169
|
+
}, z.core.$strict>;
|
|
170
|
+
status: z.ZodEnum<{
|
|
171
|
+
running: "running";
|
|
172
|
+
failed: "failed";
|
|
173
|
+
queued: "queued";
|
|
174
|
+
cancelled: "cancelled";
|
|
175
|
+
cancelling: "cancelling";
|
|
176
|
+
completed: "completed";
|
|
177
|
+
}>;
|
|
178
|
+
policySnapshot: z.ZodNullable<z.ZodObject<{
|
|
179
|
+
modelId: z.ZodString;
|
|
180
|
+
provider: z.ZodString;
|
|
181
|
+
upstreamModelId: z.ZodString;
|
|
182
|
+
configurationHash: z.ZodString;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
createdAt: z.ZodISODateTime;
|
|
185
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
186
|
+
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
187
|
+
cleanupComplete: z.ZodBoolean;
|
|
188
|
+
resultAvailable: z.ZodBoolean;
|
|
189
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
190
|
+
gradingStatus: z.ZodDefault<z.ZodEnum<{
|
|
191
|
+
unscorable: "unscorable";
|
|
192
|
+
scored: "scored";
|
|
193
|
+
not_configured: "not_configured";
|
|
194
|
+
not_started: "not_started";
|
|
195
|
+
}>>;
|
|
196
|
+
passed: z.ZodNullable<z.ZodBoolean>;
|
|
197
|
+
outputPreview: z.ZodNullable<z.ZodString>;
|
|
198
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
199
|
+
code: z.ZodString;
|
|
200
|
+
message: z.ZodString;
|
|
201
|
+
}, z.core.$strict>>;
|
|
202
|
+
}, z.core.$strict>>;
|
|
203
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
export declare const ModelStarterAttemptResultSchema: z.ZodObject<{
|
|
206
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptResult.v1">;
|
|
207
|
+
attempt: z.ZodObject<{
|
|
208
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptSummary.v1">;
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
revision: z.ZodNumber;
|
|
211
|
+
request: z.ZodObject<{
|
|
212
|
+
schemaVersion: z.ZodLiteral<"openpond.modelStarterAttemptRequest.v1">;
|
|
213
|
+
operationId: z.ZodString;
|
|
214
|
+
teamId: z.ZodString;
|
|
215
|
+
modelProjectId: z.ZodString;
|
|
216
|
+
taskset: z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
contentHash: z.ZodString;
|
|
219
|
+
revision: z.ZodNumber;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
taskId: z.ZodString;
|
|
222
|
+
environmentSeed: z.ZodDefault<z.ZodNumber>;
|
|
223
|
+
policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
224
|
+
kind: z.ZodLiteral<"hosted_chat">;
|
|
225
|
+
modelId: z.ZodString;
|
|
226
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
228
|
+
topP: z.ZodDefault<z.ZodNumber>;
|
|
229
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
230
|
+
kind: z.ZodLiteral<"fixture">;
|
|
231
|
+
fixtureId: z.ZodString;
|
|
232
|
+
}, z.core.$strict>], "kind">;
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
status: z.ZodEnum<{
|
|
235
|
+
running: "running";
|
|
236
|
+
failed: "failed";
|
|
237
|
+
queued: "queued";
|
|
238
|
+
cancelled: "cancelled";
|
|
239
|
+
cancelling: "cancelling";
|
|
240
|
+
completed: "completed";
|
|
241
|
+
}>;
|
|
242
|
+
policySnapshot: z.ZodNullable<z.ZodObject<{
|
|
243
|
+
modelId: z.ZodString;
|
|
244
|
+
provider: z.ZodString;
|
|
245
|
+
upstreamModelId: z.ZodString;
|
|
246
|
+
configurationHash: z.ZodString;
|
|
247
|
+
}, z.core.$strict>>;
|
|
248
|
+
createdAt: z.ZodISODateTime;
|
|
249
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
250
|
+
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
251
|
+
cleanupComplete: z.ZodBoolean;
|
|
252
|
+
resultAvailable: z.ZodBoolean;
|
|
253
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
254
|
+
gradingStatus: z.ZodDefault<z.ZodEnum<{
|
|
255
|
+
unscorable: "unscorable";
|
|
256
|
+
scored: "scored";
|
|
257
|
+
not_configured: "not_configured";
|
|
258
|
+
not_started: "not_started";
|
|
259
|
+
}>>;
|
|
260
|
+
passed: z.ZodNullable<z.ZodBoolean>;
|
|
261
|
+
outputPreview: z.ZodNullable<z.ZodString>;
|
|
262
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
263
|
+
code: z.ZodString;
|
|
264
|
+
message: z.ZodString;
|
|
265
|
+
}, z.core.$strict>>;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
output: z.ZodNullable<z.ZodString>;
|
|
268
|
+
messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
269
|
+
composition: z.ZodNullable<z.ZodObject<{
|
|
270
|
+
schemaVersion: z.ZodLiteral<"openpond.rewardComposition.v1">;
|
|
271
|
+
binding: z.ZodObject<{
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
contentHash: z.ZodString;
|
|
274
|
+
revision: z.ZodNumber;
|
|
275
|
+
}, z.core.$strict>;
|
|
276
|
+
taskHash: z.ZodString;
|
|
277
|
+
outputHash: z.ZodString;
|
|
278
|
+
results: z.ZodArray<z.ZodObject<{
|
|
279
|
+
graderId: z.ZodString;
|
|
280
|
+
reward: z.ZodObject<{
|
|
281
|
+
id: z.ZodString;
|
|
282
|
+
contentHash: z.ZodString;
|
|
283
|
+
revision: z.ZodNumber;
|
|
284
|
+
}, z.core.$strict>;
|
|
285
|
+
role: z.ZodEnum<{
|
|
286
|
+
evaluation: "evaluation";
|
|
287
|
+
training: "training";
|
|
288
|
+
}>;
|
|
289
|
+
status: z.ZodEnum<{
|
|
290
|
+
pending: "pending";
|
|
291
|
+
failed: "failed";
|
|
292
|
+
scored: "scored";
|
|
293
|
+
unavailable: "unavailable";
|
|
294
|
+
}>;
|
|
295
|
+
rawScore: z.ZodNullable<z.ZodNumber>;
|
|
296
|
+
normalizedScore: z.ZodNullable<z.ZodNumber>;
|
|
297
|
+
passed: z.ZodNullable<z.ZodBoolean>;
|
|
298
|
+
evidenceHashes: z.ZodArray<z.ZodString>;
|
|
299
|
+
message: z.ZodNullable<z.ZodString>;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
training: z.ZodObject<{
|
|
302
|
+
status: z.ZodEnum<{
|
|
303
|
+
scored: "scored";
|
|
304
|
+
unscorable: "unscorable";
|
|
305
|
+
not_configured: "not_configured";
|
|
306
|
+
}>;
|
|
307
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
308
|
+
passed: z.ZodNullable<z.ZodBoolean>;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
evaluation: z.ZodObject<{
|
|
311
|
+
status: z.ZodEnum<{
|
|
312
|
+
scored: "scored";
|
|
313
|
+
unscorable: "unscorable";
|
|
314
|
+
not_configured: "not_configured";
|
|
315
|
+
}>;
|
|
316
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
317
|
+
passed: z.ZodNullable<z.ZodBoolean>;
|
|
318
|
+
}, z.core.$strict>;
|
|
319
|
+
contentHash: z.ZodString;
|
|
320
|
+
}, z.core.$strict>>;
|
|
321
|
+
environment: z.ZodObject<{
|
|
322
|
+
status: z.ZodEnum<{
|
|
323
|
+
cancelled: "cancelled";
|
|
324
|
+
completed: "completed";
|
|
325
|
+
budget_exhausted: "budget_exhausted";
|
|
326
|
+
timed_out: "timed_out";
|
|
327
|
+
policy_failure: "policy_failure";
|
|
328
|
+
environment_failure: "environment_failure";
|
|
329
|
+
}>;
|
|
330
|
+
collected: z.ZodBoolean;
|
|
331
|
+
definition: z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
contentHash: z.ZodString;
|
|
334
|
+
revision: z.ZodNumber;
|
|
335
|
+
}, z.core.$strict>;
|
|
336
|
+
initialStateHash: z.ZodNullable<z.ZodString>;
|
|
337
|
+
finalStateHash: z.ZodNullable<z.ZodString>;
|
|
338
|
+
attemptHash: z.ZodString;
|
|
339
|
+
}, z.core.$strict>;
|
|
340
|
+
providerRequestIds: z.ZodArray<z.ZodString>;
|
|
341
|
+
contentHash: z.ZodString;
|
|
342
|
+
}, z.core.$strict>;
|
|
343
|
+
export type ModelStarterAttemptResult = z.infer<typeof ModelStarterAttemptResultSchema>;
|
|
344
|
+
export declare class OpenPondModelStarterAttemptError extends Error {
|
|
345
|
+
readonly status: number;
|
|
346
|
+
readonly code: string;
|
|
347
|
+
constructor(status: number, code: string, message: string);
|
|
348
|
+
}
|
|
349
|
+
export declare class OpenPondModelStarterAttemptsClient {
|
|
350
|
+
#private;
|
|
351
|
+
constructor(options: {
|
|
352
|
+
baseUrl: string;
|
|
353
|
+
apiKey: string;
|
|
354
|
+
teamId: string;
|
|
355
|
+
fetch?: typeof globalThis.fetch;
|
|
356
|
+
});
|
|
357
|
+
create(value: z.input<typeof ModelStarterAttemptRequestSchema>, options?: {
|
|
358
|
+
signal?: AbortSignal;
|
|
359
|
+
}): Promise<{
|
|
360
|
+
schemaVersion: "openpond.modelStarterAttemptSummary.v1";
|
|
361
|
+
id: string;
|
|
362
|
+
revision: number;
|
|
363
|
+
request: {
|
|
364
|
+
schemaVersion: "openpond.modelStarterAttemptRequest.v1";
|
|
365
|
+
operationId: string;
|
|
366
|
+
teamId: string;
|
|
367
|
+
modelProjectId: string;
|
|
368
|
+
taskset: {
|
|
369
|
+
id: string;
|
|
370
|
+
contentHash: string;
|
|
371
|
+
revision: number;
|
|
372
|
+
};
|
|
373
|
+
taskId: string;
|
|
374
|
+
environmentSeed: number;
|
|
375
|
+
policy: {
|
|
376
|
+
kind: "hosted_chat";
|
|
377
|
+
modelId: string;
|
|
378
|
+
maxOutputTokens: number;
|
|
379
|
+
temperature: number;
|
|
380
|
+
topP: number;
|
|
381
|
+
} | {
|
|
382
|
+
kind: "fixture";
|
|
383
|
+
fixtureId: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
status: "running" | "failed" | "queued" | "cancelled" | "cancelling" | "completed";
|
|
387
|
+
policySnapshot: {
|
|
388
|
+
modelId: string;
|
|
389
|
+
provider: string;
|
|
390
|
+
upstreamModelId: string;
|
|
391
|
+
configurationHash: string;
|
|
392
|
+
} | null;
|
|
393
|
+
createdAt: string;
|
|
394
|
+
startedAt: string | null;
|
|
395
|
+
completedAt: string | null;
|
|
396
|
+
cleanupComplete: boolean;
|
|
397
|
+
resultAvailable: boolean;
|
|
398
|
+
score: number | null;
|
|
399
|
+
gradingStatus: "unscorable" | "scored" | "not_configured" | "not_started";
|
|
400
|
+
passed: boolean | null;
|
|
401
|
+
outputPreview: string | null;
|
|
402
|
+
error: {
|
|
403
|
+
code: string;
|
|
404
|
+
message: string;
|
|
405
|
+
} | null;
|
|
406
|
+
}>;
|
|
407
|
+
get(id: string, options?: {
|
|
408
|
+
signal?: AbortSignal;
|
|
409
|
+
}): Promise<{
|
|
410
|
+
schemaVersion: "openpond.modelStarterAttemptSummary.v1";
|
|
411
|
+
id: string;
|
|
412
|
+
revision: number;
|
|
413
|
+
request: {
|
|
414
|
+
schemaVersion: "openpond.modelStarterAttemptRequest.v1";
|
|
415
|
+
operationId: string;
|
|
416
|
+
teamId: string;
|
|
417
|
+
modelProjectId: string;
|
|
418
|
+
taskset: {
|
|
419
|
+
id: string;
|
|
420
|
+
contentHash: string;
|
|
421
|
+
revision: number;
|
|
422
|
+
};
|
|
423
|
+
taskId: string;
|
|
424
|
+
environmentSeed: number;
|
|
425
|
+
policy: {
|
|
426
|
+
kind: "hosted_chat";
|
|
427
|
+
modelId: string;
|
|
428
|
+
maxOutputTokens: number;
|
|
429
|
+
temperature: number;
|
|
430
|
+
topP: number;
|
|
431
|
+
} | {
|
|
432
|
+
kind: "fixture";
|
|
433
|
+
fixtureId: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
status: "running" | "failed" | "queued" | "cancelled" | "cancelling" | "completed";
|
|
437
|
+
policySnapshot: {
|
|
438
|
+
modelId: string;
|
|
439
|
+
provider: string;
|
|
440
|
+
upstreamModelId: string;
|
|
441
|
+
configurationHash: string;
|
|
442
|
+
} | null;
|
|
443
|
+
createdAt: string;
|
|
444
|
+
startedAt: string | null;
|
|
445
|
+
completedAt: string | null;
|
|
446
|
+
cleanupComplete: boolean;
|
|
447
|
+
resultAvailable: boolean;
|
|
448
|
+
score: number | null;
|
|
449
|
+
gradingStatus: "unscorable" | "scored" | "not_configured" | "not_started";
|
|
450
|
+
passed: boolean | null;
|
|
451
|
+
outputPreview: string | null;
|
|
452
|
+
error: {
|
|
453
|
+
code: string;
|
|
454
|
+
message: string;
|
|
455
|
+
} | null;
|
|
456
|
+
}>;
|
|
457
|
+
choices(value: z.input<typeof ModelStarterAttemptChoicesQuerySchema>, options?: {
|
|
458
|
+
signal?: AbortSignal;
|
|
459
|
+
}): Promise<{
|
|
460
|
+
modelProjectId: string;
|
|
461
|
+
taskset: {
|
|
462
|
+
id: string;
|
|
463
|
+
contentHash: string;
|
|
464
|
+
revision: number;
|
|
465
|
+
};
|
|
466
|
+
available: boolean;
|
|
467
|
+
unavailableReason: string | null;
|
|
468
|
+
models: {
|
|
469
|
+
id: string;
|
|
470
|
+
name: string;
|
|
471
|
+
}[];
|
|
472
|
+
tasks: {
|
|
473
|
+
id: string;
|
|
474
|
+
split: "train" | "validation" | "frozen_eval";
|
|
475
|
+
inputPreview: string;
|
|
476
|
+
fixtures: {
|
|
477
|
+
id: string;
|
|
478
|
+
label: string;
|
|
479
|
+
}[];
|
|
480
|
+
}[];
|
|
481
|
+
nextCursor: string | null;
|
|
482
|
+
}>;
|
|
483
|
+
cancel(id: string, options?: {
|
|
484
|
+
signal?: AbortSignal;
|
|
485
|
+
}): Promise<{
|
|
486
|
+
schemaVersion: "openpond.modelStarterAttemptSummary.v1";
|
|
487
|
+
id: string;
|
|
488
|
+
revision: number;
|
|
489
|
+
request: {
|
|
490
|
+
schemaVersion: "openpond.modelStarterAttemptRequest.v1";
|
|
491
|
+
operationId: string;
|
|
492
|
+
teamId: string;
|
|
493
|
+
modelProjectId: string;
|
|
494
|
+
taskset: {
|
|
495
|
+
id: string;
|
|
496
|
+
contentHash: string;
|
|
497
|
+
revision: number;
|
|
498
|
+
};
|
|
499
|
+
taskId: string;
|
|
500
|
+
environmentSeed: number;
|
|
501
|
+
policy: {
|
|
502
|
+
kind: "hosted_chat";
|
|
503
|
+
modelId: string;
|
|
504
|
+
maxOutputTokens: number;
|
|
505
|
+
temperature: number;
|
|
506
|
+
topP: number;
|
|
507
|
+
} | {
|
|
508
|
+
kind: "fixture";
|
|
509
|
+
fixtureId: string;
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
status: "running" | "failed" | "queued" | "cancelled" | "cancelling" | "completed";
|
|
513
|
+
policySnapshot: {
|
|
514
|
+
modelId: string;
|
|
515
|
+
provider: string;
|
|
516
|
+
upstreamModelId: string;
|
|
517
|
+
configurationHash: string;
|
|
518
|
+
} | null;
|
|
519
|
+
createdAt: string;
|
|
520
|
+
startedAt: string | null;
|
|
521
|
+
completedAt: string | null;
|
|
522
|
+
cleanupComplete: boolean;
|
|
523
|
+
resultAvailable: boolean;
|
|
524
|
+
score: number | null;
|
|
525
|
+
gradingStatus: "unscorable" | "scored" | "not_configured" | "not_started";
|
|
526
|
+
passed: boolean | null;
|
|
527
|
+
outputPreview: string | null;
|
|
528
|
+
error: {
|
|
529
|
+
code: string;
|
|
530
|
+
message: string;
|
|
531
|
+
} | null;
|
|
532
|
+
}>;
|
|
533
|
+
result(id: string, options?: {
|
|
534
|
+
signal?: AbortSignal;
|
|
535
|
+
}): Promise<{
|
|
536
|
+
schemaVersion: "openpond.modelStarterAttemptResult.v1";
|
|
537
|
+
attempt: {
|
|
538
|
+
schemaVersion: "openpond.modelStarterAttemptSummary.v1";
|
|
539
|
+
id: string;
|
|
540
|
+
revision: number;
|
|
541
|
+
request: {
|
|
542
|
+
schemaVersion: "openpond.modelStarterAttemptRequest.v1";
|
|
543
|
+
operationId: string;
|
|
544
|
+
teamId: string;
|
|
545
|
+
modelProjectId: string;
|
|
546
|
+
taskset: {
|
|
547
|
+
id: string;
|
|
548
|
+
contentHash: string;
|
|
549
|
+
revision: number;
|
|
550
|
+
};
|
|
551
|
+
taskId: string;
|
|
552
|
+
environmentSeed: number;
|
|
553
|
+
policy: {
|
|
554
|
+
kind: "hosted_chat";
|
|
555
|
+
modelId: string;
|
|
556
|
+
maxOutputTokens: number;
|
|
557
|
+
temperature: number;
|
|
558
|
+
topP: number;
|
|
559
|
+
} | {
|
|
560
|
+
kind: "fixture";
|
|
561
|
+
fixtureId: string;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
status: "running" | "failed" | "queued" | "cancelled" | "cancelling" | "completed";
|
|
565
|
+
policySnapshot: {
|
|
566
|
+
modelId: string;
|
|
567
|
+
provider: string;
|
|
568
|
+
upstreamModelId: string;
|
|
569
|
+
configurationHash: string;
|
|
570
|
+
} | null;
|
|
571
|
+
createdAt: string;
|
|
572
|
+
startedAt: string | null;
|
|
573
|
+
completedAt: string | null;
|
|
574
|
+
cleanupComplete: boolean;
|
|
575
|
+
resultAvailable: boolean;
|
|
576
|
+
score: number | null;
|
|
577
|
+
gradingStatus: "unscorable" | "scored" | "not_configured" | "not_started";
|
|
578
|
+
passed: boolean | null;
|
|
579
|
+
outputPreview: string | null;
|
|
580
|
+
error: {
|
|
581
|
+
code: string;
|
|
582
|
+
message: string;
|
|
583
|
+
} | null;
|
|
584
|
+
};
|
|
585
|
+
output: string | null;
|
|
586
|
+
messages: Record<string, unknown>[];
|
|
587
|
+
composition: {
|
|
588
|
+
schemaVersion: "openpond.rewardComposition.v1";
|
|
589
|
+
binding: {
|
|
590
|
+
id: string;
|
|
591
|
+
contentHash: string;
|
|
592
|
+
revision: number;
|
|
593
|
+
};
|
|
594
|
+
taskHash: string;
|
|
595
|
+
outputHash: string;
|
|
596
|
+
results: {
|
|
597
|
+
graderId: string;
|
|
598
|
+
reward: {
|
|
599
|
+
id: string;
|
|
600
|
+
contentHash: string;
|
|
601
|
+
revision: number;
|
|
602
|
+
};
|
|
603
|
+
role: "evaluation" | "training";
|
|
604
|
+
status: "failed" | "pending" | "unavailable" | "scored";
|
|
605
|
+
rawScore: number | null;
|
|
606
|
+
normalizedScore: number | null;
|
|
607
|
+
passed: boolean | null;
|
|
608
|
+
evidenceHashes: string[];
|
|
609
|
+
message: string | null;
|
|
610
|
+
}[];
|
|
611
|
+
training: {
|
|
612
|
+
status: "unscorable" | "scored" | "not_configured";
|
|
613
|
+
score: number | null;
|
|
614
|
+
passed: boolean | null;
|
|
615
|
+
};
|
|
616
|
+
evaluation: {
|
|
617
|
+
status: "unscorable" | "scored" | "not_configured";
|
|
618
|
+
score: number | null;
|
|
619
|
+
passed: boolean | null;
|
|
620
|
+
};
|
|
621
|
+
contentHash: string;
|
|
622
|
+
} | null;
|
|
623
|
+
environment: {
|
|
624
|
+
status: "cancelled" | "completed" | "budget_exhausted" | "timed_out" | "policy_failure" | "environment_failure";
|
|
625
|
+
collected: boolean;
|
|
626
|
+
definition: {
|
|
627
|
+
id: string;
|
|
628
|
+
contentHash: string;
|
|
629
|
+
revision: number;
|
|
630
|
+
};
|
|
631
|
+
initialStateHash: string | null;
|
|
632
|
+
finalStateHash: string | null;
|
|
633
|
+
attemptHash: string;
|
|
634
|
+
};
|
|
635
|
+
providerRequestIds: string[];
|
|
636
|
+
contentHash: string;
|
|
637
|
+
}>;
|
|
638
|
+
list(value: z.input<typeof ModelStarterAttemptListQuerySchema>, options?: {
|
|
639
|
+
signal?: AbortSignal;
|
|
640
|
+
}): Promise<{
|
|
641
|
+
items: {
|
|
642
|
+
schemaVersion: "openpond.modelStarterAttemptSummary.v1";
|
|
643
|
+
id: string;
|
|
644
|
+
revision: number;
|
|
645
|
+
request: {
|
|
646
|
+
schemaVersion: "openpond.modelStarterAttemptRequest.v1";
|
|
647
|
+
operationId: string;
|
|
648
|
+
teamId: string;
|
|
649
|
+
modelProjectId: string;
|
|
650
|
+
taskset: {
|
|
651
|
+
id: string;
|
|
652
|
+
contentHash: string;
|
|
653
|
+
revision: number;
|
|
654
|
+
};
|
|
655
|
+
taskId: string;
|
|
656
|
+
environmentSeed: number;
|
|
657
|
+
policy: {
|
|
658
|
+
kind: "hosted_chat";
|
|
659
|
+
modelId: string;
|
|
660
|
+
maxOutputTokens: number;
|
|
661
|
+
temperature: number;
|
|
662
|
+
topP: number;
|
|
663
|
+
} | {
|
|
664
|
+
kind: "fixture";
|
|
665
|
+
fixtureId: string;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
status: "running" | "failed" | "queued" | "cancelled" | "cancelling" | "completed";
|
|
669
|
+
policySnapshot: {
|
|
670
|
+
modelId: string;
|
|
671
|
+
provider: string;
|
|
672
|
+
upstreamModelId: string;
|
|
673
|
+
configurationHash: string;
|
|
674
|
+
} | null;
|
|
675
|
+
createdAt: string;
|
|
676
|
+
startedAt: string | null;
|
|
677
|
+
completedAt: string | null;
|
|
678
|
+
cleanupComplete: boolean;
|
|
679
|
+
resultAvailable: boolean;
|
|
680
|
+
score: number | null;
|
|
681
|
+
gradingStatus: "unscorable" | "scored" | "not_configured" | "not_started";
|
|
682
|
+
passed: boolean | null;
|
|
683
|
+
outputPreview: string | null;
|
|
684
|
+
error: {
|
|
685
|
+
code: string;
|
|
686
|
+
message: string;
|
|
687
|
+
} | null;
|
|
688
|
+
}[];
|
|
689
|
+
nextCursor: string | null;
|
|
690
|
+
}>;
|
|
691
|
+
}
|
|
692
|
+
//# sourceMappingURL=model-starter-attempts.d.ts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