openpond-sdk 0.9.2 → 0.9.3
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 +16 -0
- package/dist/chunk-KLX6OVHR.js +359 -0
- package/dist/chunk-KLX6OVHR.js.map +7 -0
- package/dist/{chunk-QABCKPW6.js → chunk-TQ5ASK7D.js} +4 -4
- package/dist/{chunk-IKTZ2CD4.js → chunk-XR6CLSCS.js} +85 -43
- package/dist/chunk-XR6CLSCS.js.map +7 -0
- package/dist/chunk-ZV2BLO3D.js +123 -0
- package/dist/chunk-ZV2BLO3D.js.map +7 -0
- package/dist/dataset-workspaces.js +3 -3
- package/dist/experiments.js +50 -0
- package/dist/experiments.js.map +7 -0
- package/dist/index.js +12 -3
- package/dist/index.js.map +2 -2
- package/dist/learning.js +3 -3
- package/dist/model-starter-attempts.js +3 -1
- package/dist/model-taskset-runs.js +17 -113
- package/dist/model-taskset-runs.js.map +4 -4
- package/dist/taskset-drafts.js +2 -2
- package/dist/taskset-packages.js +2 -2
- package/dist/types/packages/sdk/src/experiment-client.d.ts +2002 -0
- package/dist/types/packages/sdk/src/experiment-client.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/experiment-contracts.d.ts +256 -0
- package/dist/types/packages/sdk/src/experiment-contracts.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/experiment-field-mappings.d.ts +43 -0
- package/dist/types/packages/sdk/src/experiment-field-mappings.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/experiment-grading-contracts.d.ts +79 -0
- package/dist/types/packages/sdk/src/experiment-grading-contracts.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/experiment-scoring-contracts.d.ts +192 -0
- package/dist/types/packages/sdk/src/experiment-scoring-contracts.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/experiments.d.ts +6 -0
- package/dist/types/packages/sdk/src/experiments.d.ts.map +1 -0
- package/dist/types/packages/sdk/src/index.d.ts +2 -0
- package/dist/types/packages/sdk/src/index.d.ts.map +1 -1
- package/dist/types/packages/sdk/src/model-starter-attempts.d.ts +123 -0
- package/dist/types/packages/sdk/src/model-starter-attempts.d.ts.map +1 -1
- package/package.json +6 -2
- package/dist/chunk-IKTZ2CD4.js.map +0 -7
- /package/dist/{chunk-QABCKPW6.js.map → chunk-TQ5ASK7D.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment-client.d.ts","sourceRoot":"","sources":["../../../../../src/experiment-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAiC,yBAAyB,EAAE,oBAAoB,EAAE,qBAAqB,EAChF,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAE9F,OAAO,EAA+D,KAAK,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAG/I,qBAAa,uBAAwB,SAAQ,KAAK;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM;gBAArC,MAAM,EAAE,MAAM,EAAW,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAC5E;AAED,6EAA6E;AAC7E,qBAAa,yBAAyB;IAExB,OAAO,CAAC,QAAQ,CAAC,OAAO;IADpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBACJ,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,KAAK,CAAA;KAAE;IAMzG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUtE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,O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;;;;;;;;;;;;;;;8BAA6gD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;IA5BtgU,OAAO,CAAC,UAAU;YAKJ,gBAAgB;IAK9B,OAAO,CAAC,IAAI;YAKE,OAAO;CAYtB"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ExperimentDefinitionRefSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
revision: z.ZodNumber;
|
|
5
|
+
contentHash: z.ZodString;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare const ExperimentGraderPinSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
version: z.ZodString;
|
|
10
|
+
contentHash: z.ZodString;
|
|
11
|
+
feedbackKey: z.ZodString;
|
|
12
|
+
release: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
revision: z.ZodNumber;
|
|
15
|
+
contentHash: z.ZodString;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
destination: z.ZodEnum<{
|
|
19
|
+
input: "input";
|
|
20
|
+
output: "output";
|
|
21
|
+
expectedOutput: "expectedOutput";
|
|
22
|
+
evaluatorContext: "evaluatorContext";
|
|
23
|
+
}>;
|
|
24
|
+
path: z.ZodArray<z.ZodString>;
|
|
25
|
+
source: z.ZodEnum<{
|
|
26
|
+
input: "input";
|
|
27
|
+
output: "output";
|
|
28
|
+
expectedOutput: "expectedOutput";
|
|
29
|
+
evaluatorContext: "evaluatorContext";
|
|
30
|
+
}>;
|
|
31
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
32
|
+
}, z.core.$strict>>>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export declare const ExperimentGraderSelectionSchema: z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
version: z.ZodString;
|
|
37
|
+
contentHash: z.ZodString;
|
|
38
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
39
|
+
destination: z.ZodEnum<{
|
|
40
|
+
input: "input";
|
|
41
|
+
output: "output";
|
|
42
|
+
expectedOutput: "expectedOutput";
|
|
43
|
+
evaluatorContext: "evaluatorContext";
|
|
44
|
+
}>;
|
|
45
|
+
path: z.ZodArray<z.ZodString>;
|
|
46
|
+
source: z.ZodEnum<{
|
|
47
|
+
input: "input";
|
|
48
|
+
output: "output";
|
|
49
|
+
expectedOutput: "expectedOutput";
|
|
50
|
+
evaluatorContext: "evaluatorContext";
|
|
51
|
+
}>;
|
|
52
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
53
|
+
}, z.core.$strict>>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export declare const SaveExperimentSchema: z.ZodObject<{
|
|
56
|
+
operationId: z.ZodString;
|
|
57
|
+
id: z.ZodOptional<z.ZodString>;
|
|
58
|
+
expectedRevision: z.ZodNumber;
|
|
59
|
+
request: z.ZodObject<{
|
|
60
|
+
schemaVersion: z.ZodLiteral<"openpond.modelTasksetRunRequest.v1">;
|
|
61
|
+
operationId: z.ZodString;
|
|
62
|
+
teamId: z.ZodString;
|
|
63
|
+
modelProjectId: z.ZodNullable<z.ZodString>;
|
|
64
|
+
name: z.ZodOptional<z.ZodString>;
|
|
65
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
revision: z.ZodNumber;
|
|
68
|
+
contentHash: z.ZodString;
|
|
69
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strict>>;
|
|
71
|
+
taskset: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
contentHash: z.ZodString;
|
|
74
|
+
revision: z.ZodNumber;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
+
kind: z.ZodLiteral<"hosted_chat">;
|
|
78
|
+
modelId: z.ZodString;
|
|
79
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
role: z.ZodEnum<{
|
|
81
|
+
user: "user";
|
|
82
|
+
system: "system";
|
|
83
|
+
assistant: "assistant";
|
|
84
|
+
}>;
|
|
85
|
+
content: z.ZodString;
|
|
86
|
+
}, z.core.$strict>>>;
|
|
87
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
88
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
89
|
+
topP: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"fixture">;
|
|
92
|
+
}, z.core.$strict>], "kind">;
|
|
93
|
+
population: z.ZodArray<z.ZodObject<{
|
|
94
|
+
receiptId: z.ZodString;
|
|
95
|
+
taskId: z.ZodString;
|
|
96
|
+
seed: z.ZodString;
|
|
97
|
+
fixtureId: z.ZodNullable<z.ZodString>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
maximumCostUsd: z.ZodNumber;
|
|
101
|
+
graders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
version: z.ZodString;
|
|
104
|
+
contentHash: z.ZodString;
|
|
105
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
106
|
+
destination: z.ZodEnum<{
|
|
107
|
+
input: "input";
|
|
108
|
+
output: "output";
|
|
109
|
+
expectedOutput: "expectedOutput";
|
|
110
|
+
evaluatorContext: "evaluatorContext";
|
|
111
|
+
}>;
|
|
112
|
+
path: z.ZodArray<z.ZodString>;
|
|
113
|
+
source: z.ZodEnum<{
|
|
114
|
+
input: "input";
|
|
115
|
+
output: "output";
|
|
116
|
+
expectedOutput: "expectedOutput";
|
|
117
|
+
evaluatorContext: "evaluatorContext";
|
|
118
|
+
}>;
|
|
119
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
}, z.core.$strict>>>;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
export declare const ExperimentDefinitionSchema: z.ZodObject<{
|
|
124
|
+
schemaVersion: z.ZodLiteral<"openpond.experimentDefinition.v1">;
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
teamId: z.ZodString;
|
|
127
|
+
revision: z.ZodNumber;
|
|
128
|
+
request: z.ZodObject<{
|
|
129
|
+
schemaVersion: z.ZodLiteral<"openpond.modelTasksetRunRequest.v1">;
|
|
130
|
+
operationId: z.ZodString;
|
|
131
|
+
teamId: z.ZodString;
|
|
132
|
+
modelProjectId: z.ZodNullable<z.ZodString>;
|
|
133
|
+
name: z.ZodOptional<z.ZodString>;
|
|
134
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
revision: z.ZodNumber;
|
|
137
|
+
contentHash: z.ZodString;
|
|
138
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
taskset: z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
contentHash: z.ZodString;
|
|
143
|
+
revision: z.ZodNumber;
|
|
144
|
+
}, z.core.$strict>;
|
|
145
|
+
policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
146
|
+
kind: z.ZodLiteral<"hosted_chat">;
|
|
147
|
+
modelId: z.ZodString;
|
|
148
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
|
+
role: z.ZodEnum<{
|
|
150
|
+
user: "user";
|
|
151
|
+
system: "system";
|
|
152
|
+
assistant: "assistant";
|
|
153
|
+
}>;
|
|
154
|
+
content: z.ZodString;
|
|
155
|
+
}, z.core.$strict>>>;
|
|
156
|
+
maxOutputTokens: z.ZodDefault<z.ZodNumber>;
|
|
157
|
+
temperature: z.ZodDefault<z.ZodNumber>;
|
|
158
|
+
topP: z.ZodDefault<z.ZodNumber>;
|
|
159
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"fixture">;
|
|
161
|
+
}, z.core.$strict>], "kind">;
|
|
162
|
+
population: z.ZodArray<z.ZodObject<{
|
|
163
|
+
receiptId: z.ZodString;
|
|
164
|
+
taskId: z.ZodString;
|
|
165
|
+
seed: z.ZodString;
|
|
166
|
+
fixtureId: z.ZodNullable<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
maximumCostUsd: z.ZodNumber;
|
|
170
|
+
graders: z.ZodArray<z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
version: z.ZodString;
|
|
173
|
+
contentHash: z.ZodString;
|
|
174
|
+
feedbackKey: z.ZodString;
|
|
175
|
+
release: z.ZodNullable<z.ZodObject<{
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
revision: z.ZodNumber;
|
|
178
|
+
contentHash: z.ZodString;
|
|
179
|
+
}, z.core.$strict>>;
|
|
180
|
+
mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
181
|
+
destination: z.ZodEnum<{
|
|
182
|
+
input: "input";
|
|
183
|
+
output: "output";
|
|
184
|
+
expectedOutput: "expectedOutput";
|
|
185
|
+
evaluatorContext: "evaluatorContext";
|
|
186
|
+
}>;
|
|
187
|
+
path: z.ZodArray<z.ZodString>;
|
|
188
|
+
source: z.ZodEnum<{
|
|
189
|
+
input: "input";
|
|
190
|
+
output: "output";
|
|
191
|
+
expectedOutput: "expectedOutput";
|
|
192
|
+
evaluatorContext: "evaluatorContext";
|
|
193
|
+
}>;
|
|
194
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strict>>>;
|
|
196
|
+
}, z.core.$strict>>;
|
|
197
|
+
createdAt: z.ZodISODateTime;
|
|
198
|
+
updatedAt: z.ZodISODateTime;
|
|
199
|
+
contentHash: z.ZodString;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
export type ExperimentDefinition = z.infer<typeof ExperimentDefinitionSchema>;
|
|
202
|
+
export type ExperimentDefinitionRef = z.infer<typeof ExperimentDefinitionRefSchema>;
|
|
203
|
+
export declare const StartExperimentSchema: z.ZodObject<{
|
|
204
|
+
operationId: z.ZodString;
|
|
205
|
+
definition: z.ZodObject<{
|
|
206
|
+
id: z.ZodString;
|
|
207
|
+
revision: z.ZodNumber;
|
|
208
|
+
contentHash: z.ZodString;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
}, z.core.$strict>;
|
|
211
|
+
export declare const ExperimentListQuerySchema: z.ZodObject<{
|
|
212
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
213
|
+
datasetHash: z.ZodOptional<z.ZodString>;
|
|
214
|
+
search: z.ZodOptional<z.ZodString>;
|
|
215
|
+
afterId: z.ZodOptional<z.ZodString>;
|
|
216
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
217
|
+
}, z.core.$strict>;
|
|
218
|
+
export declare const ExperimentExecutionContextSchema: z.ZodObject<{
|
|
219
|
+
definition: z.ZodObject<{
|
|
220
|
+
id: z.ZodString;
|
|
221
|
+
revision: z.ZodNumber;
|
|
222
|
+
contentHash: z.ZodString;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
maximumCostUsd: z.ZodNumber;
|
|
225
|
+
graders: z.ZodArray<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
version: z.ZodString;
|
|
228
|
+
contentHash: z.ZodString;
|
|
229
|
+
feedbackKey: z.ZodString;
|
|
230
|
+
release: z.ZodNullable<z.ZodObject<{
|
|
231
|
+
id: z.ZodString;
|
|
232
|
+
revision: z.ZodNumber;
|
|
233
|
+
contentHash: z.ZodString;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
|
+
destination: z.ZodEnum<{
|
|
237
|
+
input: "input";
|
|
238
|
+
output: "output";
|
|
239
|
+
expectedOutput: "expectedOutput";
|
|
240
|
+
evaluatorContext: "evaluatorContext";
|
|
241
|
+
}>;
|
|
242
|
+
path: z.ZodArray<z.ZodString>;
|
|
243
|
+
source: z.ZodEnum<{
|
|
244
|
+
input: "input";
|
|
245
|
+
output: "output";
|
|
246
|
+
expectedOutput: "expectedOutput";
|
|
247
|
+
evaluatorContext: "evaluatorContext";
|
|
248
|
+
}>;
|
|
249
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
250
|
+
}, z.core.$strict>>>;
|
|
251
|
+
}, z.core.$strict>>;
|
|
252
|
+
}, z.core.$strict>;
|
|
253
|
+
export type ExperimentExecutionContext = z.infer<typeof ExperimentExecutionContextSchema>;
|
|
254
|
+
export declare function verifyExperimentDefinition(value: unknown): ExperimentDefinition;
|
|
255
|
+
export declare const experimentDefinitionRef: (value: ExperimentDefinition) => ExperimentDefinitionRef;
|
|
256
|
+
//# sourceMappingURL=experiment-contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment-contracts.d.ts","sourceRoot":"","sources":["../../../../../src/experiment-contracts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,6BAA6B;;;;kBAE/B,CAAC;AACZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;kBAK3B,CAAC;AACZ,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;kBAAiI,CAAC;AAC9K,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAW/B,CAAC;AASH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAkD,CAAC;AAC1F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,eAAO,MAAM,qBAAqB;;;;;;;kBAAoF,CAAC;AACvH,eAAO,MAAM,yBAAyB;;;;;;kBAG3B,CAAC;AACZ,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGlC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,oBAAoB,CAQ/E;AAED,eAAO,MAAM,uBAAuB,GAAI,OAAO,oBAAoB,KAAG,uBAEpE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ExperimentFieldMappingSchema: z.ZodObject<{
|
|
3
|
+
destination: z.ZodEnum<{
|
|
4
|
+
input: "input";
|
|
5
|
+
output: "output";
|
|
6
|
+
expectedOutput: "expectedOutput";
|
|
7
|
+
evaluatorContext: "evaluatorContext";
|
|
8
|
+
}>;
|
|
9
|
+
path: z.ZodArray<z.ZodString>;
|
|
10
|
+
source: z.ZodEnum<{
|
|
11
|
+
input: "input";
|
|
12
|
+
output: "output";
|
|
13
|
+
expectedOutput: "expectedOutput";
|
|
14
|
+
evaluatorContext: "evaluatorContext";
|
|
15
|
+
}>;
|
|
16
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export declare const ExperimentFieldMappingsSchema: z.ZodArray<z.ZodObject<{
|
|
19
|
+
destination: z.ZodEnum<{
|
|
20
|
+
input: "input";
|
|
21
|
+
output: "output";
|
|
22
|
+
expectedOutput: "expectedOutput";
|
|
23
|
+
evaluatorContext: "evaluatorContext";
|
|
24
|
+
}>;
|
|
25
|
+
path: z.ZodArray<z.ZodString>;
|
|
26
|
+
source: z.ZodEnum<{
|
|
27
|
+
input: "input";
|
|
28
|
+
output: "output";
|
|
29
|
+
expectedOutput: "expectedOutput";
|
|
30
|
+
evaluatorContext: "evaluatorContext";
|
|
31
|
+
}>;
|
|
32
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
export type ExperimentFieldMapping = z.infer<typeof ExperimentFieldMappingSchema>;
|
|
35
|
+
export type ExperimentGradingFields = {
|
|
36
|
+
input: Record<string, unknown>;
|
|
37
|
+
output: Record<string, unknown>;
|
|
38
|
+
expectedOutput: Record<string, unknown> | null;
|
|
39
|
+
evaluatorContext: Record<string, unknown> | null;
|
|
40
|
+
};
|
|
41
|
+
/** Map only grader evidence. The caller must never use this projection as a policy input. */
|
|
42
|
+
export declare function mapExperimentGradingFields(fields: ExperimentGradingFields, raw: readonly ExperimentFieldMapping[]): ExperimentGradingFields;
|
|
43
|
+
//# sourceMappingURL=experiment-field-mappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment-field-mappings.d.ts","sourceRoot":"","sources":["../../../../../src/experiment-field-mappings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;kBAE9B,CAAC;AACZ,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;mBAMxC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,uBAAuB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAE5M,6FAA6F;AAC7F,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,uBAAuB,EAAE,GAAG,EAAE,SAAS,sBAAsB,EAAE,GAAG,uBAAuB,CAqB3I"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ExperimentAttemptGradeSchema: z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<"openpond.experimentAttemptGrade.v1">;
|
|
4
|
+
selectionHash: z.ZodString;
|
|
5
|
+
grades: z.ZodArray<z.ZodObject<{
|
|
6
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
passed: z.ZodBoolean;
|
|
8
|
+
rewardEligible: z.ZodBoolean;
|
|
9
|
+
failureClass: z.ZodNullable<z.ZodEnum<{
|
|
10
|
+
policy_failure: "policy_failure";
|
|
11
|
+
grader_failure: "grader_failure";
|
|
12
|
+
environment_failure: "environment_failure";
|
|
13
|
+
infrastructure_failure: "infrastructure_failure";
|
|
14
|
+
timeout: "timeout";
|
|
15
|
+
cancelled: "cancelled";
|
|
16
|
+
}>>;
|
|
17
|
+
gradingStatus: z.ZodEnum<{
|
|
18
|
+
scored: "scored";
|
|
19
|
+
unscorable: "unscorable";
|
|
20
|
+
not_configured: "not_configured";
|
|
21
|
+
}>;
|
|
22
|
+
schemaVersion: z.ZodLiteral<"openpond.taskGrade.v1">;
|
|
23
|
+
taskHash: z.ZodString;
|
|
24
|
+
evidenceHash: z.ZodString;
|
|
25
|
+
graderSetHash: z.ZodString;
|
|
26
|
+
components: z.ZodArray<z.ZodObject<{
|
|
27
|
+
schemaVersion: z.ZodLiteral<"openpond.graderEvidence.v1">;
|
|
28
|
+
graderId: z.ZodString;
|
|
29
|
+
graderVersion: z.ZodString;
|
|
30
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
passed: z.ZodBoolean;
|
|
32
|
+
rewardEligible: z.ZodBoolean;
|
|
33
|
+
failureClass: z.ZodNullable<z.ZodEnum<{
|
|
34
|
+
policy_failure: "policy_failure";
|
|
35
|
+
grader_failure: "grader_failure";
|
|
36
|
+
environment_failure: "environment_failure";
|
|
37
|
+
infrastructure_failure: "infrastructure_failure";
|
|
38
|
+
timeout: "timeout";
|
|
39
|
+
cancelled: "cancelled";
|
|
40
|
+
}>>;
|
|
41
|
+
feedback: z.ZodArray<z.ZodString>;
|
|
42
|
+
visibleEvidenceRefs: z.ZodArray<z.ZodString>;
|
|
43
|
+
privilegedEvidenceRefs: z.ZodArray<z.ZodString>;
|
|
44
|
+
modelJudgeReceipt: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
schemaVersion: z.ZodLiteral<"openpond.modelJudgeReceipt.v1">;
|
|
46
|
+
providerId: z.ZodString;
|
|
47
|
+
modelId: z.ZodString;
|
|
48
|
+
modelRevision: z.ZodNullable<z.ZodString>;
|
|
49
|
+
responseId: z.ZodNullable<z.ZodString>;
|
|
50
|
+
requestHash: z.ZodString;
|
|
51
|
+
responseHash: z.ZodString;
|
|
52
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strict>>;
|
|
56
|
+
contentHash: z.ZodString;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
contentHash: z.ZodString;
|
|
59
|
+
}, z.core.$strict>>;
|
|
60
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
61
|
+
passed: z.ZodBoolean;
|
|
62
|
+
rewardEligible: z.ZodBoolean;
|
|
63
|
+
gradingStatus: z.ZodEnum<{
|
|
64
|
+
unscorable: "unscorable";
|
|
65
|
+
scored: "scored";
|
|
66
|
+
not_configured: "not_configured";
|
|
67
|
+
}>;
|
|
68
|
+
failureClass: z.ZodNullable<z.ZodEnum<{
|
|
69
|
+
policy_failure: "policy_failure";
|
|
70
|
+
grader_failure: "grader_failure";
|
|
71
|
+
environment_failure: "environment_failure";
|
|
72
|
+
infrastructure_failure: "infrastructure_failure";
|
|
73
|
+
timeout: "timeout";
|
|
74
|
+
cancelled: "cancelled";
|
|
75
|
+
}>>;
|
|
76
|
+
contentHash: z.ZodString;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
export type ExperimentAttemptGrade = z.infer<typeof ExperimentAttemptGradeSchema>;
|
|
79
|
+
//# sourceMappingURL=experiment-grading-contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment-grading-contracts.d.ts","sourceRoot":"","sources":["../../../../../src/experiment-grading-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmBvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ExperimentScoringRequestSchema: z.ZodObject<{
|
|
3
|
+
operationId: z.ZodString;
|
|
4
|
+
execution: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
contentHash: z.ZodString;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
graders: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
contentHash: z.ZodString;
|
|
11
|
+
revision: z.ZodNumber;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
maximumCostUsd: z.ZodNumber;
|
|
14
|
+
mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
graderId: z.ZodString;
|
|
16
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
17
|
+
destination: z.ZodEnum<{
|
|
18
|
+
input: "input";
|
|
19
|
+
output: "output";
|
|
20
|
+
expectedOutput: "expectedOutput";
|
|
21
|
+
evaluatorContext: "evaluatorContext";
|
|
22
|
+
}>;
|
|
23
|
+
path: z.ZodArray<z.ZodString>;
|
|
24
|
+
source: z.ZodEnum<{
|
|
25
|
+
input: "input";
|
|
26
|
+
output: "output";
|
|
27
|
+
expectedOutput: "expectedOutput";
|
|
28
|
+
evaluatorContext: "evaluatorContext";
|
|
29
|
+
}>;
|
|
30
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
}, z.core.$strict>>>;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export type ExperimentScoringRequest = z.infer<typeof ExperimentScoringRequestSchema>;
|
|
35
|
+
export declare const ExperimentScoringPassSchema: z.ZodObject<{
|
|
36
|
+
schemaVersion: z.ZodLiteral<"openpond.experimentScoringPass.v1">;
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
teamId: z.ZodString;
|
|
39
|
+
revision: z.ZodNumber;
|
|
40
|
+
request: z.ZodObject<{
|
|
41
|
+
operationId: z.ZodString;
|
|
42
|
+
execution: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
contentHash: z.ZodString;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
graders: z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
contentHash: z.ZodString;
|
|
49
|
+
revision: z.ZodNumber;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
maximumCostUsd: z.ZodNumber;
|
|
52
|
+
mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
graderId: z.ZodString;
|
|
54
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
55
|
+
destination: z.ZodEnum<{
|
|
56
|
+
input: "input";
|
|
57
|
+
output: "output";
|
|
58
|
+
expectedOutput: "expectedOutput";
|
|
59
|
+
evaluatorContext: "evaluatorContext";
|
|
60
|
+
}>;
|
|
61
|
+
path: z.ZodArray<z.ZodString>;
|
|
62
|
+
source: z.ZodEnum<{
|
|
63
|
+
input: "input";
|
|
64
|
+
output: "output";
|
|
65
|
+
expectedOutput: "expectedOutput";
|
|
66
|
+
evaluatorContext: "evaluatorContext";
|
|
67
|
+
}>;
|
|
68
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
}, z.core.$strict>>>;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
graders: z.ZodArray<z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
version: z.ZodString;
|
|
75
|
+
contentHash: z.ZodString;
|
|
76
|
+
feedbackKey: z.ZodString;
|
|
77
|
+
release: z.ZodNullable<z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
revision: z.ZodNumber;
|
|
80
|
+
contentHash: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
83
|
+
destination: z.ZodEnum<{
|
|
84
|
+
input: "input";
|
|
85
|
+
output: "output";
|
|
86
|
+
expectedOutput: "expectedOutput";
|
|
87
|
+
evaluatorContext: "evaluatorContext";
|
|
88
|
+
}>;
|
|
89
|
+
path: z.ZodArray<z.ZodString>;
|
|
90
|
+
source: z.ZodEnum<{
|
|
91
|
+
input: "input";
|
|
92
|
+
output: "output";
|
|
93
|
+
expectedOutput: "expectedOutput";
|
|
94
|
+
evaluatorContext: "evaluatorContext";
|
|
95
|
+
}>;
|
|
96
|
+
sourcePath: z.ZodArray<z.ZodString>;
|
|
97
|
+
}, z.core.$strict>>>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
status: z.ZodEnum<{
|
|
100
|
+
failed: "failed";
|
|
101
|
+
completed: "completed";
|
|
102
|
+
cancelled: "cancelled";
|
|
103
|
+
running: "running";
|
|
104
|
+
cancelling: "cancelling";
|
|
105
|
+
queued: "queued";
|
|
106
|
+
}>;
|
|
107
|
+
totalCount: z.ZodNumber;
|
|
108
|
+
counts: z.ZodObject<{
|
|
109
|
+
pending: z.ZodNumber;
|
|
110
|
+
running: z.ZodNumber;
|
|
111
|
+
scored: z.ZodNumber;
|
|
112
|
+
unavailable: z.ZodNumber;
|
|
113
|
+
failed: z.ZodNumber;
|
|
114
|
+
cancelled: z.ZodNumber;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
resultAvailable: z.ZodBoolean;
|
|
117
|
+
createdAt: z.ZodISODateTime;
|
|
118
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
119
|
+
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
120
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
121
|
+
code: z.ZodString;
|
|
122
|
+
message: z.ZodString;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
contentHash: z.ZodString;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
export type ExperimentScoringPass = z.infer<typeof ExperimentScoringPassSchema>;
|
|
127
|
+
/** A pass grades owned output and carries no model-execution authority. */
|
|
128
|
+
export declare function verifyExperimentScoringPass(value: unknown): {
|
|
129
|
+
schemaVersion: "openpond.experimentScoringPass.v1";
|
|
130
|
+
id: string;
|
|
131
|
+
teamId: string;
|
|
132
|
+
revision: number;
|
|
133
|
+
request: {
|
|
134
|
+
operationId: string;
|
|
135
|
+
execution: {
|
|
136
|
+
id: string;
|
|
137
|
+
contentHash: string;
|
|
138
|
+
};
|
|
139
|
+
graders: {
|
|
140
|
+
id: string;
|
|
141
|
+
contentHash: string;
|
|
142
|
+
revision: number;
|
|
143
|
+
}[];
|
|
144
|
+
maximumCostUsd: number;
|
|
145
|
+
mappings?: {
|
|
146
|
+
graderId: string;
|
|
147
|
+
fields: {
|
|
148
|
+
destination: "input" | "output" | "expectedOutput" | "evaluatorContext";
|
|
149
|
+
path: string[];
|
|
150
|
+
source: "input" | "output" | "expectedOutput" | "evaluatorContext";
|
|
151
|
+
sourcePath: string[];
|
|
152
|
+
}[];
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
};
|
|
155
|
+
graders: {
|
|
156
|
+
id: string;
|
|
157
|
+
version: string;
|
|
158
|
+
contentHash: string;
|
|
159
|
+
feedbackKey: string;
|
|
160
|
+
release: {
|
|
161
|
+
id: string;
|
|
162
|
+
revision: number;
|
|
163
|
+
contentHash: string;
|
|
164
|
+
} | null;
|
|
165
|
+
mappings?: {
|
|
166
|
+
destination: "input" | "output" | "expectedOutput" | "evaluatorContext";
|
|
167
|
+
path: string[];
|
|
168
|
+
source: "input" | "output" | "expectedOutput" | "evaluatorContext";
|
|
169
|
+
sourcePath: string[];
|
|
170
|
+
}[] | undefined;
|
|
171
|
+
}[];
|
|
172
|
+
status: "failed" | "completed" | "cancelled" | "running" | "cancelling" | "queued";
|
|
173
|
+
totalCount: number;
|
|
174
|
+
counts: {
|
|
175
|
+
pending: number;
|
|
176
|
+
running: number;
|
|
177
|
+
scored: number;
|
|
178
|
+
unavailable: number;
|
|
179
|
+
failed: number;
|
|
180
|
+
cancelled: number;
|
|
181
|
+
};
|
|
182
|
+
resultAvailable: boolean;
|
|
183
|
+
createdAt: string;
|
|
184
|
+
startedAt: string | null;
|
|
185
|
+
completedAt: string | null;
|
|
186
|
+
error: {
|
|
187
|
+
code: string;
|
|
188
|
+
message: string;
|
|
189
|
+
} | null;
|
|
190
|
+
contentHash: string;
|
|
191
|
+
};
|
|
192
|
+
//# sourceMappingURL=experiment-scoring-contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment-scoring-contracts.d.ts","sourceRoot":"","sources":["../../../../../src/experiment-scoring-contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAgBtF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAiF,CAAC;AAC1H,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,2EAA2E;AAC3E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAezD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./experiment-contracts.js";
|
|
2
|
+
export * from "./experiment-client.js";
|
|
3
|
+
export * from "./experiment-scoring-contracts.js";
|
|
4
|
+
export * from "./experiment-field-mappings.js";
|
|
5
|
+
export * from "./experiment-grading-contracts.js";
|
|
6
|
+
//# sourceMappingURL=experiments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiments.d.ts","sourceRoot":"","sources":["../../../../../src/experiments.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { OpenPondProfileActionsClient } from "./profile-actions.js";
|
|
|
5
5
|
import { OpenPondWorkflowsClient } from "./workflows.js";
|
|
6
6
|
import type { OpenPondClientOptions } from "./types.js";
|
|
7
7
|
import { OpenPondLearningClient } from "./learning-client.js";
|
|
8
|
+
import { OpenPondExperimentsClient } from "./experiment-client.js";
|
|
8
9
|
export declare class OpenPondClient {
|
|
9
10
|
readonly sandboxes: OpenPondSandboxClient;
|
|
10
11
|
readonly work: OpenPondWorkClient;
|
|
@@ -12,6 +13,7 @@ export declare class OpenPondClient {
|
|
|
12
13
|
readonly actions: OpenPondProjectActionsClient;
|
|
13
14
|
readonly profileActions: OpenPondProfileActionsClient;
|
|
14
15
|
readonly learning: (scope: string) => OpenPondLearningClient;
|
|
16
|
+
readonly experiments: (teamId: string) => OpenPondExperimentsClient;
|
|
15
17
|
constructor(options: OpenPondClientOptions);
|
|
16
18
|
}
|
|
17
19
|
export declare function createOpenPondClient(options: OpenPondClientOptions): OpenPondClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAA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