@xiuper/mpp-core 0.0.2 → 1.0.1
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/Kotlin-DateTime-library-kotlinx-datetime.js +1796 -1796
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
- package/Xiuper-mpp-codegraph.js +240 -240
- package/kaml.js +639 -639
- package/koog-agents-agents-core.js +4606 -4606
- package/koog-agents-agents-tools.js +41 -41
- package/koog-agents-agents-utils.js +52 -52
- package/koog-http-client-http-client-core.js +4 -4
- package/koog-http-client-http-client-ktor.js +166 -166
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
- package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
- package/koog-prompt-prompt-llm.js +120 -120
- package/koog-prompt-prompt-markdown.js +30 -30
- package/koog-prompt-prompt-model.js +1055 -1055
- package/koog-prompt-prompt-structure.js +342 -342
- package/koog-utils.js +10 -10
- package/kotlin-kotlin-stdlib.js +453 -411
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging.js +116 -116
- package/kotlin-sdk-kotlin-sdk-client.js +260 -260
- package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +532 -654
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
- package/kotlinx-io-kotlinx-io-core.js +605 -605
- package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
- package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +163 -163
- package/ktor-ktor-client-core.js +2237 -2235
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +15 -15
- package/ktor-ktor-http-cio.js +725 -725
- package/ktor-ktor-http.js +805 -805
- package/ktor-ktor-io.js +766 -766
- package/ktor-ktor-network.js +285 -285
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +130 -130
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-server-cio.js +724 -724
- package/ktor-ktor-server-core.js +1793 -1793
- package/ktor-ktor-server-sse.js +125 -125
- package/ktor-ktor-sse.js +40 -40
- package/ktor-ktor-utils.js +690 -690
- package/ktor-ktor-websockets.js +49 -49
- package/markdown.js +1561 -1561
- package/okio-parent-okio.js +368 -368
- package/package.json +1 -1
- package/snakeyaml-engine-kmp.js +2005 -2005
- package/urlencoder-urlencoder-lib.js +43 -43
- package/xiuper-mpp-core.d.ts +45 -7
- package/xiuper-mpp-core.js +22405 -18664
- package/xiuper-mpp-core.js.map +1 -1
- package/autodev-mpp-core.d.ts +0 -1312
- package/autodev-mpp-core.js +0 -86483
- package/autodev-mpp-core.js.map +0 -1
|
@@ -31,50 +31,50 @@
|
|
|
31
31
|
'use strict';
|
|
32
32
|
//region block: imports
|
|
33
33
|
var imul = Math.imul;
|
|
34
|
-
var Exception = kotlin_kotlin.$_$.
|
|
34
|
+
var Exception = kotlin_kotlin.$_$.sk;
|
|
35
35
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.a2;
|
|
36
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
37
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
38
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
36
|
+
var captureStack = kotlin_kotlin.$_$.gd;
|
|
37
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
38
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.h;
|
|
40
|
-
var toString = kotlin_kotlin.$_$.
|
|
41
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
42
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
43
|
-
var equals = kotlin_kotlin.$_$.
|
|
44
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
40
|
+
var toString = kotlin_kotlin.$_$.km;
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
42
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
43
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
44
|
+
var toString_0 = kotlin_kotlin.$_$.df;
|
|
45
45
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
46
46
|
var MarkdownContentBuilder = kotlin_ai_koog_prompt_markdown.$_$.a;
|
|
47
47
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
48
48
|
var emptyMap = kotlin_kotlin.$_$.n8;
|
|
49
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
49
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dm;
|
|
50
50
|
var prompt = kotlin_ai_koog_prompt_model.$_$.a;
|
|
51
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
52
|
-
var Result = kotlin_kotlin.$_$.
|
|
53
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
54
|
-
var single = kotlin_kotlin.$_$.
|
|
51
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
52
|
+
var Result = kotlin_kotlin.$_$.bl;
|
|
53
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
54
|
+
var single = kotlin_kotlin.$_$.ta;
|
|
55
55
|
var Companion_instance = kotlin_kotlin.$_$.c6;
|
|
56
56
|
var Assistant = kotlin_ai_koog_prompt_model.$_$.l;
|
|
57
57
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
58
58
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.s3;
|
|
59
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
60
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
59
|
+
var createFailure = kotlin_kotlin.$_$.vl;
|
|
60
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
61
61
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
62
62
|
var KotlinLogging_instance = kotlin_io_github_oshai_kotlin_logging.$_$.b;
|
|
63
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
64
|
-
var until = kotlin_kotlin.$_$.
|
|
63
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
64
|
+
var until = kotlin_kotlin.$_$.rf;
|
|
65
65
|
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a4;
|
|
66
66
|
var LLMParams = kotlin_ai_koog_prompt_model.$_$.w;
|
|
67
67
|
var prompt_0 = kotlin_ai_koog_prompt_model.$_$.b;
|
|
68
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
68
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
69
69
|
var ClassDiscriminatorMode_POLYMORPHIC_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
70
70
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.x;
|
|
71
71
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.r;
|
|
72
72
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
73
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
73
|
+
var arrayOf = kotlin_kotlin.$_$.rl;
|
|
74
74
|
var createKType = kotlin_kotlin.$_$.c;
|
|
75
75
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j4;
|
|
76
76
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x3;
|
|
77
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
77
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
78
78
|
var text = kotlin_ai_koog_prompt_model.$_$.f1;
|
|
79
79
|
var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
80
80
|
var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
var contains = kotlin_kotlin.$_$.q7;
|
|
84
84
|
var emptyList = kotlin_kotlin.$_$.m8;
|
|
85
85
|
var Basic = kotlin_ai_koog_prompt_model.$_$.s;
|
|
86
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
86
|
+
var toMutableMap = kotlin_kotlin.$_$.pb;
|
|
87
87
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.u;
|
|
88
88
|
var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
|
|
89
89
|
var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
104
104
|
var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.s;
|
|
105
105
|
var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k;
|
|
106
|
-
var trimIndent = kotlin_kotlin.$_$.
|
|
106
|
+
var trimIndent = kotlin_kotlin.$_$.yj;
|
|
107
107
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
108
108
|
var KtMap = kotlin_kotlin.$_$.v6;
|
|
109
|
-
var plus = kotlin_kotlin.$_$.
|
|
109
|
+
var plus = kotlin_kotlin.$_$.ka;
|
|
110
110
|
var JsonArrayBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j;
|
|
111
111
|
var add = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.y;
|
|
112
112
|
var put_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j1;
|
|
@@ -115,17 +115,17 @@
|
|
|
115
115
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.t;
|
|
116
116
|
var LLMDescription = kotlin_ai_koog_agents_tools.$_$.a;
|
|
117
117
|
var firstOrNull = kotlin_kotlin.$_$.s8;
|
|
118
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
118
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
119
119
|
var getPolymorphicDescriptors = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
|
|
120
120
|
var OPEN = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o1;
|
|
121
|
-
var toList = kotlin_kotlin.$_$.
|
|
121
|
+
var toList = kotlin_kotlin.$_$.ib;
|
|
122
122
|
var getOrNull = kotlin_kotlin.$_$.z8;
|
|
123
123
|
var get_elementDescriptors = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
|
|
124
124
|
var SEALED = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1;
|
|
125
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
126
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
127
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
128
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
125
|
+
var sortedWith = kotlin_kotlin.$_$.wa;
|
|
126
|
+
var FunctionAdapter = kotlin_kotlin.$_$.cd;
|
|
127
|
+
var Comparator = kotlin_kotlin.$_$.nk;
|
|
128
|
+
var compareValues = kotlin_kotlin.$_$.zb;
|
|
129
129
|
var eachCount = kotlin_kotlin.$_$.l8;
|
|
130
130
|
var mapCapacity = kotlin_kotlin.$_$.v9;
|
|
131
131
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.b1;
|
|
@@ -175,15 +175,15 @@
|
|
|
175
175
|
}
|
|
176
176
|
var RegisteredStandardJsonSchemaGenerators;
|
|
177
177
|
function StructuredResponse(structure, message) {
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
178
|
+
this.h84_1 = structure;
|
|
179
|
+
this.i84_1 = message;
|
|
180
180
|
}
|
|
181
181
|
protoOf(StructuredResponse).toString = function () {
|
|
182
|
-
return 'StructuredResponse(structure=' + toString(this.
|
|
182
|
+
return 'StructuredResponse(structure=' + toString(this.h84_1) + ', message=' + this.i84_1.toString() + ')';
|
|
183
183
|
};
|
|
184
184
|
protoOf(StructuredResponse).hashCode = function () {
|
|
185
|
-
var result = this.
|
|
186
|
-
result = imul(result, 31) + this.
|
|
185
|
+
var result = this.h84_1 == null ? 0 : hashCode(this.h84_1);
|
|
186
|
+
result = imul(result, 31) + this.i84_1.hashCode() | 0;
|
|
187
187
|
return result;
|
|
188
188
|
};
|
|
189
189
|
protoOf(StructuredResponse).equals = function (other) {
|
|
@@ -192,18 +192,18 @@
|
|
|
192
192
|
if (!(other instanceof StructuredResponse))
|
|
193
193
|
return false;
|
|
194
194
|
var tmp0_other_with_cast = other instanceof StructuredResponse ? other : THROW_CCE();
|
|
195
|
-
if (!equals(this.
|
|
195
|
+
if (!equals(this.h84_1, tmp0_other_with_cast.h84_1))
|
|
196
196
|
return false;
|
|
197
|
-
if (!this.
|
|
197
|
+
if (!this.i84_1.equals(tmp0_other_with_cast.i84_1))
|
|
198
198
|
return false;
|
|
199
199
|
return true;
|
|
200
200
|
};
|
|
201
201
|
function structuredOutput($this, model) {
|
|
202
|
-
var tmp0_elvis_lhs = $this.
|
|
203
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? $this.
|
|
202
|
+
var tmp0_elvis_lhs = $this.k84_1.j2(model.g3h_1);
|
|
203
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? $this.j84_1 : tmp0_elvis_lhs;
|
|
204
204
|
var tmp;
|
|
205
205
|
if (tmp1_elvis_lhs == null) {
|
|
206
|
-
throw IllegalArgumentException_init_$Create$('No structure found for provider ' + toString_0(model.
|
|
206
|
+
throw IllegalArgumentException_init_$Create$('No structure found for provider ' + toString_0(model.g3h_1));
|
|
207
207
|
} else {
|
|
208
208
|
tmp = tmp1_elvis_lhs;
|
|
209
209
|
}
|
|
@@ -214,20 +214,20 @@
|
|
|
214
214
|
// Inline function 'ai.koog.prompt.markdown.markdown' call
|
|
215
215
|
// Inline function 'kotlin.apply' call
|
|
216
216
|
var this_0 = new MarkdownContentBuilder();
|
|
217
|
-
StructuredOutputPrompts_instance.
|
|
218
|
-
$this$user.
|
|
217
|
+
StructuredOutputPrompts_instance.n84(this_0, $mode.m84_1);
|
|
218
|
+
$this$user.g42(this_0.t3n());
|
|
219
219
|
return Unit_instance;
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
function StructuredOutputConfig$updatePrompt$lambda($mode) {
|
|
223
223
|
return function ($this$prompt) {
|
|
224
|
-
$this$prompt.
|
|
224
|
+
$this$prompt.e45(StructuredOutputConfig$updatePrompt$lambda$lambda($mode));
|
|
225
225
|
return Unit_instance;
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
function StructuredOutputConfig$updatePrompt$lambda_0($mode) {
|
|
229
229
|
return function ($this$withUpdatedParams) {
|
|
230
|
-
$this$withUpdatedParams.
|
|
230
|
+
$this$withUpdatedParams.w43_1 = $mode.r84_1.p84_1;
|
|
231
231
|
return Unit_instance;
|
|
232
232
|
};
|
|
233
233
|
}
|
|
@@ -235,34 +235,34 @@
|
|
|
235
235
|
default_0 = default_0 === VOID ? null : default_0;
|
|
236
236
|
byProvider = byProvider === VOID ? emptyMap() : byProvider;
|
|
237
237
|
fixingParser = fixingParser === VOID ? null : fixingParser;
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
238
|
+
this.j84_1 = default_0;
|
|
239
|
+
this.k84_1 = byProvider;
|
|
240
|
+
this.l84_1 = fixingParser;
|
|
241
241
|
}
|
|
242
|
-
protoOf(StructuredOutputConfig).
|
|
242
|
+
protoOf(StructuredOutputConfig).s84 = function (model, prompt_0) {
|
|
243
243
|
var mode = structuredOutput(this, model);
|
|
244
244
|
var tmp;
|
|
245
245
|
if (mode instanceof Manual) {
|
|
246
246
|
tmp = prompt(prompt_0, VOID, StructuredOutputConfig$updatePrompt$lambda(mode));
|
|
247
247
|
} else {
|
|
248
248
|
if (mode instanceof Native) {
|
|
249
|
-
tmp = prompt_0.
|
|
249
|
+
tmp = prompt_0.j44(StructuredOutputConfig$updatePrompt$lambda_0(mode));
|
|
250
250
|
} else {
|
|
251
251
|
noWhenBranchMatchedException();
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
return tmp;
|
|
255
255
|
};
|
|
256
|
-
protoOf(StructuredOutputConfig).
|
|
257
|
-
return structuredOutput(this, model).
|
|
256
|
+
protoOf(StructuredOutputConfig).t84 = function (model) {
|
|
257
|
+
return structuredOutput(this, model).u84();
|
|
258
258
|
};
|
|
259
259
|
protoOf(StructuredOutputConfig).toString = function () {
|
|
260
|
-
return 'StructuredOutputConfig(default=' + toString(this.
|
|
260
|
+
return 'StructuredOutputConfig(default=' + toString(this.j84_1) + ', byProvider=' + toString_0(this.k84_1) + ', fixingParser=' + toString(this.l84_1) + ')';
|
|
261
261
|
};
|
|
262
262
|
protoOf(StructuredOutputConfig).hashCode = function () {
|
|
263
|
-
var result = this.
|
|
264
|
-
result = imul(result, 31) + hashCode(this.
|
|
265
|
-
result = imul(result, 31) + (this.
|
|
263
|
+
var result = this.j84_1 == null ? 0 : hashCode(this.j84_1);
|
|
264
|
+
result = imul(result, 31) + hashCode(this.k84_1) | 0;
|
|
265
|
+
result = imul(result, 31) + (this.l84_1 == null ? 0 : hashCode(this.l84_1)) | 0;
|
|
266
266
|
return result;
|
|
267
267
|
};
|
|
268
268
|
protoOf(StructuredOutputConfig).equals = function (other) {
|
|
@@ -271,11 +271,11 @@
|
|
|
271
271
|
if (!(other instanceof StructuredOutputConfig))
|
|
272
272
|
return false;
|
|
273
273
|
var tmp0_other_with_cast = other instanceof StructuredOutputConfig ? other : THROW_CCE();
|
|
274
|
-
if (!equals(this.
|
|
274
|
+
if (!equals(this.j84_1, tmp0_other_with_cast.j84_1))
|
|
275
275
|
return false;
|
|
276
|
-
if (!equals(this.
|
|
276
|
+
if (!equals(this.k84_1, tmp0_other_with_cast.k84_1))
|
|
277
277
|
return false;
|
|
278
|
-
if (!equals(this.
|
|
278
|
+
if (!equals(this.l84_1, tmp0_other_with_cast.l84_1))
|
|
279
279
|
return false;
|
|
280
280
|
return true;
|
|
281
281
|
};
|
|
@@ -295,16 +295,16 @@
|
|
|
295
295
|
return tmp.fa();
|
|
296
296
|
}
|
|
297
297
|
function Manual(structure) {
|
|
298
|
-
this.
|
|
298
|
+
this.m84_1 = structure;
|
|
299
299
|
}
|
|
300
|
-
protoOf(Manual).
|
|
301
|
-
return this.
|
|
300
|
+
protoOf(Manual).u84 = function () {
|
|
301
|
+
return this.m84_1;
|
|
302
302
|
};
|
|
303
303
|
protoOf(Manual).toString = function () {
|
|
304
|
-
return 'Manual(structure=' + toString_0(this.
|
|
304
|
+
return 'Manual(structure=' + toString_0(this.m84_1) + ')';
|
|
305
305
|
};
|
|
306
306
|
protoOf(Manual).hashCode = function () {
|
|
307
|
-
return hashCode(this.
|
|
307
|
+
return hashCode(this.m84_1);
|
|
308
308
|
};
|
|
309
309
|
protoOf(Manual).equals = function (other) {
|
|
310
310
|
if (this === other)
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
if (!(other instanceof Manual))
|
|
313
313
|
return false;
|
|
314
314
|
var tmp0_other_with_cast = other instanceof Manual ? other : THROW_CCE();
|
|
315
|
-
if (!equals(this.
|
|
315
|
+
if (!equals(this.m84_1, tmp0_other_with_cast.m84_1))
|
|
316
316
|
return false;
|
|
317
317
|
return true;
|
|
318
318
|
};
|
|
@@ -320,10 +320,10 @@
|
|
|
320
320
|
}
|
|
321
321
|
function $executeStructuredCOROUTINE$(_this__u8e3s4, prompt, model, config, resultContinuation) {
|
|
322
322
|
CoroutineImpl.call(this, resultContinuation);
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
326
|
-
this.
|
|
323
|
+
this.d85_1 = _this__u8e3s4;
|
|
324
|
+
this.e85_1 = prompt;
|
|
325
|
+
this.f85_1 = model;
|
|
326
|
+
this.g85_1 = config;
|
|
327
327
|
}
|
|
328
328
|
protoOf($executeStructuredCOROUTINE$).fa = function () {
|
|
329
329
|
var suspendResult = this.z9_1;
|
|
@@ -333,34 +333,34 @@
|
|
|
333
333
|
switch (tmp) {
|
|
334
334
|
case 0:
|
|
335
335
|
this.y9_1 = 5;
|
|
336
|
-
this.
|
|
336
|
+
this.h85_1 = this.g85_1.s84(this.f85_1, this.e85_1);
|
|
337
337
|
this.x9_1 = 1;
|
|
338
|
-
suspendResult = this.
|
|
338
|
+
suspendResult = this.d85_1.p4e(this.h85_1, this.f85_1, VOID, this);
|
|
339
339
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
340
340
|
return suspendResult;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
continue $sm;
|
|
344
344
|
case 1:
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
345
|
+
this.i85_1 = suspendResult;
|
|
346
|
+
this.j85_1 = single(this.i85_1);
|
|
347
347
|
var tmp_0 = this;
|
|
348
|
-
tmp_0.
|
|
349
|
-
this.
|
|
348
|
+
tmp_0.k85_1 = this.d85_1;
|
|
349
|
+
this.l85_1 = this.k85_1;
|
|
350
350
|
this.y9_1 = 3;
|
|
351
351
|
var tmp_1 = this;
|
|
352
|
-
tmp_1.
|
|
352
|
+
tmp_1.n85_1 = Companion_instance;
|
|
353
353
|
var tmp_2 = this;
|
|
354
|
-
tmp_2.
|
|
355
|
-
this.
|
|
356
|
-
var tmp_3 = this.
|
|
354
|
+
tmp_2.o85_1 = this.l85_1;
|
|
355
|
+
this.p85_1 = this.o85_1;
|
|
356
|
+
var tmp_3 = this.j85_1;
|
|
357
357
|
if (!(tmp_3 instanceof Assistant)) {
|
|
358
|
-
var message = 'Response for structured output must be an assistant message, got ' + getKClassFromExpression(this.
|
|
358
|
+
var message = 'Response for structured output must be an assistant message, got ' + getKClassFromExpression(this.j85_1).zb() + ' instead';
|
|
359
359
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
this.x9_1 = 2;
|
|
363
|
-
suspendResult = parseResponseToStructuredResponse(this.
|
|
363
|
+
suspendResult = parseResponseToStructuredResponse(this.p85_1, this.j85_1, this.g85_1, this.f85_1, this);
|
|
364
364
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
365
365
|
return suspendResult;
|
|
366
366
|
}
|
|
@@ -369,8 +369,8 @@
|
|
|
369
369
|
case 2:
|
|
370
370
|
var tmp2 = suspendResult;
|
|
371
371
|
var tmp_4 = this;
|
|
372
|
-
this.
|
|
373
|
-
tmp_4.
|
|
372
|
+
this.n85_1;
|
|
373
|
+
tmp_4.m85_1 = _Result___init__impl__xyqfz8(tmp2);
|
|
374
374
|
this.y9_1 = 5;
|
|
375
375
|
this.x9_1 = 4;
|
|
376
376
|
continue $sm;
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
if (tmp_5 instanceof Error) {
|
|
381
381
|
var e = this.aa_1;
|
|
382
382
|
var tmp_6 = this;
|
|
383
|
-
tmp_6.
|
|
383
|
+
tmp_6.m85_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
384
384
|
this.x9_1 = 4;
|
|
385
385
|
continue $sm;
|
|
386
386
|
} else {
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
|
|
390
390
|
case 4:
|
|
391
391
|
this.y9_1 = 5;
|
|
392
|
-
return new Result(this.
|
|
392
|
+
return new Result(this.m85_1);
|
|
393
393
|
case 5:
|
|
394
394
|
throw this.aa_1;
|
|
395
395
|
}
|
|
@@ -406,10 +406,10 @@
|
|
|
406
406
|
};
|
|
407
407
|
function $parseResponseToStructuredResponseCOROUTINE$(_this__u8e3s4, response, config, model, resultContinuation) {
|
|
408
408
|
CoroutineImpl.call(this, resultContinuation);
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
409
|
+
this.y85_1 = _this__u8e3s4;
|
|
410
|
+
this.z85_1 = response;
|
|
411
|
+
this.a86_1 = config;
|
|
412
|
+
this.b86_1 = model;
|
|
413
413
|
}
|
|
414
414
|
protoOf($parseResponseToStructuredResponseCOROUTINE$).fa = function () {
|
|
415
415
|
var suspendResult = this.z9_1;
|
|
@@ -419,15 +419,15 @@
|
|
|
419
419
|
switch (tmp) {
|
|
420
420
|
case 0:
|
|
421
421
|
this.y9_1 = 3;
|
|
422
|
-
this.
|
|
423
|
-
this.
|
|
424
|
-
if (this.
|
|
425
|
-
this.
|
|
422
|
+
this.c86_1 = this.a86_1.t84(this.b86_1);
|
|
423
|
+
this.d86_1 = this.a86_1.l84_1;
|
|
424
|
+
if (this.d86_1 == null) {
|
|
425
|
+
this.e86_1 = null;
|
|
426
426
|
this.x9_1 = 2;
|
|
427
427
|
continue $sm;
|
|
428
428
|
} else {
|
|
429
429
|
this.x9_1 = 1;
|
|
430
|
-
suspendResult = this.
|
|
430
|
+
suspendResult = this.d86_1.i86(this.y85_1, this.c86_1, this.z85_1.v1j(), this);
|
|
431
431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
432
432
|
return suspendResult;
|
|
433
433
|
}
|
|
@@ -435,13 +435,13 @@
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
case 1:
|
|
438
|
-
this.
|
|
438
|
+
this.e86_1 = suspendResult;
|
|
439
439
|
this.x9_1 = 2;
|
|
440
440
|
continue $sm;
|
|
441
441
|
case 2:
|
|
442
|
-
var tmp1_elvis_lhs = this.
|
|
443
|
-
var structureResponse = tmp1_elvis_lhs == null ? this.
|
|
444
|
-
return new StructuredResponse(structureResponse, this.
|
|
442
|
+
var tmp1_elvis_lhs = this.e86_1;
|
|
443
|
+
var structureResponse = tmp1_elvis_lhs == null ? this.c86_1.dt(this.z85_1.v1j()) : tmp1_elvis_lhs;
|
|
444
|
+
return new StructuredResponse(structureResponse, this.z85_1);
|
|
445
445
|
case 3:
|
|
446
446
|
throw this.aa_1;
|
|
447
447
|
}
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
Companion_instance_0 = this;
|
|
480
480
|
var tmp = this;
|
|
481
481
|
var tmp_0 = KotlinLogging_instance;
|
|
482
|
-
tmp.
|
|
482
|
+
tmp.x86_1 = tmp_0.f3i(StructureFixingParser$Companion$logger$lambda);
|
|
483
483
|
}
|
|
484
484
|
var Companion_instance_0;
|
|
485
485
|
function Companion_getInstance() {
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
}
|
|
490
490
|
function StructureFixingParser$parse$lambda($attempt, this$0, $content) {
|
|
491
491
|
return function () {
|
|
492
|
-
return '' + $attempt + '/' + this$0.
|
|
492
|
+
return '' + $attempt + '/' + this$0.g86_1 + ': Try to parse LLM response content: <' + $content + '>';
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
495
|
function StructureFixingParser$parse$lambda_0($content) {
|
|
@@ -499,16 +499,16 @@
|
|
|
499
499
|
}
|
|
500
500
|
function StructureFixingParser$executeFixStructure$lambda(this$0, $content, $structure, $exception) {
|
|
501
501
|
return function ($this$prompt) {
|
|
502
|
-
this$0.
|
|
502
|
+
this$0.h86_1($this$prompt, $content, $structure, $exception);
|
|
503
503
|
return Unit_instance;
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
function $parseCOROUTINE$(_this__u8e3s4, executor, structure, content, resultContinuation) {
|
|
507
507
|
CoroutineImpl.call(this, resultContinuation);
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
508
|
+
this.g87_1 = _this__u8e3s4;
|
|
509
|
+
this.h87_1 = executor;
|
|
510
|
+
this.i87_1 = structure;
|
|
511
|
+
this.j87_1 = content;
|
|
512
512
|
}
|
|
513
513
|
protoOf($parseCOROUTINE$).fa = function () {
|
|
514
514
|
var suspendResult = this.z9_1;
|
|
@@ -518,38 +518,38 @@
|
|
|
518
518
|
switch (tmp) {
|
|
519
519
|
case 0:
|
|
520
520
|
this.y9_1 = 6;
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
521
|
+
this.k87_1 = this.j87_1;
|
|
522
|
+
this.l87_1 = null;
|
|
523
523
|
var tmp_0 = this;
|
|
524
|
-
tmp_0.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
524
|
+
tmp_0.m87_1 = this.g87_1.g86_1;
|
|
525
|
+
this.n87_1 = this.m87_1;
|
|
526
|
+
this.o87_1 = until(0, this.n87_1).p();
|
|
527
527
|
this.x9_1 = 1;
|
|
528
528
|
continue $sm;
|
|
529
529
|
case 1:
|
|
530
|
-
if (!this.
|
|
530
|
+
if (!this.o87_1.q()) {
|
|
531
531
|
this.x9_1 = 5;
|
|
532
532
|
continue $sm;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
this.
|
|
535
|
+
this.p87_1 = this.o87_1.r();
|
|
536
536
|
var tmp_1 = this;
|
|
537
|
-
tmp_1.
|
|
538
|
-
this.
|
|
537
|
+
tmp_1.q87_1 = this.p87_1;
|
|
538
|
+
this.r87_1 = this.q87_1;
|
|
539
539
|
this.y9_1 = 2;
|
|
540
|
-
var tmp_2 = Companion_getInstance().
|
|
541
|
-
tmp_2.
|
|
542
|
-
return this.
|
|
540
|
+
var tmp_2 = Companion_getInstance().x86_1;
|
|
541
|
+
tmp_2.t3h(StructureFixingParser$parse$lambda(this.r87_1, this.g87_1, this.j87_1));
|
|
542
|
+
return this.i87_1.dt(this.k87_1);
|
|
543
543
|
case 2:
|
|
544
544
|
this.y9_1 = 6;
|
|
545
545
|
var tmp_3 = this.aa_1;
|
|
546
546
|
if (tmp_3 instanceof SerializationException) {
|
|
547
|
-
this.
|
|
548
|
-
var tmp_4 = Companion_getInstance().
|
|
549
|
-
tmp_4.
|
|
550
|
-
this.
|
|
547
|
+
this.s87_1 = this.aa_1;
|
|
548
|
+
var tmp_4 = Companion_getInstance().x86_1;
|
|
549
|
+
tmp_4.y3h(this.s87_1, StructureFixingParser$parse$lambda_0(this.j87_1));
|
|
550
|
+
this.l87_1 = this.s87_1;
|
|
551
551
|
this.x9_1 = 3;
|
|
552
|
-
suspendResult = executeFixStructure(this.
|
|
552
|
+
suspendResult = executeFixStructure(this.g87_1, this.h87_1, this.j87_1, this.i87_1, this.s87_1, this);
|
|
553
553
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
554
554
|
return suspendResult;
|
|
555
555
|
}
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
}
|
|
560
560
|
|
|
561
561
|
case 3:
|
|
562
|
-
this.
|
|
562
|
+
this.k87_1 = suspendResult;
|
|
563
563
|
this.x9_1 = 4;
|
|
564
564
|
continue $sm;
|
|
565
565
|
case 4:
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
this.x9_1 = 1;
|
|
568
568
|
continue $sm;
|
|
569
569
|
case 5:
|
|
570
|
-
throw new LLMStructuredParsingError('Unable to parse structure after ' + this.
|
|
570
|
+
throw new LLMStructuredParsingError('Unable to parse structure after ' + this.g87_1.g86_1 + ' retries', this.l87_1);
|
|
571
571
|
case 6:
|
|
572
572
|
throw this.aa_1;
|
|
573
573
|
}
|
|
@@ -584,11 +584,11 @@
|
|
|
584
584
|
};
|
|
585
585
|
function $executeFixStructureCOROUTINE$(_this__u8e3s4, executor, content, structure, exception, resultContinuation) {
|
|
586
586
|
CoroutineImpl.call(this, resultContinuation);
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
587
|
+
this.r86_1 = _this__u8e3s4;
|
|
588
|
+
this.s86_1 = executor;
|
|
589
|
+
this.t86_1 = content;
|
|
590
|
+
this.u86_1 = structure;
|
|
591
|
+
this.v86_1 = exception;
|
|
592
592
|
}
|
|
593
593
|
protoOf($executeFixStructureCOROUTINE$).fa = function () {
|
|
594
594
|
var suspendResult = this.z9_1;
|
|
@@ -600,16 +600,16 @@
|
|
|
600
600
|
this.y9_1 = 2;
|
|
601
601
|
var tmp_0 = this;
|
|
602
602
|
var tmp_1;
|
|
603
|
-
if (this.
|
|
604
|
-
tmp_1 = this.
|
|
603
|
+
if (this.r86_1.f86_1.i3h_1.w(this.u86_1.p84_1.m49())) {
|
|
604
|
+
tmp_1 = this.u86_1.p84_1;
|
|
605
605
|
} else {
|
|
606
606
|
tmp_1 = null;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
var tmp_2 = new LLMParams(VOID, VOID, VOID, VOID, tmp_1);
|
|
610
|
-
tmp_0.
|
|
610
|
+
tmp_0.w86_1 = prompt_0('structure-fixing', tmp_2, VOID, StructureFixingParser$executeFixStructure$lambda(this.r86_1, this.t86_1, this.u86_1, this.v86_1));
|
|
611
611
|
this.x9_1 = 1;
|
|
612
|
-
suspendResult = this.
|
|
612
|
+
suspendResult = this.s86_1.p4e(this.w86_1, this.r86_1.f86_1, VOID, this);
|
|
613
613
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
614
614
|
return suspendResult;
|
|
615
615
|
}
|
|
@@ -639,22 +639,22 @@
|
|
|
639
639
|
while (true);
|
|
640
640
|
};
|
|
641
641
|
function StructuredData(id, schema, examples) {
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
642
|
+
this.o84_1 = id;
|
|
643
|
+
this.p84_1 = schema;
|
|
644
|
+
this.q84_1 = examples;
|
|
645
645
|
}
|
|
646
646
|
function StructuredOutputPrompts() {
|
|
647
647
|
}
|
|
648
|
-
protoOf(StructuredOutputPrompts).
|
|
648
|
+
protoOf(StructuredOutputPrompts).n84 = function (builder, structure) {
|
|
649
649
|
// Inline function 'kotlin.apply' call
|
|
650
650
|
// Inline function 'ai.koog.prompt.markdown.markdown' call
|
|
651
651
|
// Inline function 'kotlin.apply' call
|
|
652
652
|
var this_0 = new MarkdownContentBuilder();
|
|
653
|
-
this_0.
|
|
654
|
-
this_0.
|
|
655
|
-
this_0.
|
|
656
|
-
structure.
|
|
657
|
-
builder.
|
|
653
|
+
this_0.p4d('NEXT MESSAGE OUTPUT FORMAT');
|
|
654
|
+
this_0.f42('The output in the next message MUST ADHERE TO ' + structure.o84_1 + ' format.');
|
|
655
|
+
this_0.h4d();
|
|
656
|
+
structure.u87(this_0);
|
|
657
|
+
builder.g42(this_0.t3n());
|
|
658
658
|
return builder;
|
|
659
659
|
};
|
|
660
660
|
var StructuredOutputPrompts_instance;
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
return StructuredOutputPrompts_instance;
|
|
663
663
|
}
|
|
664
664
|
function structure(_this__u8e3s4, structure, value) {
|
|
665
|
-
_this__u8e3s4.
|
|
665
|
+
_this__u8e3s4.f42(structure.t87(value));
|
|
666
666
|
}
|
|
667
667
|
function JsonStructuredData$Companion$defaultJson$lambda($this$Json) {
|
|
668
668
|
$this$Json.e1i_1 = true;
|
|
@@ -682,53 +682,53 @@
|
|
|
682
682
|
function Companion_0() {
|
|
683
683
|
Companion_instance_1 = this;
|
|
684
684
|
var tmp = this;
|
|
685
|
-
tmp.
|
|
685
|
+
tmp.v87_1 = Json(VOID, JsonStructuredData$Companion$defaultJson$lambda);
|
|
686
686
|
}
|
|
687
|
-
protoOf(Companion_0).
|
|
687
|
+
protoOf(Companion_0).w87 = function (builder, structuredData) {
|
|
688
688
|
// Inline function 'kotlin.apply' call
|
|
689
689
|
// Inline function 'kotlin.with' call
|
|
690
690
|
// Inline function 'ai.koog.prompt.markdown.markdown' call
|
|
691
691
|
// Inline function 'kotlin.apply' call
|
|
692
692
|
var this_0 = new MarkdownContentBuilder();
|
|
693
|
-
this_0.
|
|
694
|
-
this_0.
|
|
695
|
-
this_0.
|
|
696
|
-
this_0.
|
|
697
|
-
var tmp0 = structuredData.
|
|
693
|
+
this_0.q4d('DEFINITION OF ' + structuredData.o84_1);
|
|
694
|
+
this_0.f42('The ' + structuredData.o84_1 + ' format is defined only and solely with JSON, without any additional characters, comments, backticks or anything similar.');
|
|
695
|
+
this_0.h4d();
|
|
696
|
+
this_0.f42('You must adhere to the following JSON schema:');
|
|
697
|
+
var tmp0 = structuredData.b88_1;
|
|
698
698
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
699
|
-
var value = structuredData.
|
|
699
|
+
var value = structuredData.p84_1.l49();
|
|
700
700
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
701
701
|
var this_1 = tmp0.lz();
|
|
702
702
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
703
703
|
var this_2 = serializer(this_1, createKType(getKClass(JsonObject), arrayOf([]), false));
|
|
704
704
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
705
705
|
var tmp$ret$2 = tmp0.gw(tmp$ret$1, value);
|
|
706
|
-
this_0.
|
|
707
|
-
this_0.
|
|
706
|
+
this_0.f42(tmp$ret$2);
|
|
707
|
+
this_0.h4d();
|
|
708
708
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
709
|
-
if (!structuredData.
|
|
710
|
-
this_0.
|
|
711
|
-
if (structuredData.
|
|
712
|
-
this_0.
|
|
709
|
+
if (!structuredData.q84_1.m()) {
|
|
710
|
+
this_0.r4d('EXAMPLES');
|
|
711
|
+
if (structuredData.q84_1.s() === 1) {
|
|
712
|
+
this_0.f42('Here is an example of a valid response:');
|
|
713
713
|
} else {
|
|
714
|
-
this_0.
|
|
714
|
+
this_0.f42('Here are some examples of valid responses:');
|
|
715
715
|
}
|
|
716
716
|
// Inline function 'kotlin.collections.forEach' call
|
|
717
|
-
var _iterator__ex2g4s = structuredData.
|
|
717
|
+
var _iterator__ex2g4s = structuredData.q84_1.p();
|
|
718
718
|
while (_iterator__ex2g4s.q()) {
|
|
719
719
|
var element = _iterator__ex2g4s.r();
|
|
720
|
-
this_0.
|
|
720
|
+
this_0.s4d(text(JsonStructuredData$Companion$defaultDefinitionPrompt$lambda(structuredData, element)), 'json');
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
this_0.
|
|
724
|
-
this_0.
|
|
725
|
-
this_0.
|
|
726
|
-
this_0.
|
|
727
|
-
builder.
|
|
723
|
+
this_0.p4d('RESULT');
|
|
724
|
+
this_0.f42('Provide ONLY the resulting JSON, WITHOUT ANY free text comments, backticks, or other symbols.');
|
|
725
|
+
this_0.f42('Output should start with { and end with }');
|
|
726
|
+
this_0.i42();
|
|
727
|
+
builder.g42(this_0.t3n());
|
|
728
728
|
return builder;
|
|
729
729
|
};
|
|
730
|
-
protoOf(Companion_0).
|
|
731
|
-
return new JsonStructuredData(id, schemaGenerator.
|
|
730
|
+
protoOf(Companion_0).d88 = function (id, serializer, json, schemaGenerator, descriptionOverrides, excludedProperties, examples, definitionPrompt) {
|
|
731
|
+
return new JsonStructuredData(id, schemaGenerator.e88(json, id, serializer, descriptionOverrides, excludedProperties), examples, serializer, json, definitionPrompt);
|
|
732
732
|
};
|
|
733
733
|
var Companion_instance_1;
|
|
734
734
|
function Companion_getInstance_0() {
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
}
|
|
739
739
|
function JsonStructuredData$Companion$defaultDefinitionPrompt$ref(p0) {
|
|
740
740
|
var l = function (_this__u8e3s4, p0_0) {
|
|
741
|
-
return p0.
|
|
741
|
+
return p0.w87(_this__u8e3s4, p0_0);
|
|
742
742
|
};
|
|
743
743
|
l.callableName = 'defaultDefinitionPrompt';
|
|
744
744
|
return l;
|
|
@@ -753,18 +753,18 @@
|
|
|
753
753
|
}
|
|
754
754
|
definitionPrompt = tmp;
|
|
755
755
|
StructuredData.call(this, id, schema, examples);
|
|
756
|
-
this.
|
|
757
|
-
this.
|
|
758
|
-
this.
|
|
756
|
+
this.a88_1 = serializer;
|
|
757
|
+
this.b88_1 = json;
|
|
758
|
+
this.c88_1 = definitionPrompt;
|
|
759
759
|
}
|
|
760
760
|
protoOf(JsonStructuredData).dt = function (text) {
|
|
761
|
-
return this.
|
|
761
|
+
return this.b88_1.hw(this.a88_1, text);
|
|
762
762
|
};
|
|
763
|
-
protoOf(JsonStructuredData).
|
|
764
|
-
return this.
|
|
763
|
+
protoOf(JsonStructuredData).t87 = function (value) {
|
|
764
|
+
return this.b88_1.gw(this.a88_1, value);
|
|
765
765
|
};
|
|
766
|
-
protoOf(JsonStructuredData).
|
|
767
|
-
return this.
|
|
766
|
+
protoOf(JsonStructuredData).u87 = function (builder) {
|
|
767
|
+
return this.c88_1(builder, this);
|
|
768
768
|
};
|
|
769
769
|
function Default() {
|
|
770
770
|
Default_instance = this;
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
Default_getInstance();
|
|
781
781
|
GenericJsonSchemaGenerator.call(this);
|
|
782
782
|
}
|
|
783
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
783
|
+
protoOf(BasicJsonSchemaGenerator).e88 = function (json, name, serializer, descriptionOverrides, excludedProperties) {
|
|
784
784
|
var descriptorKind = serializer.fv().uw();
|
|
785
785
|
// Inline function 'kotlin.require' call
|
|
786
786
|
if (!contains(listOf([CLASS_getInstance(), OBJECT_getInstance(), MAP_getInstance()]), descriptorKind)) {
|
|
@@ -793,12 +793,12 @@
|
|
|
793
793
|
// Inline function 'kotlin.collections.listOf' call
|
|
794
794
|
var tmp$ret$3 = emptyList();
|
|
795
795
|
var context = new GenerationContext(json, tmp, tmp_0, tmp$ret$3, descriptionOverrides, excludedProperties, null);
|
|
796
|
-
var schema = this.
|
|
796
|
+
var schema = this.o88(context);
|
|
797
797
|
return new Basic(name, schema);
|
|
798
798
|
};
|
|
799
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
799
|
+
protoOf(BasicJsonSchemaGenerator).f88 = function (_this__u8e3s4, context) {
|
|
800
800
|
var schema = toMutableMap(_this__u8e3s4);
|
|
801
|
-
if (context.
|
|
801
|
+
if (context.s88_1.qw()) {
|
|
802
802
|
var tmp2 = 'nullable';
|
|
803
803
|
// Inline function 'kotlin.collections.set' call
|
|
804
804
|
var value = JsonPrimitive(true);
|
|
@@ -806,64 +806,64 @@
|
|
|
806
806
|
}
|
|
807
807
|
return new JsonObject(schema);
|
|
808
808
|
};
|
|
809
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
810
|
-
return this.
|
|
809
|
+
protoOf(BasicJsonSchemaGenerator).g88 = function (context) {
|
|
810
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).g88.call(this, context), context);
|
|
811
811
|
};
|
|
812
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
813
|
-
return this.
|
|
812
|
+
protoOf(BasicJsonSchemaGenerator).h88 = function (context) {
|
|
813
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).h88.call(this, context), context);
|
|
814
814
|
};
|
|
815
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
816
|
-
return this.
|
|
815
|
+
protoOf(BasicJsonSchemaGenerator).i88 = function (context) {
|
|
816
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).i88.call(this, context), context);
|
|
817
817
|
};
|
|
818
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
819
|
-
return this.
|
|
818
|
+
protoOf(BasicJsonSchemaGenerator).j88 = function (context) {
|
|
819
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).j88.call(this, context), context);
|
|
820
820
|
};
|
|
821
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
822
|
-
return this.
|
|
821
|
+
protoOf(BasicJsonSchemaGenerator).k88 = function (context) {
|
|
822
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).k88.call(this, context), context);
|
|
823
823
|
};
|
|
824
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
825
|
-
return this.
|
|
824
|
+
protoOf(BasicJsonSchemaGenerator).l88 = function (context) {
|
|
825
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).l88.call(this, context), context);
|
|
826
826
|
};
|
|
827
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
828
|
-
return this.
|
|
827
|
+
protoOf(BasicJsonSchemaGenerator).m88 = function (context) {
|
|
828
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).m88.call(this, context), context);
|
|
829
829
|
};
|
|
830
|
-
protoOf(BasicJsonSchemaGenerator).
|
|
831
|
-
return this.
|
|
830
|
+
protoOf(BasicJsonSchemaGenerator).n88 = function (context) {
|
|
831
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).n88.call(this, context), context);
|
|
832
832
|
};
|
|
833
833
|
function GenericJsonSchemaGenerator() {
|
|
834
834
|
JsonSchemaGenerator.call(this);
|
|
835
835
|
}
|
|
836
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
837
|
-
var tmp0_subject = context.
|
|
836
|
+
protoOf(GenericJsonSchemaGenerator).o88 = function (context) {
|
|
837
|
+
var tmp0_subject = context.s88_1.uw();
|
|
838
838
|
var tmp;
|
|
839
839
|
if (equals(tmp0_subject, STRING_getInstance())) {
|
|
840
|
-
tmp = this.
|
|
840
|
+
tmp = this.g88(context);
|
|
841
841
|
} else {
|
|
842
842
|
if (equals(tmp0_subject, BOOLEAN_getInstance())) {
|
|
843
|
-
tmp = this.
|
|
843
|
+
tmp = this.h88(context);
|
|
844
844
|
} else {
|
|
845
845
|
if (equals(tmp0_subject, BYTE_getInstance()) || equals(tmp0_subject, SHORT_getInstance()) || (equals(tmp0_subject, INT_getInstance()) || equals(tmp0_subject, LONG_getInstance()))) {
|
|
846
|
-
tmp = this.
|
|
846
|
+
tmp = this.i88(context);
|
|
847
847
|
} else {
|
|
848
848
|
if (equals(tmp0_subject, FLOAT_getInstance()) || equals(tmp0_subject, DOUBLE_getInstance())) {
|
|
849
|
-
tmp = this.
|
|
849
|
+
tmp = this.j88(context);
|
|
850
850
|
} else {
|
|
851
851
|
if (equals(tmp0_subject, ENUM_getInstance())) {
|
|
852
|
-
tmp = this.
|
|
852
|
+
tmp = this.k88(context);
|
|
853
853
|
} else {
|
|
854
854
|
if (equals(tmp0_subject, LIST_getInstance())) {
|
|
855
|
-
tmp = this.
|
|
855
|
+
tmp = this.l88(context);
|
|
856
856
|
} else {
|
|
857
857
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
858
|
-
tmp = this.
|
|
858
|
+
tmp = this.m88(context);
|
|
859
859
|
} else {
|
|
860
860
|
if (equals(tmp0_subject, CLASS_getInstance()) || equals(tmp0_subject, OBJECT_getInstance())) {
|
|
861
|
-
tmp = this.
|
|
861
|
+
tmp = this.n88(context);
|
|
862
862
|
} else {
|
|
863
863
|
if (tmp0_subject instanceof PolymorphicKind) {
|
|
864
|
-
tmp = this.
|
|
864
|
+
tmp = this.q88(context);
|
|
865
865
|
} else {
|
|
866
|
-
throw IllegalArgumentException_init_$Create$('Encountered unsupported type while generating JSON schema: ' + context.
|
|
866
|
+
throw IllegalArgumentException_init_$Create$('Encountered unsupported type while generating JSON schema: ' + context.s88_1.uw().toString());
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
}
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
}
|
|
876
876
|
return tmp;
|
|
877
877
|
};
|
|
878
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
878
|
+
protoOf(GenericJsonSchemaGenerator).p88 = function (_this__u8e3s4, description) {
|
|
879
879
|
if (description == null)
|
|
880
880
|
null;
|
|
881
881
|
else {
|
|
@@ -883,40 +883,40 @@
|
|
|
883
883
|
put(_this__u8e3s4, 'description', description);
|
|
884
884
|
}
|
|
885
885
|
};
|
|
886
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
886
|
+
protoOf(GenericJsonSchemaGenerator).g88 = function (context) {
|
|
887
887
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
888
888
|
var builder = new JsonObjectBuilder();
|
|
889
889
|
put(builder, 'type', 'string');
|
|
890
|
-
this.
|
|
890
|
+
this.p88(builder, context.x88_1);
|
|
891
891
|
return builder.s1i();
|
|
892
892
|
};
|
|
893
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
893
|
+
protoOf(GenericJsonSchemaGenerator).h88 = function (context) {
|
|
894
894
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
895
895
|
var builder = new JsonObjectBuilder();
|
|
896
896
|
put(builder, 'type', 'boolean');
|
|
897
|
-
this.
|
|
897
|
+
this.p88(builder, context.x88_1);
|
|
898
898
|
return builder.s1i();
|
|
899
899
|
};
|
|
900
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
900
|
+
protoOf(GenericJsonSchemaGenerator).i88 = function (context) {
|
|
901
901
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
902
902
|
var builder = new JsonObjectBuilder();
|
|
903
903
|
put(builder, 'type', 'integer');
|
|
904
|
-
this.
|
|
904
|
+
this.p88(builder, context.x88_1);
|
|
905
905
|
return builder.s1i();
|
|
906
906
|
};
|
|
907
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
907
|
+
protoOf(GenericJsonSchemaGenerator).j88 = function (context) {
|
|
908
908
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
909
909
|
var builder = new JsonObjectBuilder();
|
|
910
910
|
put(builder, 'type', 'number');
|
|
911
|
-
this.
|
|
911
|
+
this.p88(builder, context.x88_1);
|
|
912
912
|
return builder.s1i();
|
|
913
913
|
};
|
|
914
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
914
|
+
protoOf(GenericJsonSchemaGenerator).k88 = function (context) {
|
|
915
915
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
916
916
|
var builder = new JsonObjectBuilder();
|
|
917
917
|
put(builder, 'type', 'string');
|
|
918
918
|
// Inline function 'kotlin.collections.map' call
|
|
919
|
-
var this_0 = get_elementNames(context.
|
|
919
|
+
var this_0 = get_elementNames(context.s88_1);
|
|
920
920
|
// Inline function 'kotlin.collections.mapTo' call
|
|
921
921
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
922
922
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -926,40 +926,40 @@
|
|
|
926
926
|
destination.h(tmp$ret$0);
|
|
927
927
|
}
|
|
928
928
|
builder.g1k('enum', new JsonArray(destination));
|
|
929
|
-
this.
|
|
929
|
+
this.p88(builder, context.x88_1);
|
|
930
930
|
return builder.s1i();
|
|
931
931
|
};
|
|
932
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
932
|
+
protoOf(GenericJsonSchemaGenerator).l88 = function (context) {
|
|
933
933
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
934
934
|
var builder = new JsonObjectBuilder();
|
|
935
|
-
var itemDescriptor = context.
|
|
935
|
+
var itemDescriptor = context.s88_1.bx(0);
|
|
936
936
|
put(builder, 'type', 'array');
|
|
937
|
-
builder.g1k('items', this.
|
|
938
|
-
this.
|
|
937
|
+
builder.g1k('items', this.o88(context.y88(VOID, itemDescriptor, VOID, VOID, VOID, VOID, null)));
|
|
938
|
+
this.p88(builder, context.x88_1);
|
|
939
939
|
return builder.s1i();
|
|
940
940
|
};
|
|
941
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
941
|
+
protoOf(GenericJsonSchemaGenerator).m88 = function (context) {
|
|
942
942
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
943
943
|
var builder = new JsonObjectBuilder();
|
|
944
|
-
var keyDescriptor = context.
|
|
945
|
-
var valueDescriptor = context.
|
|
944
|
+
var keyDescriptor = context.s88_1.bx(0);
|
|
945
|
+
var valueDescriptor = context.s88_1.bx(1);
|
|
946
946
|
// Inline function 'kotlin.require' call
|
|
947
947
|
if (!equals(keyDescriptor.uw(), STRING_getInstance())) {
|
|
948
948
|
var message = 'JSON schema only supports string keys in maps, found: ' + keyDescriptor.fw();
|
|
949
949
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
950
950
|
}
|
|
951
951
|
put(builder, 'type', 'object');
|
|
952
|
-
builder.g1k('additionalProperties', this.
|
|
953
|
-
this.
|
|
952
|
+
builder.g1k('additionalProperties', this.o88(context.y88(VOID, valueDescriptor, VOID, VOID, VOID, VOID, null)));
|
|
953
|
+
this.p88(builder, context.x88_1);
|
|
954
954
|
return builder.s1i();
|
|
955
955
|
};
|
|
956
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
956
|
+
protoOf(GenericJsonSchemaGenerator).n88 = function (context) {
|
|
957
957
|
// Inline function 'kotlin.check' call
|
|
958
|
-
if (!!context.
|
|
958
|
+
if (!!context.u88_1.w(context.s88_1)) {
|
|
959
959
|
var tmp = getKClassFromExpression(this).zb();
|
|
960
|
-
var tmp_0 = context.
|
|
960
|
+
var tmp_0 = context.s88_1.fw();
|
|
961
961
|
// Inline function 'kotlin.collections.map' call
|
|
962
|
-
var this_0 = context.
|
|
962
|
+
var this_0 = context.u88_1;
|
|
963
963
|
// Inline function 'kotlin.collections.mapTo' call
|
|
964
964
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
965
965
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -972,46 +972,46 @@
|
|
|
972
972
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
973
973
|
}
|
|
974
974
|
var tmp_1;
|
|
975
|
-
var tmp0 = context.
|
|
975
|
+
var tmp0 = context.t88_1;
|
|
976
976
|
// Inline function 'kotlin.collections.contains' call
|
|
977
977
|
// Inline function 'kotlin.collections.containsKey' call
|
|
978
|
-
var key = context.
|
|
978
|
+
var key = context.s88_1;
|
|
979
979
|
if ((isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).h2(key)) {
|
|
980
|
-
tmp_1 = getValue(context.
|
|
980
|
+
tmp_1 = getValue(context.t88_1, context.s88_1);
|
|
981
981
|
} else {
|
|
982
982
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
983
983
|
var builder = new JsonObjectBuilder();
|
|
984
984
|
var inductionVariable = 0;
|
|
985
|
-
var last = context.
|
|
985
|
+
var last = context.s88_1.ww();
|
|
986
986
|
if (inductionVariable < last)
|
|
987
987
|
$l$loop: do {
|
|
988
988
|
var i = inductionVariable;
|
|
989
989
|
inductionVariable = inductionVariable + 1 | 0;
|
|
990
|
-
var propertyName = context.
|
|
991
|
-
var propertyDescriptor = context.
|
|
992
|
-
var lookupKey = context.
|
|
993
|
-
if (context.
|
|
994
|
-
if (!context.
|
|
990
|
+
var propertyName = context.s88_1.yw(i);
|
|
991
|
+
var propertyDescriptor = context.s88_1.bx(i);
|
|
992
|
+
var lookupKey = context.s88_1.fw() + '.' + propertyName;
|
|
993
|
+
if (context.w88_1.w(lookupKey)) {
|
|
994
|
+
if (!context.s88_1.cx(i)) {
|
|
995
995
|
throw IllegalArgumentException_init_$Create$("Property '" + lookupKey + "' is marked as excluded, but it is required in the schema.");
|
|
996
996
|
}
|
|
997
997
|
continue $l$loop;
|
|
998
998
|
}
|
|
999
|
-
var tmp_2 = plus(context.
|
|
1000
|
-
var tmp0_elvis_lhs = context.
|
|
1001
|
-
builder.g1k(propertyName, this.
|
|
999
|
+
var tmp_2 = plus(context.u88_1, context.s88_1);
|
|
1000
|
+
var tmp0_elvis_lhs = context.z88(i);
|
|
1001
|
+
builder.g1k(propertyName, this.o88(context.y88(VOID, propertyDescriptor, VOID, tmp_2, VOID, VOID, tmp0_elvis_lhs == null ? context.y88(VOID, propertyDescriptor).a89() : tmp0_elvis_lhs)));
|
|
1002
1002
|
}
|
|
1003
1003
|
while (inductionVariable < last);
|
|
1004
1004
|
var properties = builder.s1i();
|
|
1005
1005
|
// Inline function 'kotlinx.serialization.json.buildJsonArray' call
|
|
1006
1006
|
var builder_0 = new JsonArrayBuilder();
|
|
1007
1007
|
var inductionVariable_0 = 0;
|
|
1008
|
-
var last_0 = context.
|
|
1008
|
+
var last_0 = context.s88_1.ww();
|
|
1009
1009
|
if (inductionVariable_0 < last_0)
|
|
1010
1010
|
do {
|
|
1011
1011
|
var i_0 = inductionVariable_0;
|
|
1012
1012
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1013
|
-
if (!context.
|
|
1014
|
-
add(builder_0, context.
|
|
1013
|
+
if (!context.s88_1.cx(i_0)) {
|
|
1014
|
+
add(builder_0, context.s88_1.yw(i_0));
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
while (inductionVariable_0 < last_0);
|
|
@@ -1024,9 +1024,9 @@
|
|
|
1024
1024
|
put_0(builder_1, 'additionalProperties', false);
|
|
1025
1025
|
// Inline function 'kotlin.also' call
|
|
1026
1026
|
var this_1 = builder_1.s1i();
|
|
1027
|
-
var tmp0_0 = context.
|
|
1027
|
+
var tmp0_0 = context.t88_1;
|
|
1028
1028
|
// Inline function 'kotlin.collections.set' call
|
|
1029
|
-
var key_0 = context.
|
|
1029
|
+
var key_0 = context.s88_1;
|
|
1030
1030
|
tmp0_0.r2(key_0, this_1);
|
|
1031
1031
|
tmp_1 = this_1;
|
|
1032
1032
|
}
|
|
@@ -1044,25 +1044,25 @@
|
|
|
1044
1044
|
var value = element.b1();
|
|
1045
1045
|
builder_2.g1k(key_1, value);
|
|
1046
1046
|
}
|
|
1047
|
-
this.
|
|
1047
|
+
this.p88(builder_2, context.x88_1);
|
|
1048
1048
|
return builder_2.s1i();
|
|
1049
1049
|
};
|
|
1050
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
1050
|
+
protoOf(GenericJsonSchemaGenerator).q88 = function (context) {
|
|
1051
1051
|
throw UnsupportedOperationException_init_$Create$('Polymorphic types are not supported by ' + getKClassFromExpression(this).zb() + ' generator');
|
|
1052
1052
|
};
|
|
1053
1053
|
function GenerationContext(json, descriptor, processedTypeDefs, currentDefPath, descriptionOverrides, excludedProperties, currentDescription) {
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1054
|
+
this.r88_1 = json;
|
|
1055
|
+
this.s88_1 = descriptor;
|
|
1056
|
+
this.t88_1 = processedTypeDefs;
|
|
1057
|
+
this.u88_1 = currentDefPath;
|
|
1058
|
+
this.v88_1 = descriptionOverrides;
|
|
1059
|
+
this.w88_1 = excludedProperties;
|
|
1060
|
+
this.x88_1 = currentDescription;
|
|
1061
1061
|
}
|
|
1062
|
-
protoOf(GenerationContext).
|
|
1063
|
-
var typeDescriptionOverride = this.
|
|
1062
|
+
protoOf(GenerationContext).a89 = function () {
|
|
1063
|
+
var typeDescriptionOverride = this.v88_1.j2(this.s88_1.fw());
|
|
1064
1064
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1065
|
-
var tmp0 = this.
|
|
1065
|
+
var tmp0 = this.s88_1.xw();
|
|
1066
1066
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1067
1067
|
var destination = ArrayList_init_$Create$_0();
|
|
1068
1068
|
var _iterator__ex2g4s = tmp0.p();
|
|
@@ -1073,14 +1073,14 @@
|
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
1075
|
var tmp0_safe_receiver = firstOrNull(destination);
|
|
1076
|
-
var typeDescriptionAnnotation = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1076
|
+
var typeDescriptionAnnotation = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n4e_1;
|
|
1077
1077
|
return typeDescriptionOverride == null ? typeDescriptionAnnotation : typeDescriptionOverride;
|
|
1078
1078
|
};
|
|
1079
|
-
protoOf(GenerationContext).
|
|
1080
|
-
var elementName = this.
|
|
1081
|
-
var elementAnnotations = this.
|
|
1082
|
-
var lookupKey = this.
|
|
1083
|
-
var elementDescriptionOverride = this.
|
|
1079
|
+
protoOf(GenerationContext).z88 = function (index) {
|
|
1080
|
+
var elementName = this.s88_1.yw(index);
|
|
1081
|
+
var elementAnnotations = this.s88_1.ax(index);
|
|
1082
|
+
var lookupKey = this.s88_1.fw() + '.' + elementName;
|
|
1083
|
+
var elementDescriptionOverride = this.v88_1.j2(lookupKey);
|
|
1084
1084
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
1085
1085
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
1086
1086
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -1092,33 +1092,33 @@
|
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
var tmp0_safe_receiver = firstOrNull(destination);
|
|
1095
|
-
var elementDescriptionAnnotation = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1095
|
+
var elementDescriptionAnnotation = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n4e_1;
|
|
1096
1096
|
return elementDescriptionOverride == null ? elementDescriptionAnnotation : elementDescriptionOverride;
|
|
1097
1097
|
};
|
|
1098
|
-
protoOf(GenerationContext).
|
|
1098
|
+
protoOf(GenerationContext).b89 = function (json, descriptor, processedTypeDefs, currentDefPath, descriptionOverrides, excludedProperties, currentDescription) {
|
|
1099
1099
|
return new GenerationContext(json, descriptor, processedTypeDefs, currentDefPath, descriptionOverrides, excludedProperties, currentDescription);
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(GenerationContext).
|
|
1102
|
-
json = json === VOID ? this.
|
|
1103
|
-
descriptor = descriptor === VOID ? this.
|
|
1104
|
-
processedTypeDefs = processedTypeDefs === VOID ? this.
|
|
1105
|
-
currentDefPath = currentDefPath === VOID ? this.
|
|
1106
|
-
descriptionOverrides = descriptionOverrides === VOID ? this.
|
|
1107
|
-
excludedProperties = excludedProperties === VOID ? this.
|
|
1108
|
-
currentDescription = currentDescription === VOID ? this.
|
|
1109
|
-
return $super === VOID ? this.
|
|
1101
|
+
protoOf(GenerationContext).y88 = function (json, descriptor, processedTypeDefs, currentDefPath, descriptionOverrides, excludedProperties, currentDescription, $super) {
|
|
1102
|
+
json = json === VOID ? this.r88_1 : json;
|
|
1103
|
+
descriptor = descriptor === VOID ? this.s88_1 : descriptor;
|
|
1104
|
+
processedTypeDefs = processedTypeDefs === VOID ? this.t88_1 : processedTypeDefs;
|
|
1105
|
+
currentDefPath = currentDefPath === VOID ? this.u88_1 : currentDefPath;
|
|
1106
|
+
descriptionOverrides = descriptionOverrides === VOID ? this.v88_1 : descriptionOverrides;
|
|
1107
|
+
excludedProperties = excludedProperties === VOID ? this.w88_1 : excludedProperties;
|
|
1108
|
+
currentDescription = currentDescription === VOID ? this.x88_1 : currentDescription;
|
|
1109
|
+
return $super === VOID ? this.b89(json, descriptor, processedTypeDefs, currentDefPath, descriptionOverrides, excludedProperties, currentDescription) : $super.b89.call(this, json, descriptor, processedTypeDefs, currentDefPath, descriptionOverrides, excludedProperties, currentDescription);
|
|
1110
1110
|
};
|
|
1111
1111
|
protoOf(GenerationContext).toString = function () {
|
|
1112
|
-
return 'GenerationContext(json=' + toString_0(this.
|
|
1112
|
+
return 'GenerationContext(json=' + toString_0(this.r88_1) + ', descriptor=' + toString_0(this.s88_1) + ', processedTypeDefs=' + toString_0(this.t88_1) + ', currentDefPath=' + toString_0(this.u88_1) + ', descriptionOverrides=' + toString_0(this.v88_1) + ', excludedProperties=' + toString_0(this.w88_1) + ', currentDescription=' + this.x88_1 + ')';
|
|
1113
1113
|
};
|
|
1114
1114
|
protoOf(GenerationContext).hashCode = function () {
|
|
1115
|
-
var result = hashCode(this.
|
|
1116
|
-
result = imul(result, 31) + hashCode(this.
|
|
1117
|
-
result = imul(result, 31) + hashCode(this.
|
|
1118
|
-
result = imul(result, 31) + hashCode(this.
|
|
1119
|
-
result = imul(result, 31) + hashCode(this.
|
|
1120
|
-
result = imul(result, 31) + hashCode(this.
|
|
1121
|
-
result = imul(result, 31) + (this.
|
|
1115
|
+
var result = hashCode(this.r88_1);
|
|
1116
|
+
result = imul(result, 31) + hashCode(this.s88_1) | 0;
|
|
1117
|
+
result = imul(result, 31) + hashCode(this.t88_1) | 0;
|
|
1118
|
+
result = imul(result, 31) + hashCode(this.u88_1) | 0;
|
|
1119
|
+
result = imul(result, 31) + hashCode(this.v88_1) | 0;
|
|
1120
|
+
result = imul(result, 31) + hashCode(this.w88_1) | 0;
|
|
1121
|
+
result = imul(result, 31) + (this.x88_1 == null ? 0 : getStringHashCode(this.x88_1)) | 0;
|
|
1122
1122
|
return result;
|
|
1123
1123
|
};
|
|
1124
1124
|
protoOf(GenerationContext).equals = function (other) {
|
|
@@ -1127,19 +1127,19 @@
|
|
|
1127
1127
|
if (!(other instanceof GenerationContext))
|
|
1128
1128
|
return false;
|
|
1129
1129
|
var tmp0_other_with_cast = other instanceof GenerationContext ? other : THROW_CCE();
|
|
1130
|
-
if (!equals(this.
|
|
1130
|
+
if (!equals(this.r88_1, tmp0_other_with_cast.r88_1))
|
|
1131
1131
|
return false;
|
|
1132
|
-
if (!equals(this.
|
|
1132
|
+
if (!equals(this.s88_1, tmp0_other_with_cast.s88_1))
|
|
1133
1133
|
return false;
|
|
1134
|
-
if (!equals(this.
|
|
1134
|
+
if (!equals(this.t88_1, tmp0_other_with_cast.t88_1))
|
|
1135
1135
|
return false;
|
|
1136
|
-
if (!equals(this.
|
|
1136
|
+
if (!equals(this.u88_1, tmp0_other_with_cast.u88_1))
|
|
1137
1137
|
return false;
|
|
1138
|
-
if (!equals(this.
|
|
1138
|
+
if (!equals(this.v88_1, tmp0_other_with_cast.v88_1))
|
|
1139
1139
|
return false;
|
|
1140
|
-
if (!equals(this.
|
|
1140
|
+
if (!equals(this.w88_1, tmp0_other_with_cast.w88_1))
|
|
1141
1141
|
return false;
|
|
1142
|
-
if (!(this.
|
|
1142
|
+
if (!(this.x88_1 == tmp0_other_with_cast.x88_1))
|
|
1143
1143
|
return false;
|
|
1144
1144
|
return true;
|
|
1145
1145
|
};
|
|
@@ -1211,16 +1211,16 @@
|
|
|
1211
1211
|
return tmp;
|
|
1212
1212
|
}
|
|
1213
1213
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1214
|
-
this.
|
|
1214
|
+
this.c89_1 = function_0;
|
|
1215
1215
|
}
|
|
1216
1216
|
protoOf(sam$kotlin_Comparator$0).qf = function (a, b) {
|
|
1217
|
-
return this.
|
|
1217
|
+
return this.c89_1(a, b);
|
|
1218
1218
|
};
|
|
1219
1219
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1220
1220
|
return this.qf(a, b);
|
|
1221
1221
|
};
|
|
1222
1222
|
protoOf(sam$kotlin_Comparator$0).v3 = function () {
|
|
1223
|
-
return this.
|
|
1223
|
+
return this.c89_1;
|
|
1224
1224
|
};
|
|
1225
1225
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1226
1226
|
var tmp;
|
|
@@ -1257,10 +1257,10 @@
|
|
|
1257
1257
|
return Default_instance_0;
|
|
1258
1258
|
}
|
|
1259
1259
|
function StandardJsonSchemaGenerator$generate$$inlined$groupingBy$1($this) {
|
|
1260
|
-
this.
|
|
1260
|
+
this.e89_1 = $this;
|
|
1261
1261
|
}
|
|
1262
1262
|
protoOf(StandardJsonSchemaGenerator$generate$$inlined$groupingBy$1).v4 = function () {
|
|
1263
|
-
return this.
|
|
1263
|
+
return this.e89_1.p();
|
|
1264
1264
|
};
|
|
1265
1265
|
protoOf(StandardJsonSchemaGenerator$generate$$inlined$groupingBy$1).ew = function (element) {
|
|
1266
1266
|
return element;
|
|
@@ -1272,7 +1272,7 @@
|
|
|
1272
1272
|
Default_getInstance_0();
|
|
1273
1273
|
GenericJsonSchemaGenerator.call(this);
|
|
1274
1274
|
}
|
|
1275
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1275
|
+
protoOf(StandardJsonSchemaGenerator).e88 = function (json, name, serializer, descriptionOverrides, excludedProperties) {
|
|
1276
1276
|
var descriptorKind = serializer.fv().uw();
|
|
1277
1277
|
var tmp;
|
|
1278
1278
|
if (descriptorKind instanceof PolymorphicKind) {
|
|
@@ -1291,9 +1291,9 @@
|
|
|
1291
1291
|
// Inline function 'kotlin.collections.listOf' call
|
|
1292
1292
|
var tmp$ret$3 = emptyList();
|
|
1293
1293
|
var context = new GenerationContext(json, tmp_0, tmp_1, tmp$ret$3, descriptionOverrides, excludedProperties, null);
|
|
1294
|
-
var generatedSchema = this.
|
|
1294
|
+
var generatedSchema = this.o88(context);
|
|
1295
1295
|
// Inline function 'kotlin.collections.map' call
|
|
1296
|
-
var this_0 = context.
|
|
1296
|
+
var this_0 = context.t88_1.k2();
|
|
1297
1297
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1298
1298
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1299
1299
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
1324
1324
|
}
|
|
1325
1325
|
// Inline function 'kotlin.collections.mapKeys' call
|
|
1326
|
-
var this_1 = context.
|
|
1326
|
+
var this_1 = context.t88_1;
|
|
1327
1327
|
// Inline function 'kotlin.collections.mapKeysTo' call
|
|
1328
1328
|
var destination_1 = LinkedHashMap_init_$Create$_0(mapCapacity(this_1.s()));
|
|
1329
1329
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -1341,7 +1341,7 @@
|
|
|
1341
1341
|
var builder = new JsonObjectBuilder();
|
|
1342
1342
|
put(builder, '$id', name);
|
|
1343
1343
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1344
|
-
if (!context.
|
|
1344
|
+
if (!context.t88_1.m()) {
|
|
1345
1345
|
builder.g1k('$defs', new JsonObject(typeDefinitions));
|
|
1346
1346
|
}
|
|
1347
1347
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -1357,43 +1357,43 @@
|
|
|
1357
1357
|
var schema = builder.s1i();
|
|
1358
1358
|
return new Standard(name, schema);
|
|
1359
1359
|
};
|
|
1360
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1360
|
+
protoOf(StandardJsonSchemaGenerator).f88 = function (_this__u8e3s4, context) {
|
|
1361
1361
|
var schema = toMutableMap(_this__u8e3s4);
|
|
1362
|
-
if (context.
|
|
1362
|
+
if (context.s88_1.qw()) {
|
|
1363
1363
|
// Inline function 'kotlin.collections.set' call
|
|
1364
1364
|
var value = new JsonArray(listOf([getValue(schema, 'type'), JsonPrimitive_0('null')]));
|
|
1365
1365
|
schema.r2('type', value);
|
|
1366
1366
|
}
|
|
1367
1367
|
return new JsonObject(schema);
|
|
1368
1368
|
};
|
|
1369
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1370
|
-
return this.
|
|
1369
|
+
protoOf(StandardJsonSchemaGenerator).g88 = function (context) {
|
|
1370
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).g88.call(this, context), context);
|
|
1371
1371
|
};
|
|
1372
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1373
|
-
return this.
|
|
1372
|
+
protoOf(StandardJsonSchemaGenerator).h88 = function (context) {
|
|
1373
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).h88.call(this, context), context);
|
|
1374
1374
|
};
|
|
1375
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1376
|
-
return this.
|
|
1375
|
+
protoOf(StandardJsonSchemaGenerator).i88 = function (context) {
|
|
1376
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).i88.call(this, context), context);
|
|
1377
1377
|
};
|
|
1378
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1379
|
-
return this.
|
|
1378
|
+
protoOf(StandardJsonSchemaGenerator).j88 = function (context) {
|
|
1379
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).j88.call(this, context), context);
|
|
1380
1380
|
};
|
|
1381
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1382
|
-
return this.
|
|
1381
|
+
protoOf(StandardJsonSchemaGenerator).k88 = function (context) {
|
|
1382
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).k88.call(this, context), context);
|
|
1383
1383
|
};
|
|
1384
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1385
|
-
return this.
|
|
1384
|
+
protoOf(StandardJsonSchemaGenerator).l88 = function (context) {
|
|
1385
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).l88.call(this, context), context);
|
|
1386
1386
|
};
|
|
1387
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1388
|
-
return this.
|
|
1387
|
+
protoOf(StandardJsonSchemaGenerator).m88 = function (context) {
|
|
1388
|
+
return this.f88(protoOf(GenericJsonSchemaGenerator).m88.call(this, context), context);
|
|
1389
1389
|
};
|
|
1390
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1390
|
+
protoOf(StandardJsonSchemaGenerator).n88 = function (context) {
|
|
1391
1391
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1392
1392
|
var builder = new JsonObjectBuilder();
|
|
1393
|
-
if (!context.
|
|
1394
|
-
protoOf(GenericJsonSchemaGenerator).
|
|
1395
|
-
var schema = toMutableMap(getValue(context.
|
|
1396
|
-
var tmp0_safe_receiver = context.
|
|
1393
|
+
if (!context.u88_1.w(context.s88_1)) {
|
|
1394
|
+
protoOf(GenericJsonSchemaGenerator).n88.call(this, context);
|
|
1395
|
+
var schema = toMutableMap(getValue(context.t88_1, context.s88_1));
|
|
1396
|
+
var tmp0_safe_receiver = context.a89();
|
|
1397
1397
|
if (tmp0_safe_receiver == null)
|
|
1398
1398
|
null;
|
|
1399
1399
|
else {
|
|
@@ -1403,18 +1403,18 @@
|
|
|
1403
1403
|
var value = JsonPrimitive_0(tmp0_safe_receiver);
|
|
1404
1404
|
schema.r2(tmp2, value);
|
|
1405
1405
|
}
|
|
1406
|
-
var tmp0 = context.
|
|
1407
|
-
var tmp2_0 = context.
|
|
1406
|
+
var tmp0 = context.t88_1;
|
|
1407
|
+
var tmp2_0 = context.s88_1;
|
|
1408
1408
|
// Inline function 'kotlin.collections.set' call
|
|
1409
1409
|
var value_0 = new JsonObject(schema);
|
|
1410
1410
|
tmp0.r2(tmp2_0, value_0);
|
|
1411
1411
|
}
|
|
1412
|
-
if (context.
|
|
1412
|
+
if (context.s88_1.qw()) {
|
|
1413
1413
|
// Inline function 'kotlinx.serialization.json.buildJsonArray' call
|
|
1414
1414
|
var builder_0 = new JsonArrayBuilder();
|
|
1415
1415
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1416
1416
|
var builder_1 = new JsonObjectBuilder();
|
|
1417
|
-
put(builder_1, '$ref', '#/$defs/' + context.
|
|
1417
|
+
put(builder_1, '$ref', '#/$defs/' + context.s88_1.fw());
|
|
1418
1418
|
var tmp$ret$5 = builder_1.s1i();
|
|
1419
1419
|
builder_0.i1k(tmp$ret$5);
|
|
1420
1420
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -1425,24 +1425,24 @@
|
|
|
1425
1425
|
var tmp$ret$9 = builder_0.s1i();
|
|
1426
1426
|
builder.g1k('oneOf', tmp$ret$9);
|
|
1427
1427
|
} else {
|
|
1428
|
-
put(builder, '$ref', '#/$defs/' + context.
|
|
1428
|
+
put(builder, '$ref', '#/$defs/' + context.s88_1.fw());
|
|
1429
1429
|
}
|
|
1430
|
-
this.
|
|
1430
|
+
this.p88(builder, context.x88_1);
|
|
1431
1431
|
return builder.s1i();
|
|
1432
1432
|
};
|
|
1433
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1433
|
+
protoOf(StandardJsonSchemaGenerator).q88 = function (context) {
|
|
1434
1434
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1435
1435
|
var builder = new JsonObjectBuilder();
|
|
1436
|
-
var classDiscriminatorMode = context.
|
|
1437
|
-
var classDiscriminator = context.
|
|
1436
|
+
var classDiscriminatorMode = context.r88_1.f1h_1.j1j_1;
|
|
1437
|
+
var classDiscriminator = context.r88_1.f1h_1.c1j_1;
|
|
1438
1438
|
// Inline function 'kotlinx.serialization.json.buildJsonArray' call
|
|
1439
1439
|
var builder_0 = new JsonArrayBuilder();
|
|
1440
1440
|
// Inline function 'kotlin.collections.forEach' call
|
|
1441
|
-
var _iterator__ex2g4s = getPolymorphicDescriptors_0(context.
|
|
1441
|
+
var _iterator__ex2g4s = getPolymorphicDescriptors_0(context.s88_1, context.r88_1).p();
|
|
1442
1442
|
while (_iterator__ex2g4s.q()) {
|
|
1443
1443
|
var element = _iterator__ex2g4s.r();
|
|
1444
|
-
this.
|
|
1445
|
-
var tmp0_safe_receiver = context.
|
|
1444
|
+
this.n88(context.y88(VOID, element));
|
|
1445
|
+
var tmp0_safe_receiver = context.t88_1.j2(element);
|
|
1446
1446
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : toMutableMap(tmp0_safe_receiver);
|
|
1447
1447
|
if (tmp1_safe_receiver == null)
|
|
1448
1448
|
null;
|
|
@@ -1451,7 +1451,7 @@
|
|
|
1451
1451
|
if (listOf([ClassDiscriminatorMode_ALL_JSON_OBJECTS_getInstance(), ClassDiscriminatorMode_POLYMORPHIC_getInstance()]).w(classDiscriminatorMode)) {
|
|
1452
1452
|
var updatedProperties = toMutableMap(get_jsonObject(getValue(tmp1_safe_receiver, 'properties')));
|
|
1453
1453
|
// Inline function 'kotlin.collections.set' call
|
|
1454
|
-
var value = this.
|
|
1454
|
+
var value = this.d89(context.y88(VOID, element));
|
|
1455
1455
|
updatedProperties.r2(classDiscriminator, value);
|
|
1456
1456
|
var tmp2 = 'properties';
|
|
1457
1457
|
// Inline function 'kotlin.collections.set' call
|
|
@@ -1462,7 +1462,7 @@
|
|
|
1462
1462
|
var value_1 = new JsonArray(distinct(plus(toList(get_jsonArray(getValue(tmp1_safe_receiver, 'required'))), JsonPrimitive_0(classDiscriminator))));
|
|
1463
1463
|
tmp1_safe_receiver.r2(tmp2_0, value_1);
|
|
1464
1464
|
}
|
|
1465
|
-
var tmp0 = context.
|
|
1465
|
+
var tmp0 = context.t88_1;
|
|
1466
1466
|
// Inline function 'kotlin.collections.set' call
|
|
1467
1467
|
var value_2 = new JsonObject(tmp1_safe_receiver);
|
|
1468
1468
|
tmp0.r2(element, value_2);
|
|
@@ -1473,7 +1473,7 @@
|
|
|
1473
1473
|
var tmp$ret$7 = builder_1.s1i();
|
|
1474
1474
|
builder_0.i1k(tmp$ret$7);
|
|
1475
1475
|
}
|
|
1476
|
-
if (context.
|
|
1476
|
+
if (context.s88_1.qw()) {
|
|
1477
1477
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1478
1478
|
var builder_2 = new JsonObjectBuilder();
|
|
1479
1479
|
builder_2.g1k('type', JsonPrimitive_0('null'));
|
|
@@ -1482,13 +1482,13 @@
|
|
|
1482
1482
|
}
|
|
1483
1483
|
var tmp$ret$13 = builder_0.s1i();
|
|
1484
1484
|
builder.g1k('oneOf', tmp$ret$13);
|
|
1485
|
-
this.
|
|
1485
|
+
this.p88(builder, context.x88_1);
|
|
1486
1486
|
return builder.s1i();
|
|
1487
1487
|
};
|
|
1488
|
-
protoOf(StandardJsonSchemaGenerator).
|
|
1488
|
+
protoOf(StandardJsonSchemaGenerator).d89 = function (context) {
|
|
1489
1489
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1490
1490
|
var builder = new JsonObjectBuilder();
|
|
1491
|
-
put(builder, 'const', context.
|
|
1491
|
+
put(builder, 'const', context.s88_1.fw());
|
|
1492
1492
|
return builder.s1i();
|
|
1493
1493
|
};
|
|
1494
1494
|
//region block: init
|