@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
package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js
CHANGED
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
//region block: imports
|
|
60
60
|
var ConnectionTimeoutConfig = kotlin_ai_koog_prompt_executor_clients.$_$.b;
|
|
61
61
|
var VOID = kotlin_kotlin.$_$.h;
|
|
62
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
63
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
62
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
63
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
64
64
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
65
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
66
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
67
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
68
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
69
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
65
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
66
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
67
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
68
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
69
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
70
70
|
var get_RegisteredBasicJsonSchemaGenerators = kotlin_ai_koog_prompt_structure.$_$.d;
|
|
71
71
|
var get_RegisteredStandardJsonSchemaGenerators = kotlin_ai_koog_prompt_structure.$_$.e;
|
|
72
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
73
|
-
var toString = kotlin_kotlin.$_$.
|
|
72
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
73
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
74
74
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
75
75
|
var Document_getInstance = kotlin_ai_koog_prompt_llm.$_$.e;
|
|
76
76
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
var URL = kotlin_ai_koog_prompt_model.$_$.f;
|
|
84
84
|
var Image = kotlin_ai_koog_prompt_model.$_$.i;
|
|
85
85
|
var Text = kotlin_ai_koog_prompt_model.$_$.j;
|
|
86
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
86
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dm;
|
|
87
87
|
var put = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i1;
|
|
88
88
|
var put_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j1;
|
|
89
89
|
var putJsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g1;
|
|
@@ -92,34 +92,34 @@
|
|
|
92
92
|
var putJsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f1;
|
|
93
93
|
var Enum = kotlin_ai_koog_agents_tools.$_$.d;
|
|
94
94
|
var String_getInstance = kotlin_ai_koog_agents_tools.$_$.n;
|
|
95
|
-
var equals = kotlin_kotlin.$_$.
|
|
95
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
96
96
|
var Integer_getInstance = kotlin_ai_koog_agents_tools.$_$.m;
|
|
97
97
|
var Float_getInstance = kotlin_ai_koog_agents_tools.$_$.l;
|
|
98
98
|
var Boolean_getInstance = kotlin_ai_koog_agents_tools.$_$.k;
|
|
99
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
100
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
101
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
102
|
-
var toList = kotlin_kotlin.$_$.
|
|
99
|
+
var FunctionAdapter = kotlin_kotlin.$_$.cd;
|
|
100
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
101
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
102
|
+
var toList = kotlin_kotlin.$_$.ib;
|
|
103
103
|
var Builtins_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
104
104
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
105
105
|
var contentType = kotlin_io_ktor_ktor_http.$_$.w1;
|
|
106
|
-
var header = kotlin_io_ktor_ktor_client_core.$_$.
|
|
106
|
+
var header = kotlin_io_ktor_ktor_client_core.$_$.v;
|
|
107
107
|
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
108
|
-
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.
|
|
109
|
-
var get_SSE = kotlin_io_ktor_ktor_client_core.$_$.
|
|
108
|
+
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
109
|
+
var get_SSE = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
110
110
|
var get_ContentNegotiation = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
|
|
111
|
-
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.
|
|
111
|
+
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
112
112
|
var StreamFrameFlowBuilder = kotlin_ai_koog_prompt_model.$_$.a1;
|
|
113
113
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.t5;
|
|
114
|
-
var plus = kotlin_kotlin.$_$.
|
|
114
|
+
var plus = kotlin_kotlin.$_$.ja;
|
|
115
115
|
var add = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.y;
|
|
116
116
|
var first = kotlin_kotlin.$_$.w8;
|
|
117
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
117
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
118
118
|
var Completion_getInstance = kotlin_ai_koog_prompt_llm.$_$.d;
|
|
119
119
|
var Tools_getInstance = kotlin_ai_koog_prompt_llm.$_$.p;
|
|
120
120
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.p7;
|
|
121
121
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
122
|
-
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.
|
|
122
|
+
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
123
123
|
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
124
124
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.x;
|
|
125
125
|
var Companion_instance = kotlin_ai_koog_http_client_core.$_$.c;
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
141
141
|
var Base64 = kotlin_ai_koog_prompt_model.$_$.c;
|
|
142
142
|
var listOf = kotlin_kotlin.$_$.t9;
|
|
143
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
143
|
+
var ensureNotNull = kotlin_kotlin.$_$.wl;
|
|
144
144
|
var Assistant_init_$Create$ = kotlin_ai_koog_prompt_model.$_$.j1;
|
|
145
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
145
|
+
var charSequenceLength = kotlin_kotlin.$_$.ld;
|
|
146
146
|
var Call_init_$Create$ = kotlin_ai_koog_prompt_model.$_$.k1;
|
|
147
147
|
var Companion_getInstance_0 = kotlin_ai_koog_prompt_model.$_$.d2;
|
|
148
148
|
var JSON_0 = kotlin_ai_koog_prompt_model.$_$.u;
|
|
@@ -154,19 +154,19 @@
|
|
|
154
154
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
|
|
155
155
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b3;
|
|
156
156
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3;
|
|
157
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
157
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
158
158
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3;
|
|
159
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
159
|
+
var objectCreate = kotlin_kotlin.$_$.ye;
|
|
160
160
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z2;
|
|
161
161
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.o;
|
|
162
|
-
var lazy = kotlin_kotlin.$_$.
|
|
162
|
+
var lazy = kotlin_kotlin.$_$.bm;
|
|
163
163
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
164
164
|
var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
|
|
165
165
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j3;
|
|
166
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
167
|
-
var setOf = kotlin_kotlin.$_$.
|
|
166
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
167
|
+
var setOf = kotlin_kotlin.$_$.ra;
|
|
168
168
|
var InlineClassDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d3;
|
|
169
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
169
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
170
170
|
var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
171
171
|
var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
172
172
|
var JsonDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.n;
|
|
@@ -184,16 +184,16 @@
|
|
|
184
184
|
var get_contentOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.z;
|
|
185
185
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
186
186
|
var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k3;
|
|
187
|
-
var Enum_0 = kotlin_kotlin.$_$.
|
|
187
|
+
var Enum_0 = kotlin_kotlin.$_$.qk;
|
|
188
188
|
var BasicJsonSchemaGenerator = kotlin_ai_koog_prompt_structure.$_$.a;
|
|
189
189
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.b3;
|
|
190
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
190
|
+
var toMutableMap = kotlin_kotlin.$_$.pb;
|
|
191
191
|
var getValue = kotlin_kotlin.$_$.b9;
|
|
192
192
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b1;
|
|
193
193
|
var JsonPrimitive_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.s;
|
|
194
194
|
var StandardJsonSchemaGenerator = kotlin_ai_koog_prompt_structure.$_$.b;
|
|
195
195
|
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c1;
|
|
196
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
196
|
+
var removePrefix = kotlin_kotlin.$_$.ai;
|
|
197
197
|
var countElements = kotlin_ai_koog_prompt_structure.$_$.c;
|
|
198
198
|
var KtMap = kotlin_kotlin.$_$.v6;
|
|
199
199
|
var JsonArrayBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j;
|
|
@@ -363,16 +363,16 @@
|
|
|
363
363
|
//endregion
|
|
364
364
|
function OpenAIBasedSettings(baseUrl, chatCompletionsPath, timeoutConfig) {
|
|
365
365
|
timeoutConfig = timeoutConfig === VOID ? new ConnectionTimeoutConfig() : timeoutConfig;
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
366
|
+
this.v8c_1 = baseUrl;
|
|
367
|
+
this.w8c_1 = chatCompletionsPath;
|
|
368
|
+
this.x8c_1 = timeoutConfig;
|
|
369
369
|
}
|
|
370
370
|
function AbstractOpenAILLMClient$executeStreaming$slambda$lambda(it) {
|
|
371
371
|
return !(it === '[DONE]');
|
|
372
372
|
}
|
|
373
373
|
function AbstractOpenAILLMClient$decodeStreamingResponse$ref(p0) {
|
|
374
374
|
var l = function (_this__u8e3s4) {
|
|
375
|
-
return p0.
|
|
375
|
+
return p0.f8d(_this__u8e3s4);
|
|
376
376
|
};
|
|
377
377
|
l.callableName = 'decodeStreamingResponse';
|
|
378
378
|
return l;
|
|
@@ -381,18 +381,18 @@
|
|
|
381
381
|
return it;
|
|
382
382
|
}
|
|
383
383
|
function AbstractOpenAILLMClient$executeStreaming$slambda$slambda(this$0, $this_buildStreamFrameFlow, resultContinuation) {
|
|
384
|
-
this.
|
|
385
|
-
this.
|
|
384
|
+
this.o8d_1 = this$0;
|
|
385
|
+
this.p8d_1 = $this_buildStreamFrameFlow;
|
|
386
386
|
CoroutineImpl.call(this, resultContinuation);
|
|
387
387
|
}
|
|
388
|
-
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda$slambda).
|
|
389
|
-
var tmp = this.
|
|
388
|
+
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda$slambda).r8d = function (it, $completion) {
|
|
389
|
+
var tmp = this.s8d(it, $completion);
|
|
390
390
|
tmp.z9_1 = Unit_instance;
|
|
391
391
|
tmp.aa_1 = null;
|
|
392
392
|
return tmp.fa();
|
|
393
393
|
};
|
|
394
394
|
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda$slambda).ra = function (p1, $completion) {
|
|
395
|
-
return this.
|
|
395
|
+
return this.r8d((!(p1 == null) ? isInterface(p1, OpenAIBaseLLMStreamResponse) : false) ? p1 : THROW_CCE(), $completion);
|
|
396
396
|
};
|
|
397
397
|
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda$slambda).fa = function () {
|
|
398
398
|
var suspendResult = this.z9_1;
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
case 0:
|
|
404
404
|
this.y9_1 = 2;
|
|
405
405
|
this.x9_1 = 1;
|
|
406
|
-
suspendResult = this.
|
|
406
|
+
suspendResult = this.o8d_1.t8d(this.p8d_1, this.q8d_1, this);
|
|
407
407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
408
408
|
return suspendResult;
|
|
409
409
|
}
|
|
@@ -425,22 +425,22 @@
|
|
|
425
425
|
}
|
|
426
426
|
while (true);
|
|
427
427
|
};
|
|
428
|
-
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda$slambda).
|
|
429
|
-
var i = new AbstractOpenAILLMClient$executeStreaming$slambda$slambda(this.
|
|
430
|
-
i.
|
|
428
|
+
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda$slambda).s8d = function (it, completion) {
|
|
429
|
+
var i = new AbstractOpenAILLMClient$executeStreaming$slambda$slambda(this.o8d_1, this.p8d_1, completion);
|
|
430
|
+
i.q8d_1 = it;
|
|
431
431
|
return i;
|
|
432
432
|
};
|
|
433
433
|
function AbstractOpenAILLMClient$executeStreaming$slambda$slambda_0(this$0, $this_buildStreamFrameFlow, resultContinuation) {
|
|
434
434
|
var i = new AbstractOpenAILLMClient$executeStreaming$slambda$slambda(this$0, $this_buildStreamFrameFlow, resultContinuation);
|
|
435
435
|
var l = function (it, $completion) {
|
|
436
|
-
return i.
|
|
436
|
+
return i.r8d(it, $completion);
|
|
437
437
|
};
|
|
438
438
|
l.$arity = 1;
|
|
439
439
|
return l;
|
|
440
440
|
}
|
|
441
441
|
function Companion() {
|
|
442
442
|
}
|
|
443
|
-
protoOf(Companion).
|
|
443
|
+
protoOf(Companion).u8d = function (llmProvider) {
|
|
444
444
|
var tmp0 = get_RegisteredBasicJsonSchemaGenerators();
|
|
445
445
|
// Inline function 'kotlin.collections.set' call
|
|
446
446
|
var value = Default_getInstance();
|
|
@@ -463,17 +463,17 @@
|
|
|
463
463
|
function toContentPart($this, _this__u8e3s4, model) {
|
|
464
464
|
var tmp;
|
|
465
465
|
if (_this__u8e3s4 instanceof Text) {
|
|
466
|
-
tmp = new Text_2(_this__u8e3s4.
|
|
466
|
+
tmp = new Text_2(_this__u8e3s4.c46_1);
|
|
467
467
|
} else {
|
|
468
468
|
if (_this__u8e3s4 instanceof Image) {
|
|
469
|
-
$this.
|
|
470
|
-
var attachmentContent = _this__u8e3s4.
|
|
469
|
+
$this.q8e(model, Image_getInstance());
|
|
470
|
+
var attachmentContent = _this__u8e3s4.g46_1;
|
|
471
471
|
var tmp_0;
|
|
472
472
|
if (attachmentContent instanceof URL) {
|
|
473
|
-
tmp_0 = attachmentContent.
|
|
473
|
+
tmp_0 = attachmentContent.q45_1;
|
|
474
474
|
} else {
|
|
475
475
|
if (isInterface(attachmentContent, Binary)) {
|
|
476
|
-
tmp_0 = 'data:' + _this__u8e3s4.
|
|
476
|
+
tmp_0 = 'data:' + _this__u8e3s4.i46_1 + ';base64,' + attachmentContent.y45();
|
|
477
477
|
} else {
|
|
478
478
|
throw IllegalArgumentException_init_$Create$('Unsupported image attachment content: ' + toString(getKClassFromExpression(attachmentContent)));
|
|
479
479
|
}
|
|
@@ -482,11 +482,11 @@
|
|
|
482
482
|
tmp = new Image_0(new ImageUrl(imageUrl));
|
|
483
483
|
} else {
|
|
484
484
|
if (_this__u8e3s4 instanceof Audio) {
|
|
485
|
-
$this.
|
|
486
|
-
var attachmentContent_0 = _this__u8e3s4.
|
|
485
|
+
$this.q8e(model, Audio_getInstance());
|
|
486
|
+
var attachmentContent_0 = _this__u8e3s4.u46_1;
|
|
487
487
|
var tmp_1;
|
|
488
488
|
if (isInterface(attachmentContent_0, Binary)) {
|
|
489
|
-
tmp_1 = new InputAudio(attachmentContent_0.
|
|
489
|
+
tmp_1 = new InputAudio(attachmentContent_0.y45(), _this__u8e3s4.v46_1);
|
|
490
490
|
} else {
|
|
491
491
|
throw IllegalArgumentException_init_$Create$('Unsupported audio attachment content: ' + toString(getKClassFromExpression(attachmentContent_0)));
|
|
492
492
|
}
|
|
@@ -494,15 +494,15 @@
|
|
|
494
494
|
tmp = new Audio_0(inputAudio);
|
|
495
495
|
} else {
|
|
496
496
|
if (_this__u8e3s4 instanceof File) {
|
|
497
|
-
$this.
|
|
498
|
-
var attachmentContent_1 = _this__u8e3s4.
|
|
497
|
+
$this.q8e(model, Document_getInstance());
|
|
498
|
+
var attachmentContent_1 = _this__u8e3s4.b47_1;
|
|
499
499
|
var tmp_2;
|
|
500
500
|
if (isInterface(attachmentContent_1, Binary)) {
|
|
501
|
-
var fileData = new FileData('data:' + _this__u8e3s4.
|
|
501
|
+
var fileData = new FileData('data:' + _this__u8e3s4.d47_1 + ';base64,' + attachmentContent_1.y45(), VOID, _this__u8e3s4.e47_1);
|
|
502
502
|
tmp_2 = new File_0(fileData);
|
|
503
503
|
} else {
|
|
504
504
|
if (attachmentContent_1 instanceof PlainText) {
|
|
505
|
-
tmp_2 = new Text_2(attachmentContent_1.
|
|
505
|
+
tmp_2 = new Text_2(attachmentContent_1.n45_1);
|
|
506
506
|
} else {
|
|
507
507
|
throw IllegalArgumentException_init_$Create$('Unsupported file attachment content: ' + toString(getKClassFromExpression(attachmentContent_1)));
|
|
508
508
|
}
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
} else {
|
|
540
540
|
if (type instanceof Object_0) {
|
|
541
541
|
put(_this__u8e3s4, 'type', 'object');
|
|
542
|
-
var tmp1_safe_receiver = type.
|
|
542
|
+
var tmp1_safe_receiver = type.o7y_1;
|
|
543
543
|
if (tmp1_safe_receiver == null)
|
|
544
544
|
null;
|
|
545
545
|
else {
|
|
@@ -558,13 +558,13 @@
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
561
|
-
this.
|
|
561
|
+
this.r8e_1 = function_0;
|
|
562
562
|
}
|
|
563
563
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
|
|
564
|
-
return this.
|
|
564
|
+
return this.r8e_1(value, $completion);
|
|
565
565
|
};
|
|
566
566
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
|
|
567
|
-
return this.
|
|
567
|
+
return this.r8e_1;
|
|
568
568
|
};
|
|
569
569
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
570
570
|
var tmp;
|
|
@@ -603,34 +603,34 @@
|
|
|
603
603
|
}
|
|
604
604
|
function AbstractOpenAILLMClient$httpClient$lambda$lambda($settings, this$0) {
|
|
605
605
|
return function ($this$defaultRequest) {
|
|
606
|
-
$this$defaultRequest.
|
|
607
|
-
contentType($this$defaultRequest, Application_getInstance().
|
|
608
|
-
header($this$defaultRequest, 'Authorization', 'Bearer ' + this$0.
|
|
606
|
+
$this$defaultRequest.u6f($settings.v8c_1);
|
|
607
|
+
contentType($this$defaultRequest, Application_getInstance().m56_1);
|
|
608
|
+
header($this$defaultRequest, 'Authorization', 'Bearer ' + this$0.y8c_1);
|
|
609
609
|
return Unit_instance;
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
612
|
function AbstractOpenAILLMClient$httpClient$lambda$lambda_0(this$0) {
|
|
613
613
|
return function ($this$install) {
|
|
614
|
-
json($this$install, this$0.
|
|
614
|
+
json($this$install, this$0.d8d_1);
|
|
615
615
|
return Unit_instance;
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
618
|
function AbstractOpenAILLMClient$httpClient$lambda$lambda_1($settings) {
|
|
619
619
|
return function ($this$install) {
|
|
620
|
-
$this$install.
|
|
621
|
-
$this$install.
|
|
622
|
-
$this$install.
|
|
620
|
+
$this$install.l6u($settings.x8c_1.u4e_1);
|
|
621
|
+
$this$install.m6u($settings.x8c_1.v4e_1);
|
|
622
|
+
$this$install.n6u($settings.x8c_1.w4e_1);
|
|
623
623
|
return Unit_instance;
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
function AbstractOpenAILLMClient$httpClient$lambda($settings, this$0) {
|
|
627
627
|
return function ($this$fromKtorClient) {
|
|
628
628
|
defaultRequest($this$fromKtorClient, AbstractOpenAILLMClient$httpClient$lambda$lambda($settings, this$0));
|
|
629
|
-
$this$fromKtorClient.
|
|
629
|
+
$this$fromKtorClient.w65(get_SSE());
|
|
630
630
|
var tmp = get_ContentNegotiation();
|
|
631
|
-
$this$fromKtorClient.
|
|
631
|
+
$this$fromKtorClient.j66(tmp, AbstractOpenAILLMClient$httpClient$lambda$lambda_0(this$0));
|
|
632
632
|
var tmp_0 = get_HttpTimeout();
|
|
633
|
-
$this$fromKtorClient.
|
|
633
|
+
$this$fromKtorClient.j66(tmp_0, AbstractOpenAILLMClient$httpClient$lambda$lambda_1($settings));
|
|
634
634
|
return Unit_instance;
|
|
635
635
|
};
|
|
636
636
|
}
|
|
@@ -640,18 +640,18 @@
|
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
function AbstractOpenAILLMClient$executeStreaming$slambda(this$0, $request, resultContinuation) {
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
643
|
+
this.a8f_1 = this$0;
|
|
644
|
+
this.b8f_1 = $request;
|
|
645
645
|
CoroutineImpl.call(this, resultContinuation);
|
|
646
646
|
}
|
|
647
|
-
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda).
|
|
648
|
-
var tmp = this.
|
|
647
|
+
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda).g80 = function ($this$buildStreamFrameFlow, $completion) {
|
|
648
|
+
var tmp = this.h80($this$buildStreamFrameFlow, $completion);
|
|
649
649
|
tmp.z9_1 = Unit_instance;
|
|
650
650
|
tmp.aa_1 = null;
|
|
651
651
|
return tmp.fa();
|
|
652
652
|
};
|
|
653
653
|
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda).ra = function (p1, $completion) {
|
|
654
|
-
return this.
|
|
654
|
+
return this.g80(p1 instanceof StreamFrameFlowBuilder ? p1 : THROW_CCE(), $completion);
|
|
655
655
|
};
|
|
656
656
|
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda).fa = function () {
|
|
657
657
|
var suspendResult = this.z9_1;
|
|
@@ -664,9 +664,9 @@
|
|
|
664
664
|
this.x9_1 = 1;
|
|
665
665
|
var tmp_0 = PrimitiveClasses_getInstance().fd();
|
|
666
666
|
var tmp_1 = AbstractOpenAILLMClient$executeStreaming$slambda$lambda;
|
|
667
|
-
var tmp_2 = AbstractOpenAILLMClient$decodeStreamingResponse$ref(this.
|
|
668
|
-
var tmp_3 = this.
|
|
669
|
-
var tmp_4 = AbstractOpenAILLMClient$executeStreaming$slambda$slambda_0(this.
|
|
667
|
+
var tmp_2 = AbstractOpenAILLMClient$decodeStreamingResponse$ref(this.a8f_1);
|
|
668
|
+
var tmp_3 = this.a8f_1.e8d_1.g89(this.a8f_1.c8d_1, this.b8f_1, tmp_0, tmp_1, tmp_2, AbstractOpenAILLMClient$executeStreaming$slambda$lambda_0);
|
|
669
|
+
var tmp_4 = AbstractOpenAILLMClient$executeStreaming$slambda$slambda_0(this.a8f_1, this.c8f_1, null);
|
|
670
670
|
suspendResult = tmp_3.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_4), this);
|
|
671
671
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
672
672
|
return suspendResult;
|
|
@@ -689,15 +689,15 @@
|
|
|
689
689
|
}
|
|
690
690
|
while (true);
|
|
691
691
|
};
|
|
692
|
-
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda).
|
|
693
|
-
var i = new AbstractOpenAILLMClient$executeStreaming$slambda(this.
|
|
694
|
-
i.
|
|
692
|
+
protoOf(AbstractOpenAILLMClient$executeStreaming$slambda).h80 = function ($this$buildStreamFrameFlow, completion) {
|
|
693
|
+
var i = new AbstractOpenAILLMClient$executeStreaming$slambda(this.a8f_1, this.b8f_1, completion);
|
|
694
|
+
i.c8f_1 = $this$buildStreamFrameFlow;
|
|
695
695
|
return i;
|
|
696
696
|
};
|
|
697
697
|
function AbstractOpenAILLMClient$executeStreaming$slambda_0(this$0, $request, resultContinuation) {
|
|
698
698
|
var i = new AbstractOpenAILLMClient$executeStreaming$slambda(this$0, $request, resultContinuation);
|
|
699
699
|
var l = function ($this$buildStreamFrameFlow, $completion) {
|
|
700
|
-
return i.
|
|
700
|
+
return i.g80($this$buildStreamFrameFlow, $completion);
|
|
701
701
|
};
|
|
702
702
|
l.$arity = 1;
|
|
703
703
|
return l;
|
|
@@ -710,10 +710,10 @@
|
|
|
710
710
|
function AbstractOpenAILLMClient$paramsToJsonObject$lambda($this_paramsToJsonObject, this$0) {
|
|
711
711
|
return function ($this$putJsonObject) {
|
|
712
712
|
// Inline function 'kotlin.collections.forEach' call
|
|
713
|
-
var _iterator__ex2g4s = plus($this_paramsToJsonObject.
|
|
713
|
+
var _iterator__ex2g4s = plus($this_paramsToJsonObject.y7x_1, $this_paramsToJsonObject.z7x_1).p();
|
|
714
714
|
while (_iterator__ex2g4s.q()) {
|
|
715
715
|
var element = _iterator__ex2g4s.r();
|
|
716
|
-
$this$putJsonObject.g1k(element.
|
|
716
|
+
$this$putJsonObject.g1k(element.a7y_1, this$0.d8f(element));
|
|
717
717
|
}
|
|
718
718
|
return Unit_instance;
|
|
719
719
|
};
|
|
@@ -721,10 +721,10 @@
|
|
|
721
721
|
function AbstractOpenAILLMClient$paramsToJsonObject$lambda_0($this_paramsToJsonObject) {
|
|
722
722
|
return function ($this$putJsonArray) {
|
|
723
723
|
// Inline function 'kotlin.collections.forEach' call
|
|
724
|
-
var _iterator__ex2g4s = $this_paramsToJsonObject.
|
|
724
|
+
var _iterator__ex2g4s = $this_paramsToJsonObject.y7x_1.p();
|
|
725
725
|
while (_iterator__ex2g4s.q()) {
|
|
726
726
|
var element = _iterator__ex2g4s.r();
|
|
727
|
-
add($this$putJsonArray, element.
|
|
727
|
+
add($this$putJsonArray, element.a7y_1);
|
|
728
728
|
}
|
|
729
729
|
return Unit_instance;
|
|
730
730
|
};
|
|
@@ -732,7 +732,7 @@
|
|
|
732
732
|
function AbstractOpenAILLMClient$fillJsonSchema$lambda($type) {
|
|
733
733
|
return function ($this$putJsonArray) {
|
|
734
734
|
// Inline function 'kotlin.collections.forEach' call
|
|
735
|
-
var indexedObject = $type.
|
|
735
|
+
var indexedObject = $type.s7y_1;
|
|
736
736
|
var inductionVariable = 0;
|
|
737
737
|
var last = indexedObject.length;
|
|
738
738
|
while (inductionVariable < last) {
|
|
@@ -745,39 +745,39 @@
|
|
|
745
745
|
}
|
|
746
746
|
function AbstractOpenAILLMClient$fillJsonSchema$lambda_0(this$0, $type) {
|
|
747
747
|
return function ($this$putJsonObject) {
|
|
748
|
-
fillJsonSchema(this$0, $this$putJsonObject, $type.
|
|
748
|
+
fillJsonSchema(this$0, $this$putJsonObject, $type.q7y_1);
|
|
749
749
|
return Unit_instance;
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
752
|
function AbstractOpenAILLMClient$fillJsonSchema$lambda$lambda(this$0, $property) {
|
|
753
753
|
return function ($this$putJsonObject) {
|
|
754
|
-
fillJsonSchema(this$0, $this$putJsonObject, $property.
|
|
755
|
-
put($this$putJsonObject, 'description', $property.
|
|
754
|
+
fillJsonSchema(this$0, $this$putJsonObject, $property.c7y_1);
|
|
755
|
+
put($this$putJsonObject, 'description', $property.b7y_1);
|
|
756
756
|
return Unit_instance;
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
759
|
function AbstractOpenAILLMClient$fillJsonSchema$lambda_1($type, this$0) {
|
|
760
760
|
return function ($this$putJsonObject) {
|
|
761
761
|
// Inline function 'kotlin.collections.forEach' call
|
|
762
|
-
var _iterator__ex2g4s = $type.
|
|
762
|
+
var _iterator__ex2g4s = $type.m7y_1.p();
|
|
763
763
|
while (_iterator__ex2g4s.q()) {
|
|
764
764
|
var element = _iterator__ex2g4s.r();
|
|
765
|
-
putJsonObject($this$putJsonObject, element.
|
|
765
|
+
putJsonObject($this$putJsonObject, element.a7y_1, AbstractOpenAILLMClient$fillJsonSchema$lambda$lambda(this$0, element));
|
|
766
766
|
}
|
|
767
767
|
return Unit_instance;
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
770
|
function AbstractOpenAILLMClient$toMessageResponses$lambda(this$0) {
|
|
771
771
|
return function () {
|
|
772
|
-
return 'Unexpected response from ' + this$0.
|
|
772
|
+
return 'Unexpected response from ' + this$0.e8f() + ': no tool calls and no content';
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
775
|
function $executeCOROUTINE$(_this__u8e3s4, prompt, model, tools, resultContinuation) {
|
|
776
776
|
CoroutineImpl.call(this, resultContinuation);
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
777
|
+
this.n8f_1 = _this__u8e3s4;
|
|
778
|
+
this.o8f_1 = prompt;
|
|
779
|
+
this.p8f_1 = model;
|
|
780
|
+
this.q8f_1 = tools;
|
|
781
781
|
}
|
|
782
782
|
protoOf($executeCOROUTINE$).fa = function () {
|
|
783
783
|
var suspendResult = this.z9_1;
|
|
@@ -788,7 +788,7 @@
|
|
|
788
788
|
case 0:
|
|
789
789
|
this.y9_1 = 2;
|
|
790
790
|
this.x9_1 = 1;
|
|
791
|
-
suspendResult = getResponse(this.
|
|
791
|
+
suspendResult = getResponse(this.n8f_1, this.o8f_1, this.p8f_1, this.q8f_1, this);
|
|
792
792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
793
793
|
return suspendResult;
|
|
794
794
|
}
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
continue $sm;
|
|
797
797
|
case 1:
|
|
798
798
|
var response = suspendResult;
|
|
799
|
-
return first(this.
|
|
799
|
+
return first(this.n8f_1.r8f(response));
|
|
800
800
|
case 2:
|
|
801
801
|
throw this.aa_1;
|
|
802
802
|
}
|
|
@@ -813,10 +813,10 @@
|
|
|
813
813
|
};
|
|
814
814
|
function $getResponseCOROUTINE$(_this__u8e3s4, prompt, model, tools, resultContinuation) {
|
|
815
815
|
CoroutineImpl.call(this, resultContinuation);
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
816
|
+
this.d8e_1 = _this__u8e3s4;
|
|
817
|
+
this.e8e_1 = prompt;
|
|
818
|
+
this.f8e_1 = model;
|
|
819
|
+
this.g8e_1 = tools;
|
|
820
820
|
}
|
|
821
821
|
protoOf($getResponseCOROUTINE$).fa = function () {
|
|
822
822
|
var suspendResult = this.z9_1;
|
|
@@ -826,14 +826,14 @@
|
|
|
826
826
|
switch (tmp) {
|
|
827
827
|
case 0:
|
|
828
828
|
this.y9_1 = 2;
|
|
829
|
-
this.
|
|
830
|
-
this.
|
|
831
|
-
if (!this.
|
|
832
|
-
this.
|
|
829
|
+
this.d8e_1.a8d_1.t3h(AbstractOpenAILLMClient$getResponse$lambda(this.e8e_1, this.g8e_1, this.f8e_1));
|
|
830
|
+
this.d8e_1.q8e(this.f8e_1, Completion_getInstance());
|
|
831
|
+
if (!this.g8e_1.m()) {
|
|
832
|
+
this.d8e_1.q8e(this.f8e_1, Tools_getInstance());
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
var tmp_0 = this;
|
|
836
|
-
var this_0 = this.
|
|
836
|
+
var this_0 = this.g8e_1;
|
|
837
837
|
var tmp_1;
|
|
838
838
|
if (!this_0.m()) {
|
|
839
839
|
tmp_1 = this_0;
|
|
@@ -850,27 +850,27 @@
|
|
|
850
850
|
var _iterator__ex2g4s = tmp0_safe_receiver.p();
|
|
851
851
|
while (_iterator__ex2g4s.q()) {
|
|
852
852
|
var item = _iterator__ex2g4s.r();
|
|
853
|
-
destination.h(this.
|
|
853
|
+
destination.h(this.d8e_1.s8f(item));
|
|
854
854
|
}
|
|
855
855
|
tmp_2 = destination;
|
|
856
856
|
}
|
|
857
857
|
|
|
858
|
-
tmp_0.
|
|
859
|
-
this.
|
|
858
|
+
tmp_0.h8e_1 = tmp_2;
|
|
859
|
+
this.i8e_1 = this.d8e_1.t8f(this.e8e_1, this.f8e_1);
|
|
860
860
|
var tmp_3 = this;
|
|
861
|
-
var tmp1_safe_receiver = this.
|
|
862
|
-
tmp_3.
|
|
861
|
+
var tmp1_safe_receiver = this.e8e_1.g44_1.e43_1;
|
|
862
|
+
tmp_3.j8e_1 = this.d8e_1.v8f(this.i8e_1, this.f8e_1, this.h8e_1, tmp1_safe_receiver == null ? null : this.d8e_1.u8f(tmp1_safe_receiver), this.e8e_1.g44_1, false);
|
|
863
863
|
var tmp_4 = this;
|
|
864
|
-
tmp_4.
|
|
864
|
+
tmp_4.k8e_1 = this.d8e_1.e8d_1;
|
|
865
865
|
var tmp_5 = this;
|
|
866
|
-
tmp_5.
|
|
866
|
+
tmp_5.l8e_1 = this.d8e_1.c8d_1;
|
|
867
867
|
var tmp_6 = this;
|
|
868
|
-
tmp_6.
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
868
|
+
tmp_6.m8e_1 = this.j8e_1;
|
|
869
|
+
this.n8e_1 = this.k8e_1;
|
|
870
|
+
this.o8e_1 = this.l8e_1;
|
|
871
|
+
this.p8e_1 = this.m8e_1;
|
|
872
872
|
this.x9_1 = 1;
|
|
873
|
-
suspendResult = this.
|
|
873
|
+
suspendResult = this.n8e_1.f89(this.o8e_1, this.p8e_1, PrimitiveClasses_getInstance().fd(), PrimitiveClasses_getInstance().fd(), this);
|
|
874
874
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
875
875
|
return suspendResult;
|
|
876
876
|
}
|
|
@@ -878,7 +878,7 @@
|
|
|
878
878
|
continue $sm;
|
|
879
879
|
case 1:
|
|
880
880
|
var this_1 = suspendResult;
|
|
881
|
-
return this.
|
|
881
|
+
return this.d8e_1.w8f(this_1);
|
|
882
882
|
case 2:
|
|
883
883
|
throw this.aa_1;
|
|
884
884
|
}
|
|
@@ -896,54 +896,54 @@
|
|
|
896
896
|
function AbstractOpenAILLMClient(apiKey, settings, baseClient, clock, logger) {
|
|
897
897
|
baseClient = baseClient === VOID ? HttpClient() : baseClient;
|
|
898
898
|
clock = clock === VOID ? System_instance : clock;
|
|
899
|
-
this.
|
|
900
|
-
this.
|
|
901
|
-
this.
|
|
899
|
+
this.y8c_1 = apiKey;
|
|
900
|
+
this.z8c_1 = clock;
|
|
901
|
+
this.a8d_1 = logger;
|
|
902
902
|
var tmp = this;
|
|
903
903
|
var tmp0_elvis_lhs = getKClassFromExpression(this).zb();
|
|
904
|
-
tmp.
|
|
905
|
-
this.
|
|
904
|
+
tmp.b8d_1 = tmp0_elvis_lhs == null ? 'UnknownClient' : tmp0_elvis_lhs;
|
|
905
|
+
this.c8d_1 = settings.w8c_1;
|
|
906
906
|
var tmp_0 = this;
|
|
907
|
-
tmp_0.
|
|
907
|
+
tmp_0.d8d_1 = Json(VOID, AbstractOpenAILLMClient$json$lambda);
|
|
908
908
|
var tmp_1 = this;
|
|
909
909
|
var tmp_2 = Companion_instance;
|
|
910
|
-
var tmp_3 = this.
|
|
911
|
-
tmp_1.
|
|
910
|
+
var tmp_3 = this.e8f();
|
|
911
|
+
tmp_1.e8d_1 = fromKtorClient(tmp_2, tmp_3, this.a8d_1, baseClient, AbstractOpenAILLMClient$httpClient$lambda(settings, this));
|
|
912
912
|
}
|
|
913
|
-
protoOf(AbstractOpenAILLMClient).
|
|
914
|
-
return this.
|
|
913
|
+
protoOf(AbstractOpenAILLMClient).e8f = function () {
|
|
914
|
+
return this.b8d_1;
|
|
915
915
|
};
|
|
916
|
-
protoOf(AbstractOpenAILLMClient).
|
|
916
|
+
protoOf(AbstractOpenAILLMClient).o4e = function (prompt, model, tools, $completion) {
|
|
917
917
|
var tmp = new $executeCOROUTINE$(this, prompt, model, tools, $completion);
|
|
918
918
|
tmp.z9_1 = Unit_instance;
|
|
919
919
|
tmp.aa_1 = null;
|
|
920
920
|
return tmp.fa();
|
|
921
921
|
};
|
|
922
|
-
protoOf(AbstractOpenAILLMClient).
|
|
923
|
-
this.
|
|
924
|
-
this.
|
|
925
|
-
var messages = this.
|
|
922
|
+
protoOf(AbstractOpenAILLMClient).q4e = function (prompt, model, tools) {
|
|
923
|
+
this.a8d_1.t3h(AbstractOpenAILLMClient$executeStreaming$lambda(prompt, model));
|
|
924
|
+
this.q8e(model, Completion_getInstance());
|
|
925
|
+
var messages = this.t8f(prompt, model);
|
|
926
926
|
// Inline function 'kotlin.collections.map' call
|
|
927
927
|
// Inline function 'kotlin.collections.mapTo' call
|
|
928
928
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tools, 10));
|
|
929
929
|
var _iterator__ex2g4s = tools.p();
|
|
930
930
|
while (_iterator__ex2g4s.q()) {
|
|
931
931
|
var item = _iterator__ex2g4s.r();
|
|
932
|
-
var tmp$ret$0 = this.
|
|
932
|
+
var tmp$ret$0 = this.s8f(item);
|
|
933
933
|
destination.h(tmp$ret$0);
|
|
934
934
|
}
|
|
935
935
|
var tmp = destination;
|
|
936
|
-
var tmp0_safe_receiver = prompt.
|
|
937
|
-
var request = this.
|
|
936
|
+
var tmp0_safe_receiver = prompt.g44_1.e43_1;
|
|
937
|
+
var request = this.v8f(messages, model, tmp, tmp0_safe_receiver == null ? null : this.u8f(tmp0_safe_receiver), prompt.g44_1, true);
|
|
938
938
|
return buildStreamFrameFlow(AbstractOpenAILLMClient$executeStreaming$slambda_0(this, request, null));
|
|
939
939
|
};
|
|
940
|
-
protoOf(AbstractOpenAILLMClient).
|
|
940
|
+
protoOf(AbstractOpenAILLMClient).t8f = function (prompt, model) {
|
|
941
941
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
942
942
|
var messages = ArrayList_init_$Create$_0();
|
|
943
943
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
944
944
|
var pendingCalls = ArrayList_init_$Create$_0();
|
|
945
945
|
// Inline function 'kotlin.collections.forEach' call
|
|
946
|
-
var _iterator__ex2g4s = prompt.
|
|
946
|
+
var _iterator__ex2g4s = prompt.e44_1.p();
|
|
947
947
|
while (_iterator__ex2g4s.q()) {
|
|
948
948
|
var element = _iterator__ex2g4s.r();
|
|
949
949
|
if (element instanceof System) {
|
|
@@ -955,7 +955,7 @@
|
|
|
955
955
|
if (element instanceof User) {
|
|
956
956
|
convertPromptToMessages$flushPendingCalls(pendingCalls, messages);
|
|
957
957
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
958
|
-
var element_1 = new User_0(this.
|
|
958
|
+
var element_1 = new User_0(this.x8f(element, model));
|
|
959
959
|
messages.h(element_1);
|
|
960
960
|
} else {
|
|
961
961
|
if (element instanceof Assistant) {
|
|
@@ -967,15 +967,15 @@
|
|
|
967
967
|
if (element instanceof Result) {
|
|
968
968
|
convertPromptToMessages$flushPendingCalls(pendingCalls, messages);
|
|
969
969
|
var tmp = _Text___init__impl__bp792k(element.v1j());
|
|
970
|
-
var tmp1_elvis_lhs = element.
|
|
970
|
+
var tmp1_elvis_lhs = element.u44_1;
|
|
971
971
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
972
972
|
var element_3 = new Tool(new Text_1(tmp), tmp1_elvis_lhs == null ? Companion_getInstance().et().toString() : tmp1_elvis_lhs);
|
|
973
973
|
messages.h(element_3);
|
|
974
974
|
} else {
|
|
975
975
|
if (element instanceof Call) {
|
|
976
|
-
var tmp2_elvis_lhs = element.
|
|
976
|
+
var tmp2_elvis_lhs = element.o44_1;
|
|
977
977
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
978
|
-
var element_4 = new OpenAIToolCall(tmp2_elvis_lhs == null ? Companion_getInstance().et().toString() : tmp2_elvis_lhs, new OpenAIFunction(element.
|
|
978
|
+
var element_4 = new OpenAIToolCall(tmp2_elvis_lhs == null ? Companion_getInstance().et().toString() : tmp2_elvis_lhs, new OpenAIFunction(element.p44_1, element.v1j()));
|
|
979
979
|
pendingCalls.h(element_4);
|
|
980
980
|
} else {
|
|
981
981
|
noWhenBranchMatchedException();
|
|
@@ -988,12 +988,12 @@
|
|
|
988
988
|
convertPromptToMessages$flushPendingCalls(pendingCalls, messages);
|
|
989
989
|
return messages;
|
|
990
990
|
};
|
|
991
|
-
protoOf(AbstractOpenAILLMClient).
|
|
992
|
-
if (_this__u8e3s4.
|
|
991
|
+
protoOf(AbstractOpenAILLMClient).x8f = function (_this__u8e3s4, model) {
|
|
992
|
+
if (_this__u8e3s4.e48()) {
|
|
993
993
|
return new Text_1(_Text___init__impl__bp792k(_this__u8e3s4.v1j()));
|
|
994
994
|
}
|
|
995
995
|
// Inline function 'kotlin.collections.map' call
|
|
996
|
-
var this_0 = _this__u8e3s4.
|
|
996
|
+
var this_0 = _this__u8e3s4.b48();
|
|
997
997
|
// Inline function 'kotlin.collections.mapTo' call
|
|
998
998
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
999
999
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -1004,10 +1004,10 @@
|
|
|
1004
1004
|
}
|
|
1005
1005
|
return new Parts(_Parts___init__impl__jm4n4p(destination));
|
|
1006
1006
|
};
|
|
1007
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1008
|
-
return new OpenAITool(new OpenAIToolFunction(_this__u8e3s4.
|
|
1007
|
+
protoOf(AbstractOpenAILLMClient).s8f = function (_this__u8e3s4) {
|
|
1008
|
+
return new OpenAITool(new OpenAIToolFunction(_this__u8e3s4.w7x_1, _this__u8e3s4.x7x_1, this.y8f(_this__u8e3s4)));
|
|
1009
1009
|
};
|
|
1010
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1010
|
+
protoOf(AbstractOpenAILLMClient).y8f = function (_this__u8e3s4) {
|
|
1011
1011
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1012
1012
|
var builder = new JsonObjectBuilder();
|
|
1013
1013
|
put(builder, 'type', 'object');
|
|
@@ -1015,19 +1015,19 @@
|
|
|
1015
1015
|
putJsonArray(builder, 'required', AbstractOpenAILLMClient$paramsToJsonObject$lambda_0(_this__u8e3s4));
|
|
1016
1016
|
return builder.s1i();
|
|
1017
1017
|
};
|
|
1018
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1018
|
+
protoOf(AbstractOpenAILLMClient).u8f = function (_this__u8e3s4) {
|
|
1019
1019
|
var tmp;
|
|
1020
1020
|
if (equals(_this__u8e3s4, Auto_getInstance())) {
|
|
1021
|
-
tmp = new Mode(Companion_getInstance_15().
|
|
1021
|
+
tmp = new Mode(Companion_getInstance_15().z8f_1);
|
|
1022
1022
|
} else {
|
|
1023
1023
|
if (equals(_this__u8e3s4, None_getInstance())) {
|
|
1024
|
-
tmp = new Mode(Companion_getInstance_15().
|
|
1024
|
+
tmp = new Mode(Companion_getInstance_15().b8g_1);
|
|
1025
1025
|
} else {
|
|
1026
1026
|
if (equals(_this__u8e3s4, Required_getInstance())) {
|
|
1027
|
-
tmp = new Mode(Companion_getInstance_15().
|
|
1027
|
+
tmp = new Mode(Companion_getInstance_15().a8g_1);
|
|
1028
1028
|
} else {
|
|
1029
1029
|
if (_this__u8e3s4 instanceof Named) {
|
|
1030
|
-
tmp = new Function(new FunctionName(_this__u8e3s4.
|
|
1030
|
+
tmp = new Function(new FunctionName(_this__u8e3s4.r49_1));
|
|
1031
1031
|
} else {
|
|
1032
1032
|
noWhenBranchMatchedException();
|
|
1033
1033
|
}
|
|
@@ -1036,33 +1036,33 @@
|
|
|
1036
1036
|
}
|
|
1037
1037
|
return tmp;
|
|
1038
1038
|
};
|
|
1039
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1039
|
+
protoOf(AbstractOpenAILLMClient).d8f = function (_this__u8e3s4) {
|
|
1040
1040
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
1041
1041
|
var builder = new JsonObjectBuilder();
|
|
1042
|
-
put(builder, 'description', _this__u8e3s4.
|
|
1043
|
-
fillJsonSchema(this, builder, _this__u8e3s4.
|
|
1042
|
+
put(builder, 'description', _this__u8e3s4.b7y_1);
|
|
1043
|
+
fillJsonSchema(this, builder, _this__u8e3s4.c7y_1);
|
|
1044
1044
|
return builder.s1i();
|
|
1045
1045
|
};
|
|
1046
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1046
|
+
protoOf(AbstractOpenAILLMClient).c8g = function (_this__u8e3s4, finishReason, metaInfo) {
|
|
1047
1047
|
var tmp;
|
|
1048
1048
|
var tmp_0;
|
|
1049
1049
|
if (_this__u8e3s4 instanceof Assistant_0) {
|
|
1050
1050
|
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
1051
|
-
var this_0 = _this__u8e3s4.
|
|
1051
|
+
var this_0 = _this__u8e3s4.h8g_1;
|
|
1052
1052
|
tmp_0 = !(this_0 == null || this_0.m());
|
|
1053
1053
|
} else {
|
|
1054
1054
|
tmp_0 = false;
|
|
1055
1055
|
}
|
|
1056
1056
|
if (tmp_0) {
|
|
1057
1057
|
// Inline function 'kotlin.collections.map' call
|
|
1058
|
-
var this_1 = _this__u8e3s4.
|
|
1058
|
+
var this_1 = _this__u8e3s4.h8g_1;
|
|
1059
1059
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1060
1060
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
1061
1061
|
var _iterator__ex2g4s = this_1.p();
|
|
1062
1062
|
while (_iterator__ex2g4s.q()) {
|
|
1063
1063
|
var item = _iterator__ex2g4s.r();
|
|
1064
1064
|
// Inline function 'kotlin.takeIf' call
|
|
1065
|
-
var this_2 = item.
|
|
1065
|
+
var this_2 = item.r8g_1.p8g_1;
|
|
1066
1066
|
var tmp_1;
|
|
1067
1067
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1068
1068
|
if (charSequenceLength(this_2) > 0) {
|
|
@@ -1071,19 +1071,19 @@
|
|
|
1071
1071
|
tmp_1 = null;
|
|
1072
1072
|
}
|
|
1073
1073
|
var tmp0_elvis_lhs = tmp_1;
|
|
1074
|
-
var tmp$ret$4 = Call_init_$Create$(item.
|
|
1074
|
+
var tmp$ret$4 = Call_init_$Create$(item.q8g_1, item.r8g_1.o8g_1, tmp0_elvis_lhs == null ? '{}' : tmp0_elvis_lhs, metaInfo);
|
|
1075
1075
|
destination.h(tmp$ret$4);
|
|
1076
1076
|
}
|
|
1077
1077
|
tmp = destination;
|
|
1078
1078
|
} else {
|
|
1079
1079
|
if (!(_this__u8e3s4.v1j() == null)) {
|
|
1080
|
-
var tmp0_content = ensureNotNull(_this__u8e3s4.v1j()).
|
|
1080
|
+
var tmp0_content = ensureNotNull(_this__u8e3s4.v1j()).n8g();
|
|
1081
1081
|
tmp = listOf(Assistant_init_$Create$(tmp0_content, metaInfo, finishReason));
|
|
1082
1082
|
} else {
|
|
1083
1083
|
var tmp_2;
|
|
1084
1084
|
if (_this__u8e3s4 instanceof Assistant_0) {
|
|
1085
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
1086
|
-
tmp_2 = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1085
|
+
var tmp2_safe_receiver = _this__u8e3s4.e8g_1;
|
|
1086
|
+
tmp_2 = !((tmp2_safe_receiver == null ? null : tmp2_safe_receiver.j8g_1) == null);
|
|
1087
1087
|
} else {
|
|
1088
1088
|
tmp_2 = false;
|
|
1089
1089
|
}
|
|
@@ -1092,30 +1092,30 @@
|
|
|
1092
1092
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
1093
1093
|
// Inline function 'kotlin.apply' call
|
|
1094
1094
|
var this_3 = ArrayList_init_$Create$_0();
|
|
1095
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1095
|
+
var tmp0_safe_receiver = _this__u8e3s4.e8g_1.m8g_1;
|
|
1096
1096
|
if (tmp0_safe_receiver == null)
|
|
1097
1097
|
null;
|
|
1098
1098
|
else {
|
|
1099
1099
|
// Inline function 'kotlin.let' call
|
|
1100
1100
|
this_3.h(new Text(tmp0_safe_receiver));
|
|
1101
1101
|
}
|
|
1102
|
-
this_3.h(new Audio(new Base64(_this__u8e3s4.
|
|
1102
|
+
this_3.h(new Audio(new Base64(_this__u8e3s4.e8g_1.j8g_1), 'unknown'));
|
|
1103
1103
|
var tmp1_parts = this_3.e4();
|
|
1104
1104
|
tmp = listOf(new Assistant(tmp1_parts, metaInfo, finishReason));
|
|
1105
1105
|
} else {
|
|
1106
|
-
this.
|
|
1106
|
+
this.a8d_1.w3h(AbstractOpenAILLMClient$toMessageResponses$lambda(this));
|
|
1107
1107
|
// Inline function 'kotlin.error' call
|
|
1108
|
-
var message = 'Unexpected response from ' + this.
|
|
1108
|
+
var message = 'Unexpected response from ' + this.e8f() + ': no tool calls and no content';
|
|
1109
1109
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
return tmp;
|
|
1114
1114
|
};
|
|
1115
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1115
|
+
protoOf(AbstractOpenAILLMClient).t8g = function (_this__u8e3s4, capability, message) {
|
|
1116
1116
|
// Inline function 'kotlin.require' call
|
|
1117
|
-
if (!_this__u8e3s4.
|
|
1118
|
-
var tmp = 'Model ' + _this__u8e3s4.
|
|
1117
|
+
if (!_this__u8e3s4.l3h(capability)) {
|
|
1118
|
+
var tmp = 'Model ' + _this__u8e3s4.h3h_1 + ' does not support ' + capability.h3g_1;
|
|
1119
1119
|
var tmp_0;
|
|
1120
1120
|
if (message == null) {
|
|
1121
1121
|
tmp_0 = null;
|
|
@@ -1128,37 +1128,37 @@
|
|
|
1128
1128
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1129
1129
|
}
|
|
1130
1130
|
};
|
|
1131
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1131
|
+
protoOf(AbstractOpenAILLMClient).q8e = function (_this__u8e3s4, capability, message, $super) {
|
|
1132
1132
|
message = message === VOID ? null : message;
|
|
1133
1133
|
var tmp;
|
|
1134
1134
|
if ($super === VOID) {
|
|
1135
|
-
this.
|
|
1135
|
+
this.t8g(_this__u8e3s4, capability, message);
|
|
1136
1136
|
tmp = Unit_instance;
|
|
1137
1137
|
} else {
|
|
1138
|
-
tmp = $super.
|
|
1138
|
+
tmp = $super.t8g.call(this, _this__u8e3s4, capability, message);
|
|
1139
1139
|
}
|
|
1140
1140
|
return tmp;
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1142
|
+
protoOf(AbstractOpenAILLMClient).u8g = function (usage) {
|
|
1143
1143
|
var tmp = Companion_getInstance_0();
|
|
1144
|
-
var tmp_0 = usage == null ? null : usage.
|
|
1145
|
-
var tmp_1 = usage == null ? null : usage.
|
|
1146
|
-
return tmp.
|
|
1144
|
+
var tmp_0 = usage == null ? null : usage.x8g_1;
|
|
1145
|
+
var tmp_1 = usage == null ? null : usage.v8g_1;
|
|
1146
|
+
return tmp.i45(this.z8c_1, tmp_0, tmp_1, usage == null ? null : usage.w8g_1);
|
|
1147
1147
|
};
|
|
1148
|
-
protoOf(AbstractOpenAILLMClient).
|
|
1148
|
+
protoOf(AbstractOpenAILLMClient).a8h = function (schema, model) {
|
|
1149
1149
|
var tmp;
|
|
1150
1150
|
if (schema == null) {
|
|
1151
1151
|
tmp = null;
|
|
1152
1152
|
} else {
|
|
1153
1153
|
// Inline function 'kotlin.let' call
|
|
1154
1154
|
// Inline function 'kotlin.require' call
|
|
1155
|
-
if (!model.
|
|
1156
|
-
var message = 'Model ' + model.
|
|
1155
|
+
if (!model.i3h_1.w(schema.m49())) {
|
|
1156
|
+
var message = 'Model ' + model.h3h_1 + ' does not support structured output schema ' + schema.m3d();
|
|
1157
1157
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1158
1158
|
}
|
|
1159
1159
|
var tmp_0;
|
|
1160
1160
|
if (isInterface(schema, JSON_0)) {
|
|
1161
|
-
tmp_0 = new JsonSchema(new JsonSchemaObject(schema.
|
|
1161
|
+
tmp_0 = new JsonSchema(new JsonSchemaObject(schema.m3d(), VOID, schema.l49(), true));
|
|
1162
1162
|
} else {
|
|
1163
1163
|
noWhenBranchMatchedException();
|
|
1164
1164
|
}
|
|
@@ -1178,22 +1178,22 @@
|
|
|
1178
1178
|
tmp0_serialDesc.m16('content', false);
|
|
1179
1179
|
tmp0_serialDesc.m16('name', true);
|
|
1180
1180
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('role'));
|
|
1181
|
-
this.
|
|
1181
|
+
this.b8h_1 = tmp0_serialDesc;
|
|
1182
1182
|
}
|
|
1183
|
-
protoOf($serializer).
|
|
1184
|
-
var tmp0_desc = this.
|
|
1183
|
+
protoOf($serializer).c8h = function (encoder, value) {
|
|
1184
|
+
var tmp0_desc = this.b8h_1;
|
|
1185
1185
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1186
|
-
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.
|
|
1187
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1188
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1186
|
+
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.d8h_1);
|
|
1187
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.e8h_1 == null)) {
|
|
1188
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.e8h_1);
|
|
1189
1189
|
}
|
|
1190
1190
|
tmp1_output.xy(tmp0_desc);
|
|
1191
1191
|
};
|
|
1192
1192
|
protoOf($serializer).gv = function (encoder, value) {
|
|
1193
|
-
return this.
|
|
1193
|
+
return this.c8h(encoder, value instanceof Developer ? value : THROW_CCE());
|
|
1194
1194
|
};
|
|
1195
1195
|
protoOf($serializer).hv = function (decoder) {
|
|
1196
|
-
var tmp0_desc = this.
|
|
1196
|
+
var tmp0_desc = this.b8h_1;
|
|
1197
1197
|
var tmp1_flag = true;
|
|
1198
1198
|
var tmp2_index = 0;
|
|
1199
1199
|
var tmp3_bitMask0 = 0;
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
return Developer_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1229
1229
|
};
|
|
1230
1230
|
protoOf($serializer).fv = function () {
|
|
1231
|
-
return this.
|
|
1231
|
+
return this.b8h_1;
|
|
1232
1232
|
};
|
|
1233
1233
|
protoOf($serializer).d17 = function () {
|
|
1234
1234
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1244,13 +1244,13 @@
|
|
|
1244
1244
|
}
|
|
1245
1245
|
function Developer_init_$Init$(seen0, content, name, serializationConstructorMarker, $this) {
|
|
1246
1246
|
if (!(1 === (1 & seen0))) {
|
|
1247
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance().
|
|
1247
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance().b8h_1);
|
|
1248
1248
|
}
|
|
1249
|
-
$this.
|
|
1249
|
+
$this.d8h_1 = content;
|
|
1250
1250
|
if (0 === (seen0 & 2))
|
|
1251
|
-
$this.
|
|
1251
|
+
$this.e8h_1 = null;
|
|
1252
1252
|
else
|
|
1253
|
-
$this.
|
|
1253
|
+
$this.e8h_1 = name;
|
|
1254
1254
|
return $this;
|
|
1255
1255
|
}
|
|
1256
1256
|
function Developer_init_$Create$(seen0, content, name, serializationConstructorMarker) {
|
|
@@ -1268,22 +1268,22 @@
|
|
|
1268
1268
|
tmp0_serialDesc.m16('content', false);
|
|
1269
1269
|
tmp0_serialDesc.m16('name', true);
|
|
1270
1270
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('role'));
|
|
1271
|
-
this.
|
|
1271
|
+
this.f8h_1 = tmp0_serialDesc;
|
|
1272
1272
|
}
|
|
1273
|
-
protoOf($serializer_0).
|
|
1274
|
-
var tmp0_desc = this.
|
|
1273
|
+
protoOf($serializer_0).g8h = function (encoder, value) {
|
|
1274
|
+
var tmp0_desc = this.f8h_1;
|
|
1275
1275
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1276
|
-
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.
|
|
1277
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1278
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1276
|
+
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.h8h_1);
|
|
1277
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.i8h_1 == null)) {
|
|
1278
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.i8h_1);
|
|
1279
1279
|
}
|
|
1280
1280
|
tmp1_output.xy(tmp0_desc);
|
|
1281
1281
|
};
|
|
1282
1282
|
protoOf($serializer_0).gv = function (encoder, value) {
|
|
1283
|
-
return this.
|
|
1283
|
+
return this.g8h(encoder, value instanceof System_0 ? value : THROW_CCE());
|
|
1284
1284
|
};
|
|
1285
1285
|
protoOf($serializer_0).hv = function (decoder) {
|
|
1286
|
-
var tmp0_desc = this.
|
|
1286
|
+
var tmp0_desc = this.f8h_1;
|
|
1287
1287
|
var tmp1_flag = true;
|
|
1288
1288
|
var tmp2_index = 0;
|
|
1289
1289
|
var tmp3_bitMask0 = 0;
|
|
@@ -1318,7 +1318,7 @@
|
|
|
1318
1318
|
return System_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf($serializer_0).fv = function () {
|
|
1321
|
-
return this.
|
|
1321
|
+
return this.f8h_1;
|
|
1322
1322
|
};
|
|
1323
1323
|
protoOf($serializer_0).d17 = function () {
|
|
1324
1324
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1334,13 +1334,13 @@
|
|
|
1334
1334
|
}
|
|
1335
1335
|
function System_init_$Init$(seen0, content, name, serializationConstructorMarker, $this) {
|
|
1336
1336
|
if (!(1 === (1 & seen0))) {
|
|
1337
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
1337
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().f8h_1);
|
|
1338
1338
|
}
|
|
1339
|
-
$this.
|
|
1339
|
+
$this.h8h_1 = content;
|
|
1340
1340
|
if (0 === (seen0 & 2))
|
|
1341
|
-
$this.
|
|
1341
|
+
$this.i8h_1 = null;
|
|
1342
1342
|
else
|
|
1343
|
-
$this.
|
|
1343
|
+
$this.i8h_1 = name;
|
|
1344
1344
|
return $this;
|
|
1345
1345
|
}
|
|
1346
1346
|
function System_init_$Create$(seen0, content, name, serializationConstructorMarker) {
|
|
@@ -1358,22 +1358,22 @@
|
|
|
1358
1358
|
tmp0_serialDesc.m16('content', false);
|
|
1359
1359
|
tmp0_serialDesc.m16('name', true);
|
|
1360
1360
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('role'));
|
|
1361
|
-
this.
|
|
1361
|
+
this.j8h_1 = tmp0_serialDesc;
|
|
1362
1362
|
}
|
|
1363
|
-
protoOf($serializer_1).
|
|
1364
|
-
var tmp0_desc = this.
|
|
1363
|
+
protoOf($serializer_1).k8h = function (encoder, value) {
|
|
1364
|
+
var tmp0_desc = this.j8h_1;
|
|
1365
1365
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1366
|
-
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.
|
|
1367
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1368
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1366
|
+
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.l8h_1);
|
|
1367
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.m8h_1 == null)) {
|
|
1368
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.m8h_1);
|
|
1369
1369
|
}
|
|
1370
1370
|
tmp1_output.xy(tmp0_desc);
|
|
1371
1371
|
};
|
|
1372
1372
|
protoOf($serializer_1).gv = function (encoder, value) {
|
|
1373
|
-
return this.
|
|
1373
|
+
return this.k8h(encoder, value instanceof User_0 ? value : THROW_CCE());
|
|
1374
1374
|
};
|
|
1375
1375
|
protoOf($serializer_1).hv = function (decoder) {
|
|
1376
|
-
var tmp0_desc = this.
|
|
1376
|
+
var tmp0_desc = this.j8h_1;
|
|
1377
1377
|
var tmp1_flag = true;
|
|
1378
1378
|
var tmp2_index = 0;
|
|
1379
1379
|
var tmp3_bitMask0 = 0;
|
|
@@ -1408,7 +1408,7 @@
|
|
|
1408
1408
|
return User_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1409
1409
|
};
|
|
1410
1410
|
protoOf($serializer_1).fv = function () {
|
|
1411
|
-
return this.
|
|
1411
|
+
return this.j8h_1;
|
|
1412
1412
|
};
|
|
1413
1413
|
protoOf($serializer_1).d17 = function () {
|
|
1414
1414
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1424,13 +1424,13 @@
|
|
|
1424
1424
|
}
|
|
1425
1425
|
function User_init_$Init$(seen0, content, name, serializationConstructorMarker, $this) {
|
|
1426
1426
|
if (!(1 === (1 & seen0))) {
|
|
1427
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_1().
|
|
1427
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_1().j8h_1);
|
|
1428
1428
|
}
|
|
1429
|
-
$this.
|
|
1429
|
+
$this.l8h_1 = content;
|
|
1430
1430
|
if (0 === (seen0 & 2))
|
|
1431
|
-
$this.
|
|
1431
|
+
$this.m8h_1 = null;
|
|
1432
1432
|
else
|
|
1433
|
-
$this.
|
|
1433
|
+
$this.m8h_1 = name;
|
|
1434
1434
|
return $this;
|
|
1435
1435
|
}
|
|
1436
1436
|
function User_init_$Create$(seen0, content, name, serializationConstructorMarker) {
|
|
@@ -1451,7 +1451,7 @@
|
|
|
1451
1451
|
// Inline function 'kotlin.arrayOf' call
|
|
1452
1452
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1453
1453
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1454
|
-
tmp.
|
|
1454
|
+
tmp.n8h_1 = [null, null, null, null, tmp_1, lazy(tmp_2, OpenAIMessage$Assistant$Companion$$childSerializers$_anonymous__baflt1_0)];
|
|
1455
1455
|
}
|
|
1456
1456
|
var Companion_instance_4;
|
|
1457
1457
|
function Companion_getInstance_5() {
|
|
@@ -1469,37 +1469,37 @@
|
|
|
1469
1469
|
tmp0_serialDesc.m16('toolCalls', true);
|
|
1470
1470
|
tmp0_serialDesc.m16('annotations', true);
|
|
1471
1471
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('role'));
|
|
1472
|
-
this.
|
|
1472
|
+
this.o8h_1 = tmp0_serialDesc;
|
|
1473
1473
|
}
|
|
1474
|
-
protoOf($serializer_2).
|
|
1475
|
-
var tmp0_desc = this.
|
|
1474
|
+
protoOf($serializer_2).p8h = function (encoder, value) {
|
|
1475
|
+
var tmp0_desc = this.o8h_1;
|
|
1476
1476
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1477
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
1478
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
1479
|
-
tmp1_output.p10(tmp0_desc, 0, ContentSerializer_getInstance(), value.
|
|
1477
|
+
var tmp2_cached = Companion_getInstance_5().n8h_1;
|
|
1478
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.d8g_1 == null)) {
|
|
1479
|
+
tmp1_output.p10(tmp0_desc, 0, ContentSerializer_getInstance(), value.d8g_1);
|
|
1480
1480
|
}
|
|
1481
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1482
|
-
tmp1_output.p10(tmp0_desc, 1, $serializer_getInstance_30(), value.
|
|
1481
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.e8g_1 == null)) {
|
|
1482
|
+
tmp1_output.p10(tmp0_desc, 1, $serializer_getInstance_30(), value.e8g_1);
|
|
1483
1483
|
}
|
|
1484
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
1485
|
-
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1484
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.f8g_1 == null)) {
|
|
1485
|
+
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.f8g_1);
|
|
1486
1486
|
}
|
|
1487
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
1488
|
-
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
1487
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.g8g_1 == null)) {
|
|
1488
|
+
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.g8g_1);
|
|
1489
1489
|
}
|
|
1490
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
1491
|
-
tmp1_output.p10(tmp0_desc, 4, tmp2_cached[4].b1(), value.
|
|
1490
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.h8g_1 == null)) {
|
|
1491
|
+
tmp1_output.p10(tmp0_desc, 4, tmp2_cached[4].b1(), value.h8g_1);
|
|
1492
1492
|
}
|
|
1493
|
-
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.
|
|
1494
|
-
tmp1_output.p10(tmp0_desc, 5, tmp2_cached[5].b1(), value.
|
|
1493
|
+
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.i8g_1 == null)) {
|
|
1494
|
+
tmp1_output.p10(tmp0_desc, 5, tmp2_cached[5].b1(), value.i8g_1);
|
|
1495
1495
|
}
|
|
1496
1496
|
tmp1_output.xy(tmp0_desc);
|
|
1497
1497
|
};
|
|
1498
1498
|
protoOf($serializer_2).gv = function (encoder, value) {
|
|
1499
|
-
return this.
|
|
1499
|
+
return this.p8h(encoder, value instanceof Assistant_0 ? value : THROW_CCE());
|
|
1500
1500
|
};
|
|
1501
1501
|
protoOf($serializer_2).hv = function (decoder) {
|
|
1502
|
-
var tmp0_desc = this.
|
|
1502
|
+
var tmp0_desc = this.o8h_1;
|
|
1503
1503
|
var tmp1_flag = true;
|
|
1504
1504
|
var tmp2_index = 0;
|
|
1505
1505
|
var tmp3_bitMask0 = 0;
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
var tmp8_local4 = null;
|
|
1511
1511
|
var tmp9_local5 = null;
|
|
1512
1512
|
var tmp10_input = decoder.wy(tmp0_desc);
|
|
1513
|
-
var tmp11_cached = Companion_getInstance_5().
|
|
1513
|
+
var tmp11_cached = Companion_getInstance_5().n8h_1;
|
|
1514
1514
|
if (tmp10_input.mz()) {
|
|
1515
1515
|
tmp4_local0 = tmp10_input.kz(tmp0_desc, 0, ContentSerializer_getInstance(), tmp4_local0);
|
|
1516
1516
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1563,10 +1563,10 @@
|
|
|
1563
1563
|
return Assistant_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1564
1564
|
};
|
|
1565
1565
|
protoOf($serializer_2).fv = function () {
|
|
1566
|
-
return this.
|
|
1566
|
+
return this.o8h_1;
|
|
1567
1567
|
};
|
|
1568
1568
|
protoOf($serializer_2).d17 = function () {
|
|
1569
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
1569
|
+
var tmp0_cached = Companion_getInstance_5().n8h_1;
|
|
1570
1570
|
// Inline function 'kotlin.arrayOf' call
|
|
1571
1571
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1572
1572
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1580,32 +1580,32 @@
|
|
|
1580
1580
|
}
|
|
1581
1581
|
function Assistant_init_$Init$(seen0, content, audio, name, refusal, toolCalls, annotations, serializationConstructorMarker, $this) {
|
|
1582
1582
|
if (!(0 === (0 & seen0))) {
|
|
1583
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().
|
|
1583
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().o8h_1);
|
|
1584
1584
|
}
|
|
1585
1585
|
if (0 === (seen0 & 1))
|
|
1586
|
-
$this.
|
|
1586
|
+
$this.d8g_1 = null;
|
|
1587
1587
|
else
|
|
1588
|
-
$this.
|
|
1588
|
+
$this.d8g_1 = content;
|
|
1589
1589
|
if (0 === (seen0 & 2))
|
|
1590
|
-
$this.
|
|
1590
|
+
$this.e8g_1 = null;
|
|
1591
1591
|
else
|
|
1592
|
-
$this.
|
|
1592
|
+
$this.e8g_1 = audio;
|
|
1593
1593
|
if (0 === (seen0 & 4))
|
|
1594
|
-
$this.
|
|
1594
|
+
$this.f8g_1 = null;
|
|
1595
1595
|
else
|
|
1596
|
-
$this.
|
|
1596
|
+
$this.f8g_1 = name;
|
|
1597
1597
|
if (0 === (seen0 & 8))
|
|
1598
|
-
$this.
|
|
1598
|
+
$this.g8g_1 = null;
|
|
1599
1599
|
else
|
|
1600
|
-
$this.
|
|
1600
|
+
$this.g8g_1 = refusal;
|
|
1601
1601
|
if (0 === (seen0 & 16))
|
|
1602
|
-
$this.
|
|
1602
|
+
$this.h8g_1 = null;
|
|
1603
1603
|
else
|
|
1604
|
-
$this.
|
|
1604
|
+
$this.h8g_1 = toolCalls;
|
|
1605
1605
|
if (0 === (seen0 & 32))
|
|
1606
|
-
$this.
|
|
1606
|
+
$this.i8g_1 = null;
|
|
1607
1607
|
else
|
|
1608
|
-
$this.
|
|
1608
|
+
$this.i8g_1 = annotations;
|
|
1609
1609
|
return $this;
|
|
1610
1610
|
}
|
|
1611
1611
|
function Assistant_init_$Create$_0(seen0, content, audio, name, refusal, toolCalls, annotations, serializationConstructorMarker) {
|
|
@@ -1623,20 +1623,20 @@
|
|
|
1623
1623
|
tmp0_serialDesc.m16('content', false);
|
|
1624
1624
|
tmp0_serialDesc.m16('toolCallId', false);
|
|
1625
1625
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('role'));
|
|
1626
|
-
this.
|
|
1626
|
+
this.q8h_1 = tmp0_serialDesc;
|
|
1627
1627
|
}
|
|
1628
|
-
protoOf($serializer_3).
|
|
1629
|
-
var tmp0_desc = this.
|
|
1628
|
+
protoOf($serializer_3).r8h = function (encoder, value) {
|
|
1629
|
+
var tmp0_desc = this.q8h_1;
|
|
1630
1630
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1631
|
-
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.
|
|
1632
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
1631
|
+
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.s8h_1);
|
|
1632
|
+
tmp1_output.l10(tmp0_desc, 1, value.t8h_1);
|
|
1633
1633
|
tmp1_output.xy(tmp0_desc);
|
|
1634
1634
|
};
|
|
1635
1635
|
protoOf($serializer_3).gv = function (encoder, value) {
|
|
1636
|
-
return this.
|
|
1636
|
+
return this.r8h(encoder, value instanceof Tool ? value : THROW_CCE());
|
|
1637
1637
|
};
|
|
1638
1638
|
protoOf($serializer_3).hv = function (decoder) {
|
|
1639
|
-
var tmp0_desc = this.
|
|
1639
|
+
var tmp0_desc = this.q8h_1;
|
|
1640
1640
|
var tmp1_flag = true;
|
|
1641
1641
|
var tmp2_index = 0;
|
|
1642
1642
|
var tmp3_bitMask0 = 0;
|
|
@@ -1671,7 +1671,7 @@
|
|
|
1671
1671
|
return Tool_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1672
1672
|
};
|
|
1673
1673
|
protoOf($serializer_3).fv = function () {
|
|
1674
|
-
return this.
|
|
1674
|
+
return this.q8h_1;
|
|
1675
1675
|
};
|
|
1676
1676
|
protoOf($serializer_3).d17 = function () {
|
|
1677
1677
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1687,10 +1687,10 @@
|
|
|
1687
1687
|
}
|
|
1688
1688
|
function Tool_init_$Init$(seen0, content, toolCallId, serializationConstructorMarker, $this) {
|
|
1689
1689
|
if (!(3 === (3 & seen0))) {
|
|
1690
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().
|
|
1690
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_3().q8h_1);
|
|
1691
1691
|
}
|
|
1692
|
-
$this.
|
|
1693
|
-
$this.
|
|
1692
|
+
$this.s8h_1 = content;
|
|
1693
|
+
$this.t8h_1 = toolCallId;
|
|
1694
1694
|
return $this;
|
|
1695
1695
|
}
|
|
1696
1696
|
function Tool_init_$Create$(seen0, content, toolCallId, serializationConstructorMarker) {
|
|
@@ -1698,27 +1698,27 @@
|
|
|
1698
1698
|
}
|
|
1699
1699
|
function Developer(content, name) {
|
|
1700
1700
|
name = name === VOID ? null : name;
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1701
|
+
this.d8h_1 = content;
|
|
1702
|
+
this.e8h_1 = name;
|
|
1703
1703
|
}
|
|
1704
1704
|
protoOf(Developer).v1j = function () {
|
|
1705
|
-
return this.
|
|
1705
|
+
return this.d8h_1;
|
|
1706
1706
|
};
|
|
1707
1707
|
function System_0(content, name) {
|
|
1708
1708
|
name = name === VOID ? null : name;
|
|
1709
|
-
this.
|
|
1710
|
-
this.
|
|
1709
|
+
this.h8h_1 = content;
|
|
1710
|
+
this.i8h_1 = name;
|
|
1711
1711
|
}
|
|
1712
1712
|
protoOf(System_0).v1j = function () {
|
|
1713
|
-
return this.
|
|
1713
|
+
return this.h8h_1;
|
|
1714
1714
|
};
|
|
1715
1715
|
function User_0(content, name) {
|
|
1716
1716
|
name = name === VOID ? null : name;
|
|
1717
|
-
this.
|
|
1718
|
-
this.
|
|
1717
|
+
this.l8h_1 = content;
|
|
1718
|
+
this.m8h_1 = name;
|
|
1719
1719
|
}
|
|
1720
1720
|
protoOf(User_0).v1j = function () {
|
|
1721
|
-
return this.
|
|
1721
|
+
return this.l8h_1;
|
|
1722
1722
|
};
|
|
1723
1723
|
function Assistant_0(content, audio, name, refusal, toolCalls, annotations) {
|
|
1724
1724
|
Companion_getInstance_5();
|
|
@@ -1728,22 +1728,22 @@
|
|
|
1728
1728
|
refusal = refusal === VOID ? null : refusal;
|
|
1729
1729
|
toolCalls = toolCalls === VOID ? null : toolCalls;
|
|
1730
1730
|
annotations = annotations === VOID ? null : annotations;
|
|
1731
|
-
this.
|
|
1732
|
-
this.
|
|
1733
|
-
this.
|
|
1734
|
-
this.
|
|
1735
|
-
this.
|
|
1736
|
-
this.
|
|
1731
|
+
this.d8g_1 = content;
|
|
1732
|
+
this.e8g_1 = audio;
|
|
1733
|
+
this.f8g_1 = name;
|
|
1734
|
+
this.g8g_1 = refusal;
|
|
1735
|
+
this.h8g_1 = toolCalls;
|
|
1736
|
+
this.i8g_1 = annotations;
|
|
1737
1737
|
}
|
|
1738
1738
|
protoOf(Assistant_0).v1j = function () {
|
|
1739
|
-
return this.
|
|
1739
|
+
return this.d8g_1;
|
|
1740
1740
|
};
|
|
1741
1741
|
function Tool(content, toolCallId) {
|
|
1742
|
-
this.
|
|
1743
|
-
this.
|
|
1742
|
+
this.s8h_1 = content;
|
|
1743
|
+
this.t8h_1 = toolCallId;
|
|
1744
1744
|
}
|
|
1745
1745
|
protoOf(Tool).v1j = function () {
|
|
1746
|
-
return this.
|
|
1746
|
+
return this.s8h_1;
|
|
1747
1747
|
};
|
|
1748
1748
|
function Companion_5() {
|
|
1749
1749
|
}
|
|
@@ -1782,17 +1782,17 @@
|
|
|
1782
1782
|
$serializer_instance_4 = this;
|
|
1783
1783
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('text', this, 0);
|
|
1784
1784
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('type'));
|
|
1785
|
-
this.
|
|
1785
|
+
this.u8h_1 = tmp0_serialDesc;
|
|
1786
1786
|
}
|
|
1787
|
-
protoOf($serializer_4).
|
|
1788
|
-
var tmp0_desc = this.
|
|
1787
|
+
protoOf($serializer_4).v8h = function (encoder, value) {
|
|
1788
|
+
var tmp0_desc = this.u8h_1;
|
|
1789
1789
|
encoder.wy(tmp0_desc).xy(tmp0_desc);
|
|
1790
1790
|
};
|
|
1791
1791
|
protoOf($serializer_4).gv = function (encoder, value) {
|
|
1792
|
-
return this.
|
|
1792
|
+
return this.v8h(encoder, value instanceof Text_0 ? value : THROW_CCE());
|
|
1793
1793
|
};
|
|
1794
1794
|
protoOf($serializer_4).hv = function (decoder) {
|
|
1795
|
-
var tmp0_desc = this.
|
|
1795
|
+
var tmp0_desc = this.u8h_1;
|
|
1796
1796
|
var tmp1_flag = true;
|
|
1797
1797
|
var tmp2_index = 0;
|
|
1798
1798
|
var tmp4_input = decoder.wy(tmp0_desc);
|
|
@@ -1808,7 +1808,7 @@
|
|
|
1808
1808
|
return Text_init_$Create$(0, null);
|
|
1809
1809
|
};
|
|
1810
1810
|
protoOf($serializer_4).fv = function () {
|
|
1811
|
-
return this.
|
|
1811
|
+
return this.u8h_1;
|
|
1812
1812
|
};
|
|
1813
1813
|
protoOf($serializer_4).d17 = function () {
|
|
1814
1814
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1824,7 +1824,7 @@
|
|
|
1824
1824
|
}
|
|
1825
1825
|
function Text_init_$Init$(seen0, serializationConstructorMarker, $this) {
|
|
1826
1826
|
if (!(0 === (0 & seen0))) {
|
|
1827
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().
|
|
1827
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_4().u8h_1);
|
|
1828
1828
|
}
|
|
1829
1829
|
return $this;
|
|
1830
1830
|
}
|
|
@@ -1842,19 +1842,19 @@
|
|
|
1842
1842
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('json_schema', this, 1);
|
|
1843
1843
|
tmp0_serialDesc.m16('jsonSchema', false);
|
|
1844
1844
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('type'));
|
|
1845
|
-
this.
|
|
1845
|
+
this.w8h_1 = tmp0_serialDesc;
|
|
1846
1846
|
}
|
|
1847
|
-
protoOf($serializer_5).
|
|
1848
|
-
var tmp0_desc = this.
|
|
1847
|
+
protoOf($serializer_5).x8h = function (encoder, value) {
|
|
1848
|
+
var tmp0_desc = this.w8h_1;
|
|
1849
1849
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1850
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_31(), value.
|
|
1850
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_31(), value.y8h_1);
|
|
1851
1851
|
tmp1_output.xy(tmp0_desc);
|
|
1852
1852
|
};
|
|
1853
1853
|
protoOf($serializer_5).gv = function (encoder, value) {
|
|
1854
|
-
return this.
|
|
1854
|
+
return this.x8h(encoder, value instanceof JsonSchema ? value : THROW_CCE());
|
|
1855
1855
|
};
|
|
1856
1856
|
protoOf($serializer_5).hv = function (decoder) {
|
|
1857
|
-
var tmp0_desc = this.
|
|
1857
|
+
var tmp0_desc = this.w8h_1;
|
|
1858
1858
|
var tmp1_flag = true;
|
|
1859
1859
|
var tmp2_index = 0;
|
|
1860
1860
|
var tmp3_bitMask0 = 0;
|
|
@@ -1882,7 +1882,7 @@
|
|
|
1882
1882
|
return JsonSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
1883
1883
|
};
|
|
1884
1884
|
protoOf($serializer_5).fv = function () {
|
|
1885
|
-
return this.
|
|
1885
|
+
return this.w8h_1;
|
|
1886
1886
|
};
|
|
1887
1887
|
protoOf($serializer_5).d17 = function () {
|
|
1888
1888
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1898,9 +1898,9 @@
|
|
|
1898
1898
|
}
|
|
1899
1899
|
function JsonSchema_init_$Init$(seen0, jsonSchema, serializationConstructorMarker, $this) {
|
|
1900
1900
|
if (!(1 === (1 & seen0))) {
|
|
1901
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().
|
|
1901
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().w8h_1);
|
|
1902
1902
|
}
|
|
1903
|
-
$this.
|
|
1903
|
+
$this.y8h_1 = jsonSchema;
|
|
1904
1904
|
return $this;
|
|
1905
1905
|
}
|
|
1906
1906
|
function JsonSchema_init_$Create$(seen0, jsonSchema, serializationConstructorMarker) {
|
|
@@ -1916,17 +1916,17 @@
|
|
|
1916
1916
|
$serializer_instance_6 = this;
|
|
1917
1917
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('json_object', this, 0);
|
|
1918
1918
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('type'));
|
|
1919
|
-
this.
|
|
1919
|
+
this.z8h_1 = tmp0_serialDesc;
|
|
1920
1920
|
}
|
|
1921
|
-
protoOf($serializer_6).
|
|
1922
|
-
var tmp0_desc = this.
|
|
1921
|
+
protoOf($serializer_6).a8i = function (encoder, value) {
|
|
1922
|
+
var tmp0_desc = this.z8h_1;
|
|
1923
1923
|
encoder.wy(tmp0_desc).xy(tmp0_desc);
|
|
1924
1924
|
};
|
|
1925
1925
|
protoOf($serializer_6).gv = function (encoder, value) {
|
|
1926
|
-
return this.
|
|
1926
|
+
return this.a8i(encoder, value instanceof JsonObject_0 ? value : THROW_CCE());
|
|
1927
1927
|
};
|
|
1928
1928
|
protoOf($serializer_6).hv = function (decoder) {
|
|
1929
|
-
var tmp0_desc = this.
|
|
1929
|
+
var tmp0_desc = this.z8h_1;
|
|
1930
1930
|
var tmp1_flag = true;
|
|
1931
1931
|
var tmp2_index = 0;
|
|
1932
1932
|
var tmp4_input = decoder.wy(tmp0_desc);
|
|
@@ -1942,7 +1942,7 @@
|
|
|
1942
1942
|
return JsonObject_init_$Create$(0, null);
|
|
1943
1943
|
};
|
|
1944
1944
|
protoOf($serializer_6).fv = function () {
|
|
1945
|
-
return this.
|
|
1945
|
+
return this.z8h_1;
|
|
1946
1946
|
};
|
|
1947
1947
|
protoOf($serializer_6).d17 = function () {
|
|
1948
1948
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1958,7 +1958,7 @@
|
|
|
1958
1958
|
}
|
|
1959
1959
|
function JsonObject_init_$Init$(seen0, serializationConstructorMarker, $this) {
|
|
1960
1960
|
if (!(0 === (0 & seen0))) {
|
|
1961
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().
|
|
1961
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_6().z8h_1);
|
|
1962
1962
|
}
|
|
1963
1963
|
return $this;
|
|
1964
1964
|
}
|
|
@@ -1968,7 +1968,7 @@
|
|
|
1968
1968
|
function Text_0() {
|
|
1969
1969
|
}
|
|
1970
1970
|
function JsonSchema(jsonSchema) {
|
|
1971
|
-
this.
|
|
1971
|
+
this.y8h_1 = jsonSchema;
|
|
1972
1972
|
}
|
|
1973
1973
|
function JsonObject_0() {
|
|
1974
1974
|
}
|
|
@@ -2020,10 +2020,10 @@
|
|
|
2020
2020
|
$serializer_instance_7 = this;
|
|
2021
2021
|
var tmp0_serialDesc = new InlineClassDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIToolChoice.Mode', this);
|
|
2022
2022
|
tmp0_serialDesc.m16('value', false);
|
|
2023
|
-
this.
|
|
2023
|
+
this.b8i_1 = tmp0_serialDesc;
|
|
2024
2024
|
}
|
|
2025
|
-
protoOf($serializer_7).
|
|
2026
|
-
var tmp0_inlineEncoder = encoder.c10(this.
|
|
2025
|
+
protoOf($serializer_7).c8i = function (encoder, value) {
|
|
2026
|
+
var tmp0_inlineEncoder = encoder.c10(this.b8i_1);
|
|
2027
2027
|
if (tmp0_inlineEncoder == null)
|
|
2028
2028
|
null;
|
|
2029
2029
|
else {
|
|
@@ -2031,16 +2031,16 @@
|
|
|
2031
2031
|
}
|
|
2032
2032
|
};
|
|
2033
2033
|
protoOf($serializer_7).gv = function (encoder, value) {
|
|
2034
|
-
return this.
|
|
2034
|
+
return this.c8i(encoder, value instanceof Mode ? value.d8i_1 : THROW_CCE());
|
|
2035
2035
|
};
|
|
2036
|
-
protoOf($serializer_7).
|
|
2037
|
-
return _Mode___init__impl__3rgsrm(decoder.ty(this.
|
|
2036
|
+
protoOf($serializer_7).e8i = function (decoder) {
|
|
2037
|
+
return _Mode___init__impl__3rgsrm(decoder.ty(this.b8i_1).ry());
|
|
2038
2038
|
};
|
|
2039
2039
|
protoOf($serializer_7).hv = function (decoder) {
|
|
2040
|
-
return new Mode(this.
|
|
2040
|
+
return new Mode(this.e8i(decoder));
|
|
2041
2041
|
};
|
|
2042
2042
|
protoOf($serializer_7).fv = function () {
|
|
2043
|
-
return this.
|
|
2043
|
+
return this.b8i_1;
|
|
2044
2044
|
};
|
|
2045
2045
|
protoOf($serializer_7).d17 = function () {
|
|
2046
2046
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2063,7 +2063,7 @@
|
|
|
2063
2063
|
function Mode__equals_impl_uwixm3($this, other) {
|
|
2064
2064
|
if (!(other instanceof Mode))
|
|
2065
2065
|
return false;
|
|
2066
|
-
if (!($this === (other instanceof Mode ? other.
|
|
2066
|
+
if (!($this === (other instanceof Mode ? other.d8i_1 : THROW_CCE())))
|
|
2067
2067
|
return false;
|
|
2068
2068
|
return true;
|
|
2069
2069
|
}
|
|
@@ -2077,19 +2077,19 @@
|
|
|
2077
2077
|
$serializer_instance_8 = this;
|
|
2078
2078
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIToolChoice.FunctionName', this, 1);
|
|
2079
2079
|
tmp0_serialDesc.m16('name', false);
|
|
2080
|
-
this.
|
|
2080
|
+
this.f8i_1 = tmp0_serialDesc;
|
|
2081
2081
|
}
|
|
2082
|
-
protoOf($serializer_8).
|
|
2083
|
-
var tmp0_desc = this.
|
|
2082
|
+
protoOf($serializer_8).g8i = function (encoder, value) {
|
|
2083
|
+
var tmp0_desc = this.f8i_1;
|
|
2084
2084
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2085
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2085
|
+
tmp1_output.l10(tmp0_desc, 0, value.h8i_1);
|
|
2086
2086
|
tmp1_output.xy(tmp0_desc);
|
|
2087
2087
|
};
|
|
2088
2088
|
protoOf($serializer_8).gv = function (encoder, value) {
|
|
2089
|
-
return this.
|
|
2089
|
+
return this.g8i(encoder, value instanceof FunctionName ? value : THROW_CCE());
|
|
2090
2090
|
};
|
|
2091
2091
|
protoOf($serializer_8).hv = function (decoder) {
|
|
2092
|
-
var tmp0_desc = this.
|
|
2092
|
+
var tmp0_desc = this.f8i_1;
|
|
2093
2093
|
var tmp1_flag = true;
|
|
2094
2094
|
var tmp2_index = 0;
|
|
2095
2095
|
var tmp3_bitMask0 = 0;
|
|
@@ -2117,7 +2117,7 @@
|
|
|
2117
2117
|
return FunctionName_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
2118
2118
|
};
|
|
2119
2119
|
protoOf($serializer_8).fv = function () {
|
|
2120
|
-
return this.
|
|
2120
|
+
return this.f8i_1;
|
|
2121
2121
|
};
|
|
2122
2122
|
protoOf($serializer_8).d17 = function () {
|
|
2123
2123
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2133,9 +2133,9 @@
|
|
|
2133
2133
|
}
|
|
2134
2134
|
function FunctionName_init_$Init$(seen0, name, serializationConstructorMarker, $this) {
|
|
2135
2135
|
if (!(1 === (1 & seen0))) {
|
|
2136
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().
|
|
2136
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().f8i_1);
|
|
2137
2137
|
}
|
|
2138
|
-
$this.
|
|
2138
|
+
$this.h8i_1 = name;
|
|
2139
2139
|
return $this;
|
|
2140
2140
|
}
|
|
2141
2141
|
function FunctionName_init_$Create$(seen0, name, serializationConstructorMarker) {
|
|
@@ -2155,22 +2155,22 @@
|
|
|
2155
2155
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIToolChoice.Function', this, 2);
|
|
2156
2156
|
tmp0_serialDesc.m16('function', false);
|
|
2157
2157
|
tmp0_serialDesc.m16('type', true);
|
|
2158
|
-
this.
|
|
2158
|
+
this.i8i_1 = tmp0_serialDesc;
|
|
2159
2159
|
}
|
|
2160
|
-
protoOf($serializer_9).
|
|
2161
|
-
var tmp0_desc = this.
|
|
2160
|
+
protoOf($serializer_9).j8i = function (encoder, value) {
|
|
2161
|
+
var tmp0_desc = this.i8i_1;
|
|
2162
2162
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2163
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_8(), value.
|
|
2164
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2165
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
2163
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_8(), value.k8i_1);
|
|
2164
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.l8i_1 === 'function')) {
|
|
2165
|
+
tmp1_output.l10(tmp0_desc, 1, value.l8i_1);
|
|
2166
2166
|
}
|
|
2167
2167
|
tmp1_output.xy(tmp0_desc);
|
|
2168
2168
|
};
|
|
2169
2169
|
protoOf($serializer_9).gv = function (encoder, value) {
|
|
2170
|
-
return this.
|
|
2170
|
+
return this.j8i(encoder, value instanceof Function ? value : THROW_CCE());
|
|
2171
2171
|
};
|
|
2172
2172
|
protoOf($serializer_9).hv = function (decoder) {
|
|
2173
|
-
var tmp0_desc = this.
|
|
2173
|
+
var tmp0_desc = this.i8i_1;
|
|
2174
2174
|
var tmp1_flag = true;
|
|
2175
2175
|
var tmp2_index = 0;
|
|
2176
2176
|
var tmp3_bitMask0 = 0;
|
|
@@ -2205,7 +2205,7 @@
|
|
|
2205
2205
|
return Function_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2206
2206
|
};
|
|
2207
2207
|
protoOf($serializer_9).fv = function () {
|
|
2208
|
-
return this.
|
|
2208
|
+
return this.i8i_1;
|
|
2209
2209
|
};
|
|
2210
2210
|
protoOf($serializer_9).d17 = function () {
|
|
2211
2211
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2221,42 +2221,42 @@
|
|
|
2221
2221
|
}
|
|
2222
2222
|
function Function_init_$Init$(seen0, function_0, type, serializationConstructorMarker, $this) {
|
|
2223
2223
|
if (!(1 === (1 & seen0))) {
|
|
2224
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_9().
|
|
2224
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_9().i8i_1);
|
|
2225
2225
|
}
|
|
2226
|
-
$this.
|
|
2226
|
+
$this.k8i_1 = function_0;
|
|
2227
2227
|
if (0 === (seen0 & 2))
|
|
2228
|
-
$this.
|
|
2228
|
+
$this.l8i_1 = 'function';
|
|
2229
2229
|
else
|
|
2230
|
-
$this.
|
|
2230
|
+
$this.l8i_1 = type;
|
|
2231
2231
|
return $this;
|
|
2232
2232
|
}
|
|
2233
2233
|
function Function_init_$Create$(seen0, function_0, type, serializationConstructorMarker) {
|
|
2234
2234
|
return Function_init_$Init$(seen0, function_0, type, serializationConstructorMarker, objectCreate(protoOf(Function)));
|
|
2235
2235
|
}
|
|
2236
2236
|
function Mode(value) {
|
|
2237
|
-
this.
|
|
2237
|
+
this.d8i_1 = value;
|
|
2238
2238
|
}
|
|
2239
2239
|
protoOf(Mode).toString = function () {
|
|
2240
|
-
return Mode__toString_impl_dwwrtq(this.
|
|
2240
|
+
return Mode__toString_impl_dwwrtq(this.d8i_1);
|
|
2241
2241
|
};
|
|
2242
2242
|
protoOf(Mode).hashCode = function () {
|
|
2243
|
-
return Mode__hashCode_impl_7u94z5(this.
|
|
2243
|
+
return Mode__hashCode_impl_7u94z5(this.d8i_1);
|
|
2244
2244
|
};
|
|
2245
2245
|
protoOf(Mode).equals = function (other) {
|
|
2246
|
-
return Mode__equals_impl_uwixm3(this.
|
|
2246
|
+
return Mode__equals_impl_uwixm3(this.d8i_1, other);
|
|
2247
2247
|
};
|
|
2248
2248
|
function FunctionName(name) {
|
|
2249
|
-
this.
|
|
2249
|
+
this.h8i_1 = name;
|
|
2250
2250
|
}
|
|
2251
2251
|
function Function(function_0) {
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2252
|
+
this.k8i_1 = function_0;
|
|
2253
|
+
this.l8i_1 = 'function';
|
|
2254
2254
|
}
|
|
2255
2255
|
function Companion_13() {
|
|
2256
2256
|
Companion_instance_14 = this;
|
|
2257
|
-
this.
|
|
2258
|
-
this.
|
|
2259
|
-
this.
|
|
2257
|
+
this.z8f_1 = _Mode___init__impl__3rgsrm('auto');
|
|
2258
|
+
this.a8g_1 = _Mode___init__impl__3rgsrm('required');
|
|
2259
|
+
this.b8g_1 = _Mode___init__impl__3rgsrm('none');
|
|
2260
2260
|
}
|
|
2261
2261
|
protoOf(Companion_13).q1j = function () {
|
|
2262
2262
|
return OpenAIToolChoiceSerializer_getInstance();
|
|
@@ -2283,22 +2283,22 @@
|
|
|
2283
2283
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAITool', this, 2);
|
|
2284
2284
|
tmp0_serialDesc.m16('function', false);
|
|
2285
2285
|
tmp0_serialDesc.m16('type', true);
|
|
2286
|
-
this.
|
|
2286
|
+
this.m8i_1 = tmp0_serialDesc;
|
|
2287
2287
|
}
|
|
2288
|
-
protoOf($serializer_10).
|
|
2289
|
-
var tmp0_desc = this.
|
|
2288
|
+
protoOf($serializer_10).n8i = function (encoder, value) {
|
|
2289
|
+
var tmp0_desc = this.m8i_1;
|
|
2290
2290
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2291
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_29(), value.
|
|
2292
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2293
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
2291
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_29(), value.o8i_1);
|
|
2292
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.p8i_1 === 'function')) {
|
|
2293
|
+
tmp1_output.l10(tmp0_desc, 1, value.p8i_1);
|
|
2294
2294
|
}
|
|
2295
2295
|
tmp1_output.xy(tmp0_desc);
|
|
2296
2296
|
};
|
|
2297
2297
|
protoOf($serializer_10).gv = function (encoder, value) {
|
|
2298
|
-
return this.
|
|
2298
|
+
return this.n8i(encoder, value instanceof OpenAITool ? value : THROW_CCE());
|
|
2299
2299
|
};
|
|
2300
2300
|
protoOf($serializer_10).hv = function (decoder) {
|
|
2301
|
-
var tmp0_desc = this.
|
|
2301
|
+
var tmp0_desc = this.m8i_1;
|
|
2302
2302
|
var tmp1_flag = true;
|
|
2303
2303
|
var tmp2_index = 0;
|
|
2304
2304
|
var tmp3_bitMask0 = 0;
|
|
@@ -2333,7 +2333,7 @@
|
|
|
2333
2333
|
return OpenAITool_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2334
2334
|
};
|
|
2335
2335
|
protoOf($serializer_10).fv = function () {
|
|
2336
|
-
return this.
|
|
2336
|
+
return this.m8i_1;
|
|
2337
2337
|
};
|
|
2338
2338
|
protoOf($serializer_10).d17 = function () {
|
|
2339
2339
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2349,32 +2349,32 @@
|
|
|
2349
2349
|
}
|
|
2350
2350
|
function OpenAITool_init_$Init$(seen0, function_0, type, serializationConstructorMarker, $this) {
|
|
2351
2351
|
if (!(1 === (1 & seen0))) {
|
|
2352
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().
|
|
2352
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_10().m8i_1);
|
|
2353
2353
|
}
|
|
2354
|
-
$this.
|
|
2354
|
+
$this.o8i_1 = function_0;
|
|
2355
2355
|
if (0 === (seen0 & 2))
|
|
2356
|
-
$this.
|
|
2356
|
+
$this.p8i_1 = 'function';
|
|
2357
2357
|
else
|
|
2358
|
-
$this.
|
|
2358
|
+
$this.p8i_1 = type;
|
|
2359
2359
|
return $this;
|
|
2360
2360
|
}
|
|
2361
2361
|
function OpenAITool_init_$Create$(seen0, function_0, type, serializationConstructorMarker) {
|
|
2362
2362
|
return OpenAITool_init_$Init$(seen0, function_0, type, serializationConstructorMarker, objectCreate(protoOf(OpenAITool)));
|
|
2363
2363
|
}
|
|
2364
2364
|
function OpenAITool(function_0) {
|
|
2365
|
-
this.
|
|
2366
|
-
this.
|
|
2365
|
+
this.o8i_1 = function_0;
|
|
2366
|
+
this.p8i_1 = 'function';
|
|
2367
2367
|
}
|
|
2368
2368
|
function OpenAIToolChoiceSerializer() {
|
|
2369
2369
|
OpenAIToolChoiceSerializer_instance = this;
|
|
2370
|
-
this.
|
|
2370
|
+
this.q8i_1 = buildSerialDescriptor('OpenAIToolChoice', CONTEXTUAL_getInstance(), []);
|
|
2371
2371
|
}
|
|
2372
2372
|
protoOf(OpenAIToolChoiceSerializer).fv = function () {
|
|
2373
|
-
return this.
|
|
2373
|
+
return this.q8i_1;
|
|
2374
2374
|
};
|
|
2375
|
-
protoOf(OpenAIToolChoiceSerializer).
|
|
2375
|
+
protoOf(OpenAIToolChoiceSerializer).r8i = function (encoder, value) {
|
|
2376
2376
|
if (value instanceof Mode) {
|
|
2377
|
-
encoder.a10(_Mode___get_value__impl__uitpda(value.
|
|
2377
|
+
encoder.a10(_Mode___get_value__impl__uitpda(value.d8i_1));
|
|
2378
2378
|
} else {
|
|
2379
2379
|
if (value instanceof Function) {
|
|
2380
2380
|
encoder.o10(Companion_instance_13.q1j(), value);
|
|
@@ -2384,7 +2384,7 @@
|
|
|
2384
2384
|
}
|
|
2385
2385
|
};
|
|
2386
2386
|
protoOf(OpenAIToolChoiceSerializer).gv = function (encoder, value) {
|
|
2387
|
-
return this.
|
|
2387
|
+
return this.r8i(encoder, (!(value == null) ? isInterface(value, OpenAIToolChoice) : false) ? value : THROW_CCE());
|
|
2388
2388
|
};
|
|
2389
2389
|
protoOf(OpenAIToolChoiceSerializer).hv = function (decoder) {
|
|
2390
2390
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -2428,33 +2428,33 @@
|
|
|
2428
2428
|
tmp0_serialDesc.m16('totalTokens', true);
|
|
2429
2429
|
tmp0_serialDesc.m16('completionTokensDetails', true);
|
|
2430
2430
|
tmp0_serialDesc.m16('promptTokensDetails', true);
|
|
2431
|
-
this.
|
|
2431
|
+
this.s8i_1 = tmp0_serialDesc;
|
|
2432
2432
|
}
|
|
2433
|
-
protoOf($serializer_11).
|
|
2434
|
-
var tmp0_desc = this.
|
|
2433
|
+
protoOf($serializer_11).t8i = function (encoder, value) {
|
|
2434
|
+
var tmp0_desc = this.s8i_1;
|
|
2435
2435
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2436
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2437
|
-
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.
|
|
2436
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.v8g_1 == null)) {
|
|
2437
|
+
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.v8g_1);
|
|
2438
2438
|
}
|
|
2439
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2440
|
-
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.
|
|
2439
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.w8g_1 == null)) {
|
|
2440
|
+
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.w8g_1);
|
|
2441
2441
|
}
|
|
2442
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
2443
|
-
tmp1_output.p10(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
2442
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.x8g_1 == null)) {
|
|
2443
|
+
tmp1_output.p10(tmp0_desc, 2, IntSerializer_getInstance(), value.x8g_1);
|
|
2444
2444
|
}
|
|
2445
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
2446
|
-
tmp1_output.p10(tmp0_desc, 3, $serializer_getInstance_34(), value.
|
|
2445
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.y8g_1 == null)) {
|
|
2446
|
+
tmp1_output.p10(tmp0_desc, 3, $serializer_getInstance_34(), value.y8g_1);
|
|
2447
2447
|
}
|
|
2448
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
2449
|
-
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance_35(), value.
|
|
2448
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.z8g_1 == null)) {
|
|
2449
|
+
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance_35(), value.z8g_1);
|
|
2450
2450
|
}
|
|
2451
2451
|
tmp1_output.xy(tmp0_desc);
|
|
2452
2452
|
};
|
|
2453
2453
|
protoOf($serializer_11).gv = function (encoder, value) {
|
|
2454
|
-
return this.
|
|
2454
|
+
return this.t8i(encoder, value instanceof OpenAIUsage ? value : THROW_CCE());
|
|
2455
2455
|
};
|
|
2456
2456
|
protoOf($serializer_11).hv = function (decoder) {
|
|
2457
|
-
var tmp0_desc = this.
|
|
2457
|
+
var tmp0_desc = this.s8i_1;
|
|
2458
2458
|
var tmp1_flag = true;
|
|
2459
2459
|
var tmp2_index = 0;
|
|
2460
2460
|
var tmp3_bitMask0 = 0;
|
|
@@ -2510,7 +2510,7 @@
|
|
|
2510
2510
|
return OpenAIUsage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
2511
2511
|
};
|
|
2512
2512
|
protoOf($serializer_11).fv = function () {
|
|
2513
|
-
return this.
|
|
2513
|
+
return this.s8i_1;
|
|
2514
2514
|
};
|
|
2515
2515
|
protoOf($serializer_11).d17 = function () {
|
|
2516
2516
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2526,28 +2526,28 @@
|
|
|
2526
2526
|
}
|
|
2527
2527
|
function OpenAIUsage_init_$Init$(seen0, promptTokens, completionTokens, totalTokens, completionTokensDetails, promptTokensDetails, serializationConstructorMarker, $this) {
|
|
2528
2528
|
if (!(0 === (0 & seen0))) {
|
|
2529
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().
|
|
2529
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_11().s8i_1);
|
|
2530
2530
|
}
|
|
2531
2531
|
if (0 === (seen0 & 1))
|
|
2532
|
-
$this.
|
|
2532
|
+
$this.v8g_1 = null;
|
|
2533
2533
|
else
|
|
2534
|
-
$this.
|
|
2534
|
+
$this.v8g_1 = promptTokens;
|
|
2535
2535
|
if (0 === (seen0 & 2))
|
|
2536
|
-
$this.
|
|
2536
|
+
$this.w8g_1 = null;
|
|
2537
2537
|
else
|
|
2538
|
-
$this.
|
|
2538
|
+
$this.w8g_1 = completionTokens;
|
|
2539
2539
|
if (0 === (seen0 & 4))
|
|
2540
|
-
$this.
|
|
2540
|
+
$this.x8g_1 = null;
|
|
2541
2541
|
else
|
|
2542
|
-
$this.
|
|
2542
|
+
$this.x8g_1 = totalTokens;
|
|
2543
2543
|
if (0 === (seen0 & 8))
|
|
2544
|
-
$this.
|
|
2544
|
+
$this.y8g_1 = null;
|
|
2545
2545
|
else
|
|
2546
|
-
$this.
|
|
2546
|
+
$this.y8g_1 = completionTokensDetails;
|
|
2547
2547
|
if (0 === (seen0 & 16))
|
|
2548
|
-
$this.
|
|
2548
|
+
$this.z8g_1 = null;
|
|
2549
2549
|
else
|
|
2550
|
-
$this.
|
|
2550
|
+
$this.z8g_1 = promptTokensDetails;
|
|
2551
2551
|
return $this;
|
|
2552
2552
|
}
|
|
2553
2553
|
function OpenAIUsage_init_$Create$(seen0, promptTokens, completionTokens, totalTokens, completionTokensDetails, promptTokensDetails, serializationConstructorMarker) {
|
|
@@ -2559,11 +2559,11 @@
|
|
|
2559
2559
|
totalTokens = totalTokens === VOID ? null : totalTokens;
|
|
2560
2560
|
completionTokensDetails = completionTokensDetails === VOID ? null : completionTokensDetails;
|
|
2561
2561
|
promptTokensDetails = promptTokensDetails === VOID ? null : promptTokensDetails;
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2566
|
-
this.
|
|
2562
|
+
this.v8g_1 = promptTokens;
|
|
2563
|
+
this.w8g_1 = completionTokens;
|
|
2564
|
+
this.x8g_1 = totalTokens;
|
|
2565
|
+
this.y8g_1 = completionTokensDetails;
|
|
2566
|
+
this.z8g_1 = promptTokensDetails;
|
|
2567
2567
|
}
|
|
2568
2568
|
function OpenAIBaseLLMStreamResponse() {
|
|
2569
2569
|
}
|
|
@@ -2579,23 +2579,23 @@
|
|
|
2579
2579
|
tmp0_serialDesc.m16('id', false);
|
|
2580
2580
|
tmp0_serialDesc.m16('function', false);
|
|
2581
2581
|
tmp0_serialDesc.m16('type', true);
|
|
2582
|
-
this.
|
|
2582
|
+
this.u8i_1 = tmp0_serialDesc;
|
|
2583
2583
|
}
|
|
2584
|
-
protoOf($serializer_12).
|
|
2585
|
-
var tmp0_desc = this.
|
|
2584
|
+
protoOf($serializer_12).v8i = function (encoder, value) {
|
|
2585
|
+
var tmp0_desc = this.u8i_1;
|
|
2586
2586
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2587
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2588
|
-
tmp1_output.n10(tmp0_desc, 1, $serializer_getInstance_13(), value.
|
|
2589
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
2590
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
2587
|
+
tmp1_output.l10(tmp0_desc, 0, value.q8g_1);
|
|
2588
|
+
tmp1_output.n10(tmp0_desc, 1, $serializer_getInstance_13(), value.r8g_1);
|
|
2589
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.s8g_1 === 'function')) {
|
|
2590
|
+
tmp1_output.l10(tmp0_desc, 2, value.s8g_1);
|
|
2591
2591
|
}
|
|
2592
2592
|
tmp1_output.xy(tmp0_desc);
|
|
2593
2593
|
};
|
|
2594
2594
|
protoOf($serializer_12).gv = function (encoder, value) {
|
|
2595
|
-
return this.
|
|
2595
|
+
return this.v8i(encoder, value instanceof OpenAIToolCall ? value : THROW_CCE());
|
|
2596
2596
|
};
|
|
2597
2597
|
protoOf($serializer_12).hv = function (decoder) {
|
|
2598
|
-
var tmp0_desc = this.
|
|
2598
|
+
var tmp0_desc = this.u8i_1;
|
|
2599
2599
|
var tmp1_flag = true;
|
|
2600
2600
|
var tmp2_index = 0;
|
|
2601
2601
|
var tmp3_bitMask0 = 0;
|
|
@@ -2637,7 +2637,7 @@
|
|
|
2637
2637
|
return OpenAIToolCall_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2638
2638
|
};
|
|
2639
2639
|
protoOf($serializer_12).fv = function () {
|
|
2640
|
-
return this.
|
|
2640
|
+
return this.u8i_1;
|
|
2641
2641
|
};
|
|
2642
2642
|
protoOf($serializer_12).d17 = function () {
|
|
2643
2643
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2653,23 +2653,23 @@
|
|
|
2653
2653
|
}
|
|
2654
2654
|
function OpenAIToolCall_init_$Init$(seen0, id, function_0, type, serializationConstructorMarker, $this) {
|
|
2655
2655
|
if (!(3 === (3 & seen0))) {
|
|
2656
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_12().
|
|
2656
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_12().u8i_1);
|
|
2657
2657
|
}
|
|
2658
|
-
$this.
|
|
2659
|
-
$this.
|
|
2658
|
+
$this.q8g_1 = id;
|
|
2659
|
+
$this.r8g_1 = function_0;
|
|
2660
2660
|
if (0 === (seen0 & 4))
|
|
2661
|
-
$this.
|
|
2661
|
+
$this.s8g_1 = 'function';
|
|
2662
2662
|
else
|
|
2663
|
-
$this.
|
|
2663
|
+
$this.s8g_1 = type;
|
|
2664
2664
|
return $this;
|
|
2665
2665
|
}
|
|
2666
2666
|
function OpenAIToolCall_init_$Create$(seen0, id, function_0, type, serializationConstructorMarker) {
|
|
2667
2667
|
return OpenAIToolCall_init_$Init$(seen0, id, function_0, type, serializationConstructorMarker, objectCreate(protoOf(OpenAIToolCall)));
|
|
2668
2668
|
}
|
|
2669
2669
|
function OpenAIToolCall(id, function_0) {
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2672
|
-
this.
|
|
2670
|
+
this.q8g_1 = id;
|
|
2671
|
+
this.r8g_1 = function_0;
|
|
2672
|
+
this.s8g_1 = 'function';
|
|
2673
2673
|
}
|
|
2674
2674
|
function Companion_17() {
|
|
2675
2675
|
}
|
|
@@ -2682,20 +2682,20 @@
|
|
|
2682
2682
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIFunction', this, 2);
|
|
2683
2683
|
tmp0_serialDesc.m16('name', false);
|
|
2684
2684
|
tmp0_serialDesc.m16('arguments', false);
|
|
2685
|
-
this.
|
|
2685
|
+
this.w8i_1 = tmp0_serialDesc;
|
|
2686
2686
|
}
|
|
2687
|
-
protoOf($serializer_13).
|
|
2688
|
-
var tmp0_desc = this.
|
|
2687
|
+
protoOf($serializer_13).x8i = function (encoder, value) {
|
|
2688
|
+
var tmp0_desc = this.w8i_1;
|
|
2689
2689
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2690
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2691
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
2690
|
+
tmp1_output.l10(tmp0_desc, 0, value.o8g_1);
|
|
2691
|
+
tmp1_output.l10(tmp0_desc, 1, value.p8g_1);
|
|
2692
2692
|
tmp1_output.xy(tmp0_desc);
|
|
2693
2693
|
};
|
|
2694
2694
|
protoOf($serializer_13).gv = function (encoder, value) {
|
|
2695
|
-
return this.
|
|
2695
|
+
return this.x8i(encoder, value instanceof OpenAIFunction ? value : THROW_CCE());
|
|
2696
2696
|
};
|
|
2697
2697
|
protoOf($serializer_13).hv = function (decoder) {
|
|
2698
|
-
var tmp0_desc = this.
|
|
2698
|
+
var tmp0_desc = this.w8i_1;
|
|
2699
2699
|
var tmp1_flag = true;
|
|
2700
2700
|
var tmp2_index = 0;
|
|
2701
2701
|
var tmp3_bitMask0 = 0;
|
|
@@ -2730,7 +2730,7 @@
|
|
|
2730
2730
|
return OpenAIFunction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2731
2731
|
};
|
|
2732
2732
|
protoOf($serializer_13).fv = function () {
|
|
2733
|
-
return this.
|
|
2733
|
+
return this.w8i_1;
|
|
2734
2734
|
};
|
|
2735
2735
|
protoOf($serializer_13).d17 = function () {
|
|
2736
2736
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2746,18 +2746,18 @@
|
|
|
2746
2746
|
}
|
|
2747
2747
|
function OpenAIFunction_init_$Init$(seen0, name, arguments_0, serializationConstructorMarker, $this) {
|
|
2748
2748
|
if (!(3 === (3 & seen0))) {
|
|
2749
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_13().
|
|
2749
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_13().w8i_1);
|
|
2750
2750
|
}
|
|
2751
|
-
$this.
|
|
2752
|
-
$this.
|
|
2751
|
+
$this.o8g_1 = name;
|
|
2752
|
+
$this.p8g_1 = arguments_0;
|
|
2753
2753
|
return $this;
|
|
2754
2754
|
}
|
|
2755
2755
|
function OpenAIFunction_init_$Create$(seen0, name, arguments_0, serializationConstructorMarker) {
|
|
2756
2756
|
return OpenAIFunction_init_$Init$(seen0, name, arguments_0, serializationConstructorMarker, objectCreate(protoOf(OpenAIFunction)));
|
|
2757
2757
|
}
|
|
2758
2758
|
function OpenAIFunction(name, arguments_0) {
|
|
2759
|
-
this.
|
|
2760
|
-
this.
|
|
2759
|
+
this.o8g_1 = name;
|
|
2760
|
+
this.p8g_1 = arguments_0;
|
|
2761
2761
|
}
|
|
2762
2762
|
function OpenAIChoice$Companion$$childSerializers$_anonymous__5hqrcn() {
|
|
2763
2763
|
return Companion_instance_6.q1j();
|
|
@@ -2769,7 +2769,7 @@
|
|
|
2769
2769
|
// Inline function 'kotlin.arrayOf' call
|
|
2770
2770
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2771
2771
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2772
|
-
tmp.
|
|
2772
|
+
tmp.y8i_1 = [null, null, null, lazy(tmp_0, OpenAIChoice$Companion$$childSerializers$_anonymous__5hqrcn)];
|
|
2773
2773
|
}
|
|
2774
2774
|
var Companion_instance_19;
|
|
2775
2775
|
function Companion_getInstance_20() {
|
|
@@ -2784,25 +2784,25 @@
|
|
|
2784
2784
|
tmp0_serialDesc.m16('index', false);
|
|
2785
2785
|
tmp0_serialDesc.m16('logprobs', true);
|
|
2786
2786
|
tmp0_serialDesc.m16('message', false);
|
|
2787
|
-
this.
|
|
2787
|
+
this.z8i_1 = tmp0_serialDesc;
|
|
2788
2788
|
}
|
|
2789
|
-
protoOf($serializer_14).
|
|
2790
|
-
var tmp0_desc = this.
|
|
2789
|
+
protoOf($serializer_14).a8j = function (encoder, value) {
|
|
2790
|
+
var tmp0_desc = this.z8i_1;
|
|
2791
2791
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2792
|
-
var tmp2_cached = Companion_getInstance_20().
|
|
2793
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2794
|
-
tmp1_output.g10(tmp0_desc, 1, value.
|
|
2795
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
2796
|
-
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_38(), value.
|
|
2792
|
+
var tmp2_cached = Companion_getInstance_20().y8i_1;
|
|
2793
|
+
tmp1_output.l10(tmp0_desc, 0, value.b8j_1);
|
|
2794
|
+
tmp1_output.g10(tmp0_desc, 1, value.c8j_1);
|
|
2795
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.d8j_1 == null)) {
|
|
2796
|
+
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_38(), value.d8j_1);
|
|
2797
2797
|
}
|
|
2798
|
-
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.
|
|
2798
|
+
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.e8j_1);
|
|
2799
2799
|
tmp1_output.xy(tmp0_desc);
|
|
2800
2800
|
};
|
|
2801
2801
|
protoOf($serializer_14).gv = function (encoder, value) {
|
|
2802
|
-
return this.
|
|
2802
|
+
return this.a8j(encoder, value instanceof OpenAIChoice ? value : THROW_CCE());
|
|
2803
2803
|
};
|
|
2804
2804
|
protoOf($serializer_14).hv = function (decoder) {
|
|
2805
|
-
var tmp0_desc = this.
|
|
2805
|
+
var tmp0_desc = this.z8i_1;
|
|
2806
2806
|
var tmp1_flag = true;
|
|
2807
2807
|
var tmp2_index = 0;
|
|
2808
2808
|
var tmp3_bitMask0 = 0;
|
|
@@ -2811,7 +2811,7 @@
|
|
|
2811
2811
|
var tmp6_local2 = null;
|
|
2812
2812
|
var tmp7_local3 = null;
|
|
2813
2813
|
var tmp8_input = decoder.wy(tmp0_desc);
|
|
2814
|
-
var tmp9_cached = Companion_getInstance_20().
|
|
2814
|
+
var tmp9_cached = Companion_getInstance_20().y8i_1;
|
|
2815
2815
|
if (tmp8_input.mz()) {
|
|
2816
2816
|
tmp4_local0 = tmp8_input.gz(tmp0_desc, 0);
|
|
2817
2817
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2852,10 +2852,10 @@
|
|
|
2852
2852
|
return OpenAIChoice_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2853
2853
|
};
|
|
2854
2854
|
protoOf($serializer_14).fv = function () {
|
|
2855
|
-
return this.
|
|
2855
|
+
return this.z8i_1;
|
|
2856
2856
|
};
|
|
2857
2857
|
protoOf($serializer_14).d17 = function () {
|
|
2858
|
-
var tmp0_cached = Companion_getInstance_20().
|
|
2858
|
+
var tmp0_cached = Companion_getInstance_20().y8i_1;
|
|
2859
2859
|
// Inline function 'kotlin.arrayOf' call
|
|
2860
2860
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2861
2861
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2869,15 +2869,15 @@
|
|
|
2869
2869
|
}
|
|
2870
2870
|
function OpenAIChoice_init_$Init$(seen0, finishReason, index, logprobs, message, serializationConstructorMarker, $this) {
|
|
2871
2871
|
if (!(11 === (11 & seen0))) {
|
|
2872
|
-
throwMissingFieldException(seen0, 11, $serializer_getInstance_14().
|
|
2872
|
+
throwMissingFieldException(seen0, 11, $serializer_getInstance_14().z8i_1);
|
|
2873
2873
|
}
|
|
2874
|
-
$this.
|
|
2875
|
-
$this.
|
|
2874
|
+
$this.b8j_1 = finishReason;
|
|
2875
|
+
$this.c8j_1 = index;
|
|
2876
2876
|
if (0 === (seen0 & 4))
|
|
2877
|
-
$this.
|
|
2877
|
+
$this.d8j_1 = null;
|
|
2878
2878
|
else
|
|
2879
|
-
$this.
|
|
2880
|
-
$this.
|
|
2879
|
+
$this.d8j_1 = logprobs;
|
|
2880
|
+
$this.e8j_1 = message;
|
|
2881
2881
|
return $this;
|
|
2882
2882
|
}
|
|
2883
2883
|
function OpenAIChoice_init_$Create$(seen0, finishReason, index, logprobs, message, serializationConstructorMarker) {
|
|
@@ -2892,26 +2892,26 @@
|
|
|
2892
2892
|
tmp0_serialDesc.m16('finishReason', true);
|
|
2893
2893
|
tmp0_serialDesc.m16('index', false);
|
|
2894
2894
|
tmp0_serialDesc.m16('logprobs', true);
|
|
2895
|
-
this.
|
|
2895
|
+
this.f8j_1 = tmp0_serialDesc;
|
|
2896
2896
|
}
|
|
2897
|
-
protoOf($serializer_15).
|
|
2898
|
-
var tmp0_desc = this.
|
|
2897
|
+
protoOf($serializer_15).g8j = function (encoder, value) {
|
|
2898
|
+
var tmp0_desc = this.f8j_1;
|
|
2899
2899
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2900
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_16(), value.
|
|
2901
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2902
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2900
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_16(), value.h8j_1);
|
|
2901
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.i8j_1 == null)) {
|
|
2902
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.i8j_1);
|
|
2903
2903
|
}
|
|
2904
|
-
tmp1_output.g10(tmp0_desc, 2, value.
|
|
2905
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
2906
|
-
tmp1_output.p10(tmp0_desc, 3, $serializer_getInstance_38(), value.
|
|
2904
|
+
tmp1_output.g10(tmp0_desc, 2, value.j8j_1);
|
|
2905
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.k8j_1 == null)) {
|
|
2906
|
+
tmp1_output.p10(tmp0_desc, 3, $serializer_getInstance_38(), value.k8j_1);
|
|
2907
2907
|
}
|
|
2908
2908
|
tmp1_output.xy(tmp0_desc);
|
|
2909
2909
|
};
|
|
2910
2910
|
protoOf($serializer_15).gv = function (encoder, value) {
|
|
2911
|
-
return this.
|
|
2911
|
+
return this.g8j(encoder, value instanceof OpenAIStreamChoice ? value : THROW_CCE());
|
|
2912
2912
|
};
|
|
2913
2913
|
protoOf($serializer_15).hv = function (decoder) {
|
|
2914
|
-
var tmp0_desc = this.
|
|
2914
|
+
var tmp0_desc = this.f8j_1;
|
|
2915
2915
|
var tmp1_flag = true;
|
|
2916
2916
|
var tmp2_index = 0;
|
|
2917
2917
|
var tmp3_bitMask0 = 0;
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
return OpenAIStreamChoice_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2961
2961
|
};
|
|
2962
2962
|
protoOf($serializer_15).fv = function () {
|
|
2963
|
-
return this.
|
|
2963
|
+
return this.f8j_1;
|
|
2964
2964
|
};
|
|
2965
2965
|
protoOf($serializer_15).d17 = function () {
|
|
2966
2966
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2976,18 +2976,18 @@
|
|
|
2976
2976
|
}
|
|
2977
2977
|
function OpenAIStreamChoice_init_$Init$(seen0, delta, finishReason, index, logprobs, serializationConstructorMarker, $this) {
|
|
2978
2978
|
if (!(5 === (5 & seen0))) {
|
|
2979
|
-
throwMissingFieldException(seen0, 5, $serializer_getInstance_15().
|
|
2979
|
+
throwMissingFieldException(seen0, 5, $serializer_getInstance_15().f8j_1);
|
|
2980
2980
|
}
|
|
2981
|
-
$this.
|
|
2981
|
+
$this.h8j_1 = delta;
|
|
2982
2982
|
if (0 === (seen0 & 2))
|
|
2983
|
-
$this.
|
|
2983
|
+
$this.i8j_1 = null;
|
|
2984
2984
|
else
|
|
2985
|
-
$this.
|
|
2986
|
-
$this.
|
|
2985
|
+
$this.i8j_1 = finishReason;
|
|
2986
|
+
$this.j8j_1 = index;
|
|
2987
2987
|
if (0 === (seen0 & 8))
|
|
2988
|
-
$this.
|
|
2988
|
+
$this.k8j_1 = null;
|
|
2989
2989
|
else
|
|
2990
|
-
$this.
|
|
2990
|
+
$this.k8j_1 = logprobs;
|
|
2991
2991
|
return $this;
|
|
2992
2992
|
}
|
|
2993
2993
|
function OpenAIStreamChoice_init_$Create$(seen0, delta, finishReason, index, logprobs, serializationConstructorMarker) {
|
|
@@ -3005,7 +3005,7 @@
|
|
|
3005
3005
|
// Inline function 'kotlin.arrayOf' call
|
|
3006
3006
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3007
3007
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3008
|
-
tmp.
|
|
3008
|
+
tmp.l8j_1 = [null, null, null, lazy(tmp_0, OpenAIStreamDelta$Companion$$childSerializers$_anonymous__3huwyk)];
|
|
3009
3009
|
}
|
|
3010
3010
|
var Companion_instance_20;
|
|
3011
3011
|
function Companion_getInstance_21() {
|
|
@@ -3020,31 +3020,31 @@
|
|
|
3020
3020
|
tmp0_serialDesc.m16('refusal', true);
|
|
3021
3021
|
tmp0_serialDesc.m16('role', true);
|
|
3022
3022
|
tmp0_serialDesc.m16('toolCalls', true);
|
|
3023
|
-
this.
|
|
3023
|
+
this.m8j_1 = tmp0_serialDesc;
|
|
3024
3024
|
}
|
|
3025
|
-
protoOf($serializer_16).
|
|
3026
|
-
var tmp0_desc = this.
|
|
3025
|
+
protoOf($serializer_16).n8j = function (encoder, value) {
|
|
3026
|
+
var tmp0_desc = this.m8j_1;
|
|
3027
3027
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3028
|
-
var tmp2_cached = Companion_getInstance_21().
|
|
3029
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
3030
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
3028
|
+
var tmp2_cached = Companion_getInstance_21().l8j_1;
|
|
3029
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.o8j_1 == null)) {
|
|
3030
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.o8j_1);
|
|
3031
3031
|
}
|
|
3032
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
3033
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
3032
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.p8j_1 == null)) {
|
|
3033
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.p8j_1);
|
|
3034
3034
|
}
|
|
3035
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
3036
|
-
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
3035
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.q8j_1 == null)) {
|
|
3036
|
+
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.q8j_1);
|
|
3037
3037
|
}
|
|
3038
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
3039
|
-
tmp1_output.p10(tmp0_desc, 3, tmp2_cached[3].b1(), value.
|
|
3038
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.r8j_1 == null)) {
|
|
3039
|
+
tmp1_output.p10(tmp0_desc, 3, tmp2_cached[3].b1(), value.r8j_1);
|
|
3040
3040
|
}
|
|
3041
3041
|
tmp1_output.xy(tmp0_desc);
|
|
3042
3042
|
};
|
|
3043
3043
|
protoOf($serializer_16).gv = function (encoder, value) {
|
|
3044
|
-
return this.
|
|
3044
|
+
return this.n8j(encoder, value instanceof OpenAIStreamDelta ? value : THROW_CCE());
|
|
3045
3045
|
};
|
|
3046
3046
|
protoOf($serializer_16).hv = function (decoder) {
|
|
3047
|
-
var tmp0_desc = this.
|
|
3047
|
+
var tmp0_desc = this.m8j_1;
|
|
3048
3048
|
var tmp1_flag = true;
|
|
3049
3049
|
var tmp2_index = 0;
|
|
3050
3050
|
var tmp3_bitMask0 = 0;
|
|
@@ -3053,7 +3053,7 @@
|
|
|
3053
3053
|
var tmp6_local2 = null;
|
|
3054
3054
|
var tmp7_local3 = null;
|
|
3055
3055
|
var tmp8_input = decoder.wy(tmp0_desc);
|
|
3056
|
-
var tmp9_cached = Companion_getInstance_21().
|
|
3056
|
+
var tmp9_cached = Companion_getInstance_21().l8j_1;
|
|
3057
3057
|
if (tmp8_input.mz()) {
|
|
3058
3058
|
tmp4_local0 = tmp8_input.kz(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
3059
3059
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -3094,10 +3094,10 @@
|
|
|
3094
3094
|
return OpenAIStreamDelta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3095
3095
|
};
|
|
3096
3096
|
protoOf($serializer_16).fv = function () {
|
|
3097
|
-
return this.
|
|
3097
|
+
return this.m8j_1;
|
|
3098
3098
|
};
|
|
3099
3099
|
protoOf($serializer_16).d17 = function () {
|
|
3100
|
-
var tmp0_cached = Companion_getInstance_21().
|
|
3100
|
+
var tmp0_cached = Companion_getInstance_21().l8j_1;
|
|
3101
3101
|
// Inline function 'kotlin.arrayOf' call
|
|
3102
3102
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3103
3103
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3111,24 +3111,24 @@
|
|
|
3111
3111
|
}
|
|
3112
3112
|
function OpenAIStreamDelta_init_$Init$(seen0, content, refusal, role, toolCalls, serializationConstructorMarker, $this) {
|
|
3113
3113
|
if (!(0 === (0 & seen0))) {
|
|
3114
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_16().
|
|
3114
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_16().m8j_1);
|
|
3115
3115
|
}
|
|
3116
3116
|
if (0 === (seen0 & 1))
|
|
3117
|
-
$this.
|
|
3117
|
+
$this.o8j_1 = null;
|
|
3118
3118
|
else
|
|
3119
|
-
$this.
|
|
3119
|
+
$this.o8j_1 = content;
|
|
3120
3120
|
if (0 === (seen0 & 2))
|
|
3121
|
-
$this.
|
|
3121
|
+
$this.p8j_1 = null;
|
|
3122
3122
|
else
|
|
3123
|
-
$this.
|
|
3123
|
+
$this.p8j_1 = refusal;
|
|
3124
3124
|
if (0 === (seen0 & 4))
|
|
3125
|
-
$this.
|
|
3125
|
+
$this.q8j_1 = null;
|
|
3126
3126
|
else
|
|
3127
|
-
$this.
|
|
3127
|
+
$this.q8j_1 = role;
|
|
3128
3128
|
if (0 === (seen0 & 8))
|
|
3129
|
-
$this.
|
|
3129
|
+
$this.r8j_1 = null;
|
|
3130
3130
|
else
|
|
3131
|
-
$this.
|
|
3131
|
+
$this.r8j_1 = toolCalls;
|
|
3132
3132
|
return $this;
|
|
3133
3133
|
}
|
|
3134
3134
|
function OpenAIStreamDelta_init_$Create$(seen0, content, refusal, role, toolCalls, serializationConstructorMarker) {
|
|
@@ -3140,10 +3140,10 @@
|
|
|
3140
3140
|
refusal = refusal === VOID ? null : refusal;
|
|
3141
3141
|
role = role === VOID ? null : role;
|
|
3142
3142
|
toolCalls = toolCalls === VOID ? null : toolCalls;
|
|
3143
|
-
this.
|
|
3144
|
-
this.
|
|
3145
|
-
this.
|
|
3146
|
-
this.
|
|
3143
|
+
this.o8j_1 = content;
|
|
3144
|
+
this.p8j_1 = refusal;
|
|
3145
|
+
this.q8j_1 = role;
|
|
3146
|
+
this.r8j_1 = toolCalls;
|
|
3147
3147
|
}
|
|
3148
3148
|
function $serializer_17() {
|
|
3149
3149
|
$serializer_instance_17 = this;
|
|
@@ -3152,24 +3152,24 @@
|
|
|
3152
3152
|
tmp0_serialDesc.m16('id', false);
|
|
3153
3153
|
tmp0_serialDesc.m16('function', false);
|
|
3154
3154
|
tmp0_serialDesc.m16('type', true);
|
|
3155
|
-
this.
|
|
3155
|
+
this.s8j_1 = tmp0_serialDesc;
|
|
3156
3156
|
}
|
|
3157
|
-
protoOf($serializer_17).
|
|
3158
|
-
var tmp0_desc = this.
|
|
3157
|
+
protoOf($serializer_17).t8j = function (encoder, value) {
|
|
3158
|
+
var tmp0_desc = this.s8j_1;
|
|
3159
3159
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3160
|
-
tmp1_output.g10(tmp0_desc, 0, value.
|
|
3161
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
3162
|
-
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_18(), value.
|
|
3163
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
3164
|
-
tmp1_output.l10(tmp0_desc, 3, value.
|
|
3160
|
+
tmp1_output.g10(tmp0_desc, 0, value.u8j_1);
|
|
3161
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.v8j_1);
|
|
3162
|
+
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_18(), value.w8j_1);
|
|
3163
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.x8j_1 === 'function')) {
|
|
3164
|
+
tmp1_output.l10(tmp0_desc, 3, value.x8j_1);
|
|
3165
3165
|
}
|
|
3166
3166
|
tmp1_output.xy(tmp0_desc);
|
|
3167
3167
|
};
|
|
3168
3168
|
protoOf($serializer_17).gv = function (encoder, value) {
|
|
3169
|
-
return this.
|
|
3169
|
+
return this.t8j(encoder, value instanceof OpenAIStreamToolCall ? value : THROW_CCE());
|
|
3170
3170
|
};
|
|
3171
3171
|
protoOf($serializer_17).hv = function (decoder) {
|
|
3172
|
-
var tmp0_desc = this.
|
|
3172
|
+
var tmp0_desc = this.s8j_1;
|
|
3173
3173
|
var tmp1_flag = true;
|
|
3174
3174
|
var tmp2_index = 0;
|
|
3175
3175
|
var tmp3_bitMask0 = 0;
|
|
@@ -3218,7 +3218,7 @@
|
|
|
3218
3218
|
return OpenAIStreamToolCall_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
3219
3219
|
};
|
|
3220
3220
|
protoOf($serializer_17).fv = function () {
|
|
3221
|
-
return this.
|
|
3221
|
+
return this.s8j_1;
|
|
3222
3222
|
};
|
|
3223
3223
|
protoOf($serializer_17).d17 = function () {
|
|
3224
3224
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3234,15 +3234,15 @@
|
|
|
3234
3234
|
}
|
|
3235
3235
|
function OpenAIStreamToolCall_init_$Init$(seen0, index, id, function_0, type, serializationConstructorMarker, $this) {
|
|
3236
3236
|
if (!(7 === (7 & seen0))) {
|
|
3237
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_17().
|
|
3237
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_17().s8j_1);
|
|
3238
3238
|
}
|
|
3239
|
-
$this.
|
|
3240
|
-
$this.
|
|
3241
|
-
$this.
|
|
3239
|
+
$this.u8j_1 = index;
|
|
3240
|
+
$this.v8j_1 = id;
|
|
3241
|
+
$this.w8j_1 = function_0;
|
|
3242
3242
|
if (0 === (seen0 & 8))
|
|
3243
|
-
$this.
|
|
3243
|
+
$this.x8j_1 = 'function';
|
|
3244
3244
|
else
|
|
3245
|
-
$this.
|
|
3245
|
+
$this.x8j_1 = type;
|
|
3246
3246
|
return $this;
|
|
3247
3247
|
}
|
|
3248
3248
|
function OpenAIStreamToolCall_init_$Create$(seen0, index, id, function_0, type, serializationConstructorMarker) {
|
|
@@ -3255,20 +3255,20 @@
|
|
|
3255
3255
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIStreamFunction', this, 2);
|
|
3256
3256
|
tmp0_serialDesc.m16('name', false);
|
|
3257
3257
|
tmp0_serialDesc.m16('arguments', false);
|
|
3258
|
-
this.
|
|
3258
|
+
this.y8j_1 = tmp0_serialDesc;
|
|
3259
3259
|
}
|
|
3260
|
-
protoOf($serializer_18).
|
|
3261
|
-
var tmp0_desc = this.
|
|
3260
|
+
protoOf($serializer_18).z8j = function (encoder, value) {
|
|
3261
|
+
var tmp0_desc = this.y8j_1;
|
|
3262
3262
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3263
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
3264
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
3263
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.a8k_1);
|
|
3264
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.b8k_1);
|
|
3265
3265
|
tmp1_output.xy(tmp0_desc);
|
|
3266
3266
|
};
|
|
3267
3267
|
protoOf($serializer_18).gv = function (encoder, value) {
|
|
3268
|
-
return this.
|
|
3268
|
+
return this.z8j(encoder, value instanceof OpenAIStreamFunction ? value : THROW_CCE());
|
|
3269
3269
|
};
|
|
3270
3270
|
protoOf($serializer_18).hv = function (decoder) {
|
|
3271
|
-
var tmp0_desc = this.
|
|
3271
|
+
var tmp0_desc = this.y8j_1;
|
|
3272
3272
|
var tmp1_flag = true;
|
|
3273
3273
|
var tmp2_index = 0;
|
|
3274
3274
|
var tmp3_bitMask0 = 0;
|
|
@@ -3303,7 +3303,7 @@
|
|
|
3303
3303
|
return OpenAIStreamFunction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3304
3304
|
};
|
|
3305
3305
|
protoOf($serializer_18).fv = function () {
|
|
3306
|
-
return this.
|
|
3306
|
+
return this.y8j_1;
|
|
3307
3307
|
};
|
|
3308
3308
|
protoOf($serializer_18).d17 = function () {
|
|
3309
3309
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3319,10 +3319,10 @@
|
|
|
3319
3319
|
}
|
|
3320
3320
|
function OpenAIStreamFunction_init_$Init$(seen0, name, arguments_0, serializationConstructorMarker, $this) {
|
|
3321
3321
|
if (!(3 === (3 & seen0))) {
|
|
3322
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_18().
|
|
3322
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_18().y8j_1);
|
|
3323
3323
|
}
|
|
3324
|
-
$this.
|
|
3325
|
-
$this.
|
|
3324
|
+
$this.a8k_1 = name;
|
|
3325
|
+
$this.b8k_1 = arguments_0;
|
|
3326
3326
|
return $this;
|
|
3327
3327
|
}
|
|
3328
3328
|
function OpenAIStreamFunction_init_$Create$(seen0, name, arguments_0, serializationConstructorMarker) {
|
|
@@ -3340,21 +3340,21 @@
|
|
|
3340
3340
|
$serializer_instance_19 = this;
|
|
3341
3341
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIStreamOptions', this, 1);
|
|
3342
3342
|
tmp0_serialDesc.m16('includeUsage', true);
|
|
3343
|
-
this.
|
|
3343
|
+
this.c8k_1 = tmp0_serialDesc;
|
|
3344
3344
|
}
|
|
3345
|
-
protoOf($serializer_19).
|
|
3346
|
-
var tmp0_desc = this.
|
|
3345
|
+
protoOf($serializer_19).d8k = function (encoder, value) {
|
|
3346
|
+
var tmp0_desc = this.c8k_1;
|
|
3347
3347
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3348
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
3349
|
-
tmp1_output.p10(tmp0_desc, 0, BooleanSerializer_getInstance(), value.
|
|
3348
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.e8k_1 == null)) {
|
|
3349
|
+
tmp1_output.p10(tmp0_desc, 0, BooleanSerializer_getInstance(), value.e8k_1);
|
|
3350
3350
|
}
|
|
3351
3351
|
tmp1_output.xy(tmp0_desc);
|
|
3352
3352
|
};
|
|
3353
3353
|
protoOf($serializer_19).gv = function (encoder, value) {
|
|
3354
|
-
return this.
|
|
3354
|
+
return this.d8k(encoder, value instanceof OpenAIStreamOptions ? value : THROW_CCE());
|
|
3355
3355
|
};
|
|
3356
3356
|
protoOf($serializer_19).hv = function (decoder) {
|
|
3357
|
-
var tmp0_desc = this.
|
|
3357
|
+
var tmp0_desc = this.c8k_1;
|
|
3358
3358
|
var tmp1_flag = true;
|
|
3359
3359
|
var tmp2_index = 0;
|
|
3360
3360
|
var tmp3_bitMask0 = 0;
|
|
@@ -3382,7 +3382,7 @@
|
|
|
3382
3382
|
return OpenAIStreamOptions_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
3383
3383
|
};
|
|
3384
3384
|
protoOf($serializer_19).fv = function () {
|
|
3385
|
-
return this.
|
|
3385
|
+
return this.c8k_1;
|
|
3386
3386
|
};
|
|
3387
3387
|
protoOf($serializer_19).d17 = function () {
|
|
3388
3388
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3398,12 +3398,12 @@
|
|
|
3398
3398
|
}
|
|
3399
3399
|
function OpenAIStreamOptions_init_$Init$(seen0, includeUsage, serializationConstructorMarker, $this) {
|
|
3400
3400
|
if (!(0 === (0 & seen0))) {
|
|
3401
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_19().
|
|
3401
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_19().c8k_1);
|
|
3402
3402
|
}
|
|
3403
3403
|
if (0 === (seen0 & 1))
|
|
3404
|
-
$this.
|
|
3404
|
+
$this.e8k_1 = null;
|
|
3405
3405
|
else
|
|
3406
|
-
$this.
|
|
3406
|
+
$this.e8k_1 = includeUsage;
|
|
3407
3407
|
return $this;
|
|
3408
3408
|
}
|
|
3409
3409
|
function OpenAIStreamOptions_init_$Create$(seen0, includeUsage, serializationConstructorMarker) {
|
|
@@ -3411,7 +3411,7 @@
|
|
|
3411
3411
|
}
|
|
3412
3412
|
function OpenAIStreamOptions(includeUsage) {
|
|
3413
3413
|
includeUsage = includeUsage === VOID ? null : includeUsage;
|
|
3414
|
-
this.
|
|
3414
|
+
this.e8k_1 = includeUsage;
|
|
3415
3415
|
}
|
|
3416
3416
|
function _Text___init__impl__bp792k(value) {
|
|
3417
3417
|
return value;
|
|
@@ -3432,10 +3432,10 @@
|
|
|
3432
3432
|
$serializer_instance_20 = this;
|
|
3433
3433
|
var tmp0_serialDesc = new InlineClassDescriptor('ai.koog.prompt.executor.clients.openai.base.models.Content.Text', this);
|
|
3434
3434
|
tmp0_serialDesc.m16('value', false);
|
|
3435
|
-
this.
|
|
3435
|
+
this.f8k_1 = tmp0_serialDesc;
|
|
3436
3436
|
}
|
|
3437
|
-
protoOf($serializer_20).
|
|
3438
|
-
var tmp0_inlineEncoder = encoder.c10(this.
|
|
3437
|
+
protoOf($serializer_20).g8k = function (encoder, value) {
|
|
3438
|
+
var tmp0_inlineEncoder = encoder.c10(this.f8k_1);
|
|
3439
3439
|
if (tmp0_inlineEncoder == null)
|
|
3440
3440
|
null;
|
|
3441
3441
|
else {
|
|
@@ -3443,16 +3443,16 @@
|
|
|
3443
3443
|
}
|
|
3444
3444
|
};
|
|
3445
3445
|
protoOf($serializer_20).gv = function (encoder, value) {
|
|
3446
|
-
return this.
|
|
3446
|
+
return this.g8k(encoder, value instanceof Text_1 ? value.h8k_1 : THROW_CCE());
|
|
3447
3447
|
};
|
|
3448
|
-
protoOf($serializer_20).
|
|
3449
|
-
return _Text___init__impl__bp792k(decoder.ty(this.
|
|
3448
|
+
protoOf($serializer_20).i8k = function (decoder) {
|
|
3449
|
+
return _Text___init__impl__bp792k(decoder.ty(this.f8k_1).ry());
|
|
3450
3450
|
};
|
|
3451
3451
|
protoOf($serializer_20).hv = function (decoder) {
|
|
3452
|
-
return new Text_1(this.
|
|
3452
|
+
return new Text_1(this.i8k(decoder));
|
|
3453
3453
|
};
|
|
3454
3454
|
protoOf($serializer_20).fv = function () {
|
|
3455
|
-
return this.
|
|
3455
|
+
return this.f8k_1;
|
|
3456
3456
|
};
|
|
3457
3457
|
protoOf($serializer_20).d17 = function () {
|
|
3458
3458
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3475,7 +3475,7 @@
|
|
|
3475
3475
|
function Text__equals_impl_5ydpb5($this, other) {
|
|
3476
3476
|
if (!(other instanceof Text_1))
|
|
3477
3477
|
return false;
|
|
3478
|
-
if (!($this === (other instanceof Text_1 ? other.
|
|
3478
|
+
if (!($this === (other instanceof Text_1 ? other.h8k_1 : THROW_CCE())))
|
|
3479
3479
|
return false;
|
|
3480
3480
|
return true;
|
|
3481
3481
|
}
|
|
@@ -3510,7 +3510,7 @@
|
|
|
3510
3510
|
// Inline function 'kotlin.arrayOf' call
|
|
3511
3511
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3512
3512
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3513
|
-
tmp.
|
|
3513
|
+
tmp.j8k_1 = [lazy(tmp_0, Content$Parts$Companion$$childSerializers$_anonymous__fiezkl)];
|
|
3514
3514
|
}
|
|
3515
3515
|
var Companion_instance_23;
|
|
3516
3516
|
function Companion_getInstance_24() {
|
|
@@ -3522,10 +3522,10 @@
|
|
|
3522
3522
|
$serializer_instance_21 = this;
|
|
3523
3523
|
var tmp0_serialDesc = new InlineClassDescriptor('ai.koog.prompt.executor.clients.openai.base.models.Content.Parts', this);
|
|
3524
3524
|
tmp0_serialDesc.m16('value', false);
|
|
3525
|
-
this.
|
|
3525
|
+
this.k8k_1 = tmp0_serialDesc;
|
|
3526
3526
|
}
|
|
3527
|
-
protoOf($serializer_21).
|
|
3528
|
-
var tmp0_inlineEncoder = encoder.c10(this.
|
|
3527
|
+
protoOf($serializer_21).l8k = function (encoder, value) {
|
|
3528
|
+
var tmp0_inlineEncoder = encoder.c10(this.k8k_1);
|
|
3529
3529
|
if (tmp0_inlineEncoder == null)
|
|
3530
3530
|
null;
|
|
3531
3531
|
else {
|
|
@@ -3533,22 +3533,22 @@
|
|
|
3533
3533
|
}
|
|
3534
3534
|
};
|
|
3535
3535
|
protoOf($serializer_21).gv = function (encoder, value) {
|
|
3536
|
-
return this.
|
|
3536
|
+
return this.l8k(encoder, value instanceof Parts ? value.m8k_1 : THROW_CCE());
|
|
3537
3537
|
};
|
|
3538
|
-
protoOf($serializer_21).
|
|
3539
|
-
return _Parts___init__impl__jm4n4p(decoder.ty(this.
|
|
3538
|
+
protoOf($serializer_21).n8k = function (decoder) {
|
|
3539
|
+
return _Parts___init__impl__jm4n4p(decoder.ty(this.k8k_1).vy(new ArrayListSerializer(Companion_instance_31.q1j())));
|
|
3540
3540
|
};
|
|
3541
3541
|
protoOf($serializer_21).hv = function (decoder) {
|
|
3542
|
-
return new Parts(this.
|
|
3542
|
+
return new Parts(this.n8k(decoder));
|
|
3543
3543
|
};
|
|
3544
3544
|
protoOf($serializer_21).fv = function () {
|
|
3545
|
-
return this.
|
|
3545
|
+
return this.k8k_1;
|
|
3546
3546
|
};
|
|
3547
3547
|
protoOf($serializer_21).d17 = function () {
|
|
3548
3548
|
// Inline function 'kotlin.arrayOf' call
|
|
3549
3549
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3550
3550
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3551
|
-
return [Companion_getInstance_24().
|
|
3551
|
+
return [Companion_getInstance_24().j8k_1[0].b1()];
|
|
3552
3552
|
};
|
|
3553
3553
|
var $serializer_instance_21;
|
|
3554
3554
|
function $serializer_getInstance_21() {
|
|
@@ -3565,44 +3565,44 @@
|
|
|
3565
3565
|
function Parts__equals_impl_fvgkky($this, other) {
|
|
3566
3566
|
if (!(other instanceof Parts))
|
|
3567
3567
|
return false;
|
|
3568
|
-
var tmp0_other_with_cast = other instanceof Parts ? other.
|
|
3568
|
+
var tmp0_other_with_cast = other instanceof Parts ? other.m8k_1 : THROW_CCE();
|
|
3569
3569
|
if (!equals($this, tmp0_other_with_cast))
|
|
3570
3570
|
return false;
|
|
3571
3571
|
return true;
|
|
3572
3572
|
}
|
|
3573
3573
|
function Content$Parts$text$lambda(it) {
|
|
3574
|
-
return it.
|
|
3574
|
+
return it.o8k_1;
|
|
3575
3575
|
}
|
|
3576
3576
|
function Text_1(value) {
|
|
3577
|
-
this.
|
|
3577
|
+
this.h8k_1 = value;
|
|
3578
3578
|
}
|
|
3579
|
-
protoOf(Text_1).
|
|
3580
|
-
return Text__text_impl_wrhdal(this.
|
|
3579
|
+
protoOf(Text_1).n8g = function () {
|
|
3580
|
+
return Text__text_impl_wrhdal(this.h8k_1);
|
|
3581
3581
|
};
|
|
3582
3582
|
protoOf(Text_1).toString = function () {
|
|
3583
|
-
return Text__toString_impl_o5reng(this.
|
|
3583
|
+
return Text__toString_impl_o5reng(this.h8k_1);
|
|
3584
3584
|
};
|
|
3585
3585
|
protoOf(Text_1).hashCode = function () {
|
|
3586
|
-
return Text__hashCode_impl_p46qit(this.
|
|
3586
|
+
return Text__hashCode_impl_p46qit(this.h8k_1);
|
|
3587
3587
|
};
|
|
3588
3588
|
protoOf(Text_1).equals = function (other) {
|
|
3589
|
-
return Text__equals_impl_5ydpb5(this.
|
|
3589
|
+
return Text__equals_impl_5ydpb5(this.h8k_1, other);
|
|
3590
3590
|
};
|
|
3591
3591
|
function Parts(value) {
|
|
3592
3592
|
Companion_getInstance_24();
|
|
3593
|
-
this.
|
|
3593
|
+
this.m8k_1 = value;
|
|
3594
3594
|
}
|
|
3595
|
-
protoOf(Parts).
|
|
3596
|
-
return Parts__text_impl_loruow(this.
|
|
3595
|
+
protoOf(Parts).n8g = function () {
|
|
3596
|
+
return Parts__text_impl_loruow(this.m8k_1);
|
|
3597
3597
|
};
|
|
3598
3598
|
protoOf(Parts).toString = function () {
|
|
3599
|
-
return Parts__toString_impl_neesld(this.
|
|
3599
|
+
return Parts__toString_impl_neesld(this.m8k_1);
|
|
3600
3600
|
};
|
|
3601
3601
|
protoOf(Parts).hashCode = function () {
|
|
3602
|
-
return Parts__hashCode_impl_1n8vsi(this.
|
|
3602
|
+
return Parts__hashCode_impl_1n8vsi(this.m8k_1);
|
|
3603
3603
|
};
|
|
3604
3604
|
protoOf(Parts).equals = function (other) {
|
|
3605
|
-
return Parts__equals_impl_fvgkky(this.
|
|
3605
|
+
return Parts__equals_impl_fvgkky(this.m8k_1, other);
|
|
3606
3606
|
};
|
|
3607
3607
|
function Content() {
|
|
3608
3608
|
}
|
|
@@ -3617,19 +3617,19 @@
|
|
|
3617
3617
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('text', this, 1);
|
|
3618
3618
|
tmp0_serialDesc.m16('text', false);
|
|
3619
3619
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('type'));
|
|
3620
|
-
this.
|
|
3620
|
+
this.p8k_1 = tmp0_serialDesc;
|
|
3621
3621
|
}
|
|
3622
|
-
protoOf($serializer_22).
|
|
3623
|
-
var tmp0_desc = this.
|
|
3622
|
+
protoOf($serializer_22).q8k = function (encoder, value) {
|
|
3623
|
+
var tmp0_desc = this.p8k_1;
|
|
3624
3624
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3625
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3625
|
+
tmp1_output.l10(tmp0_desc, 0, value.o8k_1);
|
|
3626
3626
|
tmp1_output.xy(tmp0_desc);
|
|
3627
3627
|
};
|
|
3628
3628
|
protoOf($serializer_22).gv = function (encoder, value) {
|
|
3629
|
-
return this.
|
|
3629
|
+
return this.q8k(encoder, value instanceof Text_2 ? value : THROW_CCE());
|
|
3630
3630
|
};
|
|
3631
3631
|
protoOf($serializer_22).hv = function (decoder) {
|
|
3632
|
-
var tmp0_desc = this.
|
|
3632
|
+
var tmp0_desc = this.p8k_1;
|
|
3633
3633
|
var tmp1_flag = true;
|
|
3634
3634
|
var tmp2_index = 0;
|
|
3635
3635
|
var tmp3_bitMask0 = 0;
|
|
@@ -3657,7 +3657,7 @@
|
|
|
3657
3657
|
return Text_init_$Create$_0(tmp3_bitMask0, tmp4_local0, null);
|
|
3658
3658
|
};
|
|
3659
3659
|
protoOf($serializer_22).fv = function () {
|
|
3660
|
-
return this.
|
|
3660
|
+
return this.p8k_1;
|
|
3661
3661
|
};
|
|
3662
3662
|
protoOf($serializer_22).d17 = function () {
|
|
3663
3663
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3673,9 +3673,9 @@
|
|
|
3673
3673
|
}
|
|
3674
3674
|
function Text_init_$Init$_0(seen0, text, serializationConstructorMarker, $this) {
|
|
3675
3675
|
if (!(1 === (1 & seen0))) {
|
|
3676
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_22().
|
|
3676
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_22().p8k_1);
|
|
3677
3677
|
}
|
|
3678
|
-
$this.
|
|
3678
|
+
$this.o8k_1 = text;
|
|
3679
3679
|
return $this;
|
|
3680
3680
|
}
|
|
3681
3681
|
function Text_init_$Create$_0(seen0, text, serializationConstructorMarker) {
|
|
@@ -3692,19 +3692,19 @@
|
|
|
3692
3692
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('image_url', this, 1);
|
|
3693
3693
|
tmp0_serialDesc.m16('imageUrl', false);
|
|
3694
3694
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('type'));
|
|
3695
|
-
this.
|
|
3695
|
+
this.r8k_1 = tmp0_serialDesc;
|
|
3696
3696
|
}
|
|
3697
|
-
protoOf($serializer_23).
|
|
3698
|
-
var tmp0_desc = this.
|
|
3697
|
+
protoOf($serializer_23).s8k = function (encoder, value) {
|
|
3698
|
+
var tmp0_desc = this.r8k_1;
|
|
3699
3699
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3700
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_24(), value.
|
|
3700
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_24(), value.t8k_1);
|
|
3701
3701
|
tmp1_output.xy(tmp0_desc);
|
|
3702
3702
|
};
|
|
3703
3703
|
protoOf($serializer_23).gv = function (encoder, value) {
|
|
3704
|
-
return this.
|
|
3704
|
+
return this.s8k(encoder, value instanceof Image_0 ? value : THROW_CCE());
|
|
3705
3705
|
};
|
|
3706
3706
|
protoOf($serializer_23).hv = function (decoder) {
|
|
3707
|
-
var tmp0_desc = this.
|
|
3707
|
+
var tmp0_desc = this.r8k_1;
|
|
3708
3708
|
var tmp1_flag = true;
|
|
3709
3709
|
var tmp2_index = 0;
|
|
3710
3710
|
var tmp3_bitMask0 = 0;
|
|
@@ -3732,7 +3732,7 @@
|
|
|
3732
3732
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
3733
3733
|
};
|
|
3734
3734
|
protoOf($serializer_23).fv = function () {
|
|
3735
|
-
return this.
|
|
3735
|
+
return this.r8k_1;
|
|
3736
3736
|
};
|
|
3737
3737
|
protoOf($serializer_23).d17 = function () {
|
|
3738
3738
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3748,9 +3748,9 @@
|
|
|
3748
3748
|
}
|
|
3749
3749
|
function Image_init_$Init$(seen0, imageUrl, serializationConstructorMarker, $this) {
|
|
3750
3750
|
if (!(1 === (1 & seen0))) {
|
|
3751
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_23().
|
|
3751
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_23().r8k_1);
|
|
3752
3752
|
}
|
|
3753
|
-
$this.
|
|
3753
|
+
$this.t8k_1 = imageUrl;
|
|
3754
3754
|
return $this;
|
|
3755
3755
|
}
|
|
3756
3756
|
function Image_init_$Create$(seen0, imageUrl, serializationConstructorMarker) {
|
|
@@ -3767,22 +3767,22 @@
|
|
|
3767
3767
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIContentPart.ImageUrl', this, 2);
|
|
3768
3768
|
tmp0_serialDesc.m16('url', false);
|
|
3769
3769
|
tmp0_serialDesc.m16('detail', true);
|
|
3770
|
-
this.
|
|
3770
|
+
this.u8k_1 = tmp0_serialDesc;
|
|
3771
3771
|
}
|
|
3772
|
-
protoOf($serializer_24).
|
|
3773
|
-
var tmp0_desc = this.
|
|
3772
|
+
protoOf($serializer_24).v8k = function (encoder, value) {
|
|
3773
|
+
var tmp0_desc = this.u8k_1;
|
|
3774
3774
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3775
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3776
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
3777
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
3775
|
+
tmp1_output.l10(tmp0_desc, 0, value.w8k_1);
|
|
3776
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.x8k_1 == null)) {
|
|
3777
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.x8k_1);
|
|
3778
3778
|
}
|
|
3779
3779
|
tmp1_output.xy(tmp0_desc);
|
|
3780
3780
|
};
|
|
3781
3781
|
protoOf($serializer_24).gv = function (encoder, value) {
|
|
3782
|
-
return this.
|
|
3782
|
+
return this.v8k(encoder, value instanceof ImageUrl ? value : THROW_CCE());
|
|
3783
3783
|
};
|
|
3784
3784
|
protoOf($serializer_24).hv = function (decoder) {
|
|
3785
|
-
var tmp0_desc = this.
|
|
3785
|
+
var tmp0_desc = this.u8k_1;
|
|
3786
3786
|
var tmp1_flag = true;
|
|
3787
3787
|
var tmp2_index = 0;
|
|
3788
3788
|
var tmp3_bitMask0 = 0;
|
|
@@ -3817,7 +3817,7 @@
|
|
|
3817
3817
|
return ImageUrl_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3818
3818
|
};
|
|
3819
3819
|
protoOf($serializer_24).fv = function () {
|
|
3820
|
-
return this.
|
|
3820
|
+
return this.u8k_1;
|
|
3821
3821
|
};
|
|
3822
3822
|
protoOf($serializer_24).d17 = function () {
|
|
3823
3823
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3833,13 +3833,13 @@
|
|
|
3833
3833
|
}
|
|
3834
3834
|
function ImageUrl_init_$Init$(seen0, url, detail, serializationConstructorMarker, $this) {
|
|
3835
3835
|
if (!(1 === (1 & seen0))) {
|
|
3836
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_24().
|
|
3836
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_24().u8k_1);
|
|
3837
3837
|
}
|
|
3838
|
-
$this.
|
|
3838
|
+
$this.w8k_1 = url;
|
|
3839
3839
|
if (0 === (seen0 & 2))
|
|
3840
|
-
$this.
|
|
3840
|
+
$this.x8k_1 = null;
|
|
3841
3841
|
else
|
|
3842
|
-
$this.
|
|
3842
|
+
$this.x8k_1 = detail;
|
|
3843
3843
|
return $this;
|
|
3844
3844
|
}
|
|
3845
3845
|
function ImageUrl_init_$Create$(seen0, url, detail, serializationConstructorMarker) {
|
|
@@ -3856,19 +3856,19 @@
|
|
|
3856
3856
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('input_audio', this, 1);
|
|
3857
3857
|
tmp0_serialDesc.m16('inputAudio', false);
|
|
3858
3858
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('type'));
|
|
3859
|
-
this.
|
|
3859
|
+
this.y8k_1 = tmp0_serialDesc;
|
|
3860
3860
|
}
|
|
3861
|
-
protoOf($serializer_25).
|
|
3862
|
-
var tmp0_desc = this.
|
|
3861
|
+
protoOf($serializer_25).z8k = function (encoder, value) {
|
|
3862
|
+
var tmp0_desc = this.y8k_1;
|
|
3863
3863
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3864
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_26(), value.
|
|
3864
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_26(), value.a8l_1);
|
|
3865
3865
|
tmp1_output.xy(tmp0_desc);
|
|
3866
3866
|
};
|
|
3867
3867
|
protoOf($serializer_25).gv = function (encoder, value) {
|
|
3868
|
-
return this.
|
|
3868
|
+
return this.z8k(encoder, value instanceof Audio_0 ? value : THROW_CCE());
|
|
3869
3869
|
};
|
|
3870
3870
|
protoOf($serializer_25).hv = function (decoder) {
|
|
3871
|
-
var tmp0_desc = this.
|
|
3871
|
+
var tmp0_desc = this.y8k_1;
|
|
3872
3872
|
var tmp1_flag = true;
|
|
3873
3873
|
var tmp2_index = 0;
|
|
3874
3874
|
var tmp3_bitMask0 = 0;
|
|
@@ -3896,7 +3896,7 @@
|
|
|
3896
3896
|
return Audio_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
3897
3897
|
};
|
|
3898
3898
|
protoOf($serializer_25).fv = function () {
|
|
3899
|
-
return this.
|
|
3899
|
+
return this.y8k_1;
|
|
3900
3900
|
};
|
|
3901
3901
|
protoOf($serializer_25).d17 = function () {
|
|
3902
3902
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3912,9 +3912,9 @@
|
|
|
3912
3912
|
}
|
|
3913
3913
|
function Audio_init_$Init$(seen0, inputAudio, serializationConstructorMarker, $this) {
|
|
3914
3914
|
if (!(1 === (1 & seen0))) {
|
|
3915
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_25().
|
|
3915
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_25().y8k_1);
|
|
3916
3916
|
}
|
|
3917
|
-
$this.
|
|
3917
|
+
$this.a8l_1 = inputAudio;
|
|
3918
3918
|
return $this;
|
|
3919
3919
|
}
|
|
3920
3920
|
function Audio_init_$Create$(seen0, inputAudio, serializationConstructorMarker) {
|
|
@@ -3931,20 +3931,20 @@
|
|
|
3931
3931
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIContentPart.InputAudio', this, 2);
|
|
3932
3932
|
tmp0_serialDesc.m16('data', false);
|
|
3933
3933
|
tmp0_serialDesc.m16('format', false);
|
|
3934
|
-
this.
|
|
3934
|
+
this.b8l_1 = tmp0_serialDesc;
|
|
3935
3935
|
}
|
|
3936
|
-
protoOf($serializer_26).
|
|
3937
|
-
var tmp0_desc = this.
|
|
3936
|
+
protoOf($serializer_26).c8l = function (encoder, value) {
|
|
3937
|
+
var tmp0_desc = this.b8l_1;
|
|
3938
3938
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3939
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3940
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
3939
|
+
tmp1_output.l10(tmp0_desc, 0, value.d8l_1);
|
|
3940
|
+
tmp1_output.l10(tmp0_desc, 1, value.e8l_1);
|
|
3941
3941
|
tmp1_output.xy(tmp0_desc);
|
|
3942
3942
|
};
|
|
3943
3943
|
protoOf($serializer_26).gv = function (encoder, value) {
|
|
3944
|
-
return this.
|
|
3944
|
+
return this.c8l(encoder, value instanceof InputAudio ? value : THROW_CCE());
|
|
3945
3945
|
};
|
|
3946
3946
|
protoOf($serializer_26).hv = function (decoder) {
|
|
3947
|
-
var tmp0_desc = this.
|
|
3947
|
+
var tmp0_desc = this.b8l_1;
|
|
3948
3948
|
var tmp1_flag = true;
|
|
3949
3949
|
var tmp2_index = 0;
|
|
3950
3950
|
var tmp3_bitMask0 = 0;
|
|
@@ -3979,7 +3979,7 @@
|
|
|
3979
3979
|
return InputAudio_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3980
3980
|
};
|
|
3981
3981
|
protoOf($serializer_26).fv = function () {
|
|
3982
|
-
return this.
|
|
3982
|
+
return this.b8l_1;
|
|
3983
3983
|
};
|
|
3984
3984
|
protoOf($serializer_26).d17 = function () {
|
|
3985
3985
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3995,10 +3995,10 @@
|
|
|
3995
3995
|
}
|
|
3996
3996
|
function InputAudio_init_$Init$(seen0, data, format, serializationConstructorMarker, $this) {
|
|
3997
3997
|
if (!(3 === (3 & seen0))) {
|
|
3998
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_26().
|
|
3998
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_26().b8l_1);
|
|
3999
3999
|
}
|
|
4000
|
-
$this.
|
|
4001
|
-
$this.
|
|
4000
|
+
$this.d8l_1 = data;
|
|
4001
|
+
$this.e8l_1 = format;
|
|
4002
4002
|
return $this;
|
|
4003
4003
|
}
|
|
4004
4004
|
function InputAudio_init_$Create$(seen0, data, format, serializationConstructorMarker) {
|
|
@@ -4015,19 +4015,19 @@
|
|
|
4015
4015
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('file', this, 1);
|
|
4016
4016
|
tmp0_serialDesc.m16('file', false);
|
|
4017
4017
|
tmp0_serialDesc.o16(new JsonClassDiscriminator('type'));
|
|
4018
|
-
this.
|
|
4018
|
+
this.f8l_1 = tmp0_serialDesc;
|
|
4019
4019
|
}
|
|
4020
|
-
protoOf($serializer_27).
|
|
4021
|
-
var tmp0_desc = this.
|
|
4020
|
+
protoOf($serializer_27).g8l = function (encoder, value) {
|
|
4021
|
+
var tmp0_desc = this.f8l_1;
|
|
4022
4022
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4023
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_28(), value.
|
|
4023
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_28(), value.h8l_1);
|
|
4024
4024
|
tmp1_output.xy(tmp0_desc);
|
|
4025
4025
|
};
|
|
4026
4026
|
protoOf($serializer_27).gv = function (encoder, value) {
|
|
4027
|
-
return this.
|
|
4027
|
+
return this.g8l(encoder, value instanceof File_0 ? value : THROW_CCE());
|
|
4028
4028
|
};
|
|
4029
4029
|
protoOf($serializer_27).hv = function (decoder) {
|
|
4030
|
-
var tmp0_desc = this.
|
|
4030
|
+
var tmp0_desc = this.f8l_1;
|
|
4031
4031
|
var tmp1_flag = true;
|
|
4032
4032
|
var tmp2_index = 0;
|
|
4033
4033
|
var tmp3_bitMask0 = 0;
|
|
@@ -4055,7 +4055,7 @@
|
|
|
4055
4055
|
return File_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
4056
4056
|
};
|
|
4057
4057
|
protoOf($serializer_27).fv = function () {
|
|
4058
|
-
return this.
|
|
4058
|
+
return this.f8l_1;
|
|
4059
4059
|
};
|
|
4060
4060
|
protoOf($serializer_27).d17 = function () {
|
|
4061
4061
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4071,9 +4071,9 @@
|
|
|
4071
4071
|
}
|
|
4072
4072
|
function File_init_$Init$(seen0, file, serializationConstructorMarker, $this) {
|
|
4073
4073
|
if (!(1 === (1 & seen0))) {
|
|
4074
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_27().
|
|
4074
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_27().f8l_1);
|
|
4075
4075
|
}
|
|
4076
|
-
$this.
|
|
4076
|
+
$this.h8l_1 = file;
|
|
4077
4077
|
return $this;
|
|
4078
4078
|
}
|
|
4079
4079
|
function File_init_$Create$(seen0, file, serializationConstructorMarker) {
|
|
@@ -4091,27 +4091,27 @@
|
|
|
4091
4091
|
tmp0_serialDesc.m16('fileData', true);
|
|
4092
4092
|
tmp0_serialDesc.m16('fileId', true);
|
|
4093
4093
|
tmp0_serialDesc.m16('filename', true);
|
|
4094
|
-
this.
|
|
4094
|
+
this.i8l_1 = tmp0_serialDesc;
|
|
4095
4095
|
}
|
|
4096
|
-
protoOf($serializer_28).
|
|
4097
|
-
var tmp0_desc = this.
|
|
4096
|
+
protoOf($serializer_28).j8l = function (encoder, value) {
|
|
4097
|
+
var tmp0_desc = this.i8l_1;
|
|
4098
4098
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4099
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
4100
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
4099
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.k8l_1 == null)) {
|
|
4100
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.k8l_1);
|
|
4101
4101
|
}
|
|
4102
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
4103
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
4102
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.l8l_1 == null)) {
|
|
4103
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.l8l_1);
|
|
4104
4104
|
}
|
|
4105
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
4106
|
-
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
4105
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.m8l_1 == null)) {
|
|
4106
|
+
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.m8l_1);
|
|
4107
4107
|
}
|
|
4108
4108
|
tmp1_output.xy(tmp0_desc);
|
|
4109
4109
|
};
|
|
4110
4110
|
protoOf($serializer_28).gv = function (encoder, value) {
|
|
4111
|
-
return this.
|
|
4111
|
+
return this.j8l(encoder, value instanceof FileData ? value : THROW_CCE());
|
|
4112
4112
|
};
|
|
4113
4113
|
protoOf($serializer_28).hv = function (decoder) {
|
|
4114
|
-
var tmp0_desc = this.
|
|
4114
|
+
var tmp0_desc = this.i8l_1;
|
|
4115
4115
|
var tmp1_flag = true;
|
|
4116
4116
|
var tmp2_index = 0;
|
|
4117
4117
|
var tmp3_bitMask0 = 0;
|
|
@@ -4153,7 +4153,7 @@
|
|
|
4153
4153
|
return FileData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
4154
4154
|
};
|
|
4155
4155
|
protoOf($serializer_28).fv = function () {
|
|
4156
|
-
return this.
|
|
4156
|
+
return this.i8l_1;
|
|
4157
4157
|
};
|
|
4158
4158
|
protoOf($serializer_28).d17 = function () {
|
|
4159
4159
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4169,53 +4169,53 @@
|
|
|
4169
4169
|
}
|
|
4170
4170
|
function FileData_init_$Init$(seen0, fileData, fileId, filename, serializationConstructorMarker, $this) {
|
|
4171
4171
|
if (!(0 === (0 & seen0))) {
|
|
4172
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_28().
|
|
4172
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_28().i8l_1);
|
|
4173
4173
|
}
|
|
4174
4174
|
if (0 === (seen0 & 1))
|
|
4175
|
-
$this.
|
|
4175
|
+
$this.k8l_1 = null;
|
|
4176
4176
|
else
|
|
4177
|
-
$this.
|
|
4177
|
+
$this.k8l_1 = fileData;
|
|
4178
4178
|
if (0 === (seen0 & 2))
|
|
4179
|
-
$this.
|
|
4179
|
+
$this.l8l_1 = null;
|
|
4180
4180
|
else
|
|
4181
|
-
$this.
|
|
4181
|
+
$this.l8l_1 = fileId;
|
|
4182
4182
|
if (0 === (seen0 & 4))
|
|
4183
|
-
$this.
|
|
4183
|
+
$this.m8l_1 = null;
|
|
4184
4184
|
else
|
|
4185
|
-
$this.
|
|
4185
|
+
$this.m8l_1 = filename;
|
|
4186
4186
|
return $this;
|
|
4187
4187
|
}
|
|
4188
4188
|
function FileData_init_$Create$(seen0, fileData, fileId, filename, serializationConstructorMarker) {
|
|
4189
4189
|
return FileData_init_$Init$(seen0, fileData, fileId, filename, serializationConstructorMarker, objectCreate(protoOf(FileData)));
|
|
4190
4190
|
}
|
|
4191
4191
|
function Text_2(text) {
|
|
4192
|
-
this.
|
|
4192
|
+
this.o8k_1 = text;
|
|
4193
4193
|
}
|
|
4194
4194
|
function Image_0(imageUrl) {
|
|
4195
|
-
this.
|
|
4195
|
+
this.t8k_1 = imageUrl;
|
|
4196
4196
|
}
|
|
4197
4197
|
function ImageUrl(url, detail) {
|
|
4198
4198
|
detail = detail === VOID ? null : detail;
|
|
4199
|
-
this.
|
|
4200
|
-
this.
|
|
4199
|
+
this.w8k_1 = url;
|
|
4200
|
+
this.x8k_1 = detail;
|
|
4201
4201
|
}
|
|
4202
4202
|
function Audio_0(inputAudio) {
|
|
4203
|
-
this.
|
|
4203
|
+
this.a8l_1 = inputAudio;
|
|
4204
4204
|
}
|
|
4205
4205
|
function InputAudio(data, format) {
|
|
4206
|
-
this.
|
|
4207
|
-
this.
|
|
4206
|
+
this.d8l_1 = data;
|
|
4207
|
+
this.e8l_1 = format;
|
|
4208
4208
|
}
|
|
4209
4209
|
function File_0(file) {
|
|
4210
|
-
this.
|
|
4210
|
+
this.h8l_1 = file;
|
|
4211
4211
|
}
|
|
4212
4212
|
function FileData(fileData, fileId, filename) {
|
|
4213
4213
|
fileData = fileData === VOID ? null : fileData;
|
|
4214
4214
|
fileId = fileId === VOID ? null : fileId;
|
|
4215
4215
|
filename = filename === VOID ? null : filename;
|
|
4216
|
-
this.
|
|
4217
|
-
this.
|
|
4218
|
-
this.
|
|
4216
|
+
this.k8l_1 = fileData;
|
|
4217
|
+
this.l8l_1 = fileId;
|
|
4218
|
+
this.m8l_1 = filename;
|
|
4219
4219
|
}
|
|
4220
4220
|
function Companion_30() {
|
|
4221
4221
|
}
|
|
@@ -4257,28 +4257,28 @@
|
|
|
4257
4257
|
tmp0_serialDesc.m16('description', true);
|
|
4258
4258
|
tmp0_serialDesc.m16('parameters', true);
|
|
4259
4259
|
tmp0_serialDesc.m16('strict', true);
|
|
4260
|
-
this.
|
|
4260
|
+
this.n8l_1 = tmp0_serialDesc;
|
|
4261
4261
|
}
|
|
4262
|
-
protoOf($serializer_29).
|
|
4263
|
-
var tmp0_desc = this.
|
|
4262
|
+
protoOf($serializer_29).o8l = function (encoder, value) {
|
|
4263
|
+
var tmp0_desc = this.n8l_1;
|
|
4264
4264
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4265
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4266
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
4267
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
4265
|
+
tmp1_output.l10(tmp0_desc, 0, value.p8l_1);
|
|
4266
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.q8l_1 == null)) {
|
|
4267
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.q8l_1);
|
|
4268
4268
|
}
|
|
4269
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
4270
|
-
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
4269
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.r8l_1 == null)) {
|
|
4270
|
+
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.r8l_1);
|
|
4271
4271
|
}
|
|
4272
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
4273
|
-
tmp1_output.p10(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
4272
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.s8l_1 == null)) {
|
|
4273
|
+
tmp1_output.p10(tmp0_desc, 3, BooleanSerializer_getInstance(), value.s8l_1);
|
|
4274
4274
|
}
|
|
4275
4275
|
tmp1_output.xy(tmp0_desc);
|
|
4276
4276
|
};
|
|
4277
4277
|
protoOf($serializer_29).gv = function (encoder, value) {
|
|
4278
|
-
return this.
|
|
4278
|
+
return this.o8l(encoder, value instanceof OpenAIToolFunction ? value : THROW_CCE());
|
|
4279
4279
|
};
|
|
4280
4280
|
protoOf($serializer_29).hv = function (decoder) {
|
|
4281
|
-
var tmp0_desc = this.
|
|
4281
|
+
var tmp0_desc = this.n8l_1;
|
|
4282
4282
|
var tmp1_flag = true;
|
|
4283
4283
|
var tmp2_index = 0;
|
|
4284
4284
|
var tmp3_bitMask0 = 0;
|
|
@@ -4327,7 +4327,7 @@
|
|
|
4327
4327
|
return OpenAIToolFunction_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
4328
4328
|
};
|
|
4329
4329
|
protoOf($serializer_29).fv = function () {
|
|
4330
|
-
return this.
|
|
4330
|
+
return this.n8l_1;
|
|
4331
4331
|
};
|
|
4332
4332
|
protoOf($serializer_29).d17 = function () {
|
|
4333
4333
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4343,21 +4343,21 @@
|
|
|
4343
4343
|
}
|
|
4344
4344
|
function OpenAIToolFunction_init_$Init$(seen0, name, description, parameters, strict, serializationConstructorMarker, $this) {
|
|
4345
4345
|
if (!(1 === (1 & seen0))) {
|
|
4346
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_29().
|
|
4346
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_29().n8l_1);
|
|
4347
4347
|
}
|
|
4348
|
-
$this.
|
|
4348
|
+
$this.p8l_1 = name;
|
|
4349
4349
|
if (0 === (seen0 & 2))
|
|
4350
|
-
$this.
|
|
4350
|
+
$this.q8l_1 = null;
|
|
4351
4351
|
else
|
|
4352
|
-
$this.
|
|
4352
|
+
$this.q8l_1 = description;
|
|
4353
4353
|
if (0 === (seen0 & 4))
|
|
4354
|
-
$this.
|
|
4354
|
+
$this.r8l_1 = null;
|
|
4355
4355
|
else
|
|
4356
|
-
$this.
|
|
4356
|
+
$this.r8l_1 = parameters;
|
|
4357
4357
|
if (0 === (seen0 & 8))
|
|
4358
|
-
$this.
|
|
4358
|
+
$this.s8l_1 = null;
|
|
4359
4359
|
else
|
|
4360
|
-
$this.
|
|
4360
|
+
$this.s8l_1 = strict;
|
|
4361
4361
|
return $this;
|
|
4362
4362
|
}
|
|
4363
4363
|
function OpenAIToolFunction_init_$Create$(seen0, name, description, parameters, strict, serializationConstructorMarker) {
|
|
@@ -4367,10 +4367,10 @@
|
|
|
4367
4367
|
description = description === VOID ? null : description;
|
|
4368
4368
|
parameters = parameters === VOID ? null : parameters;
|
|
4369
4369
|
strict = strict === VOID ? null : strict;
|
|
4370
|
-
this.
|
|
4371
|
-
this.
|
|
4372
|
-
this.
|
|
4373
|
-
this.
|
|
4370
|
+
this.p8l_1 = name;
|
|
4371
|
+
this.q8l_1 = description;
|
|
4372
|
+
this.r8l_1 = parameters;
|
|
4373
|
+
this.s8l_1 = strict;
|
|
4374
4374
|
}
|
|
4375
4375
|
function $serializer_30() {
|
|
4376
4376
|
$serializer_instance_30 = this;
|
|
@@ -4379,28 +4379,28 @@
|
|
|
4379
4379
|
tmp0_serialDesc.m16('expiresAt', true);
|
|
4380
4380
|
tmp0_serialDesc.m16('id', false);
|
|
4381
4381
|
tmp0_serialDesc.m16('transcript', true);
|
|
4382
|
-
this.
|
|
4382
|
+
this.t8l_1 = tmp0_serialDesc;
|
|
4383
4383
|
}
|
|
4384
|
-
protoOf($serializer_30).
|
|
4385
|
-
var tmp0_desc = this.
|
|
4384
|
+
protoOf($serializer_30).u8l = function (encoder, value) {
|
|
4385
|
+
var tmp0_desc = this.t8l_1;
|
|
4386
4386
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4387
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
4388
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
4387
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.j8g_1 == null)) {
|
|
4388
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.j8g_1);
|
|
4389
4389
|
}
|
|
4390
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
4391
|
-
tmp1_output.p10(tmp0_desc, 1, LongSerializer_getInstance(), value.
|
|
4390
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.k8g_1 == null)) {
|
|
4391
|
+
tmp1_output.p10(tmp0_desc, 1, LongSerializer_getInstance(), value.k8g_1);
|
|
4392
4392
|
}
|
|
4393
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
4394
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
4395
|
-
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
4393
|
+
tmp1_output.l10(tmp0_desc, 2, value.l8g_1);
|
|
4394
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.m8g_1 == null)) {
|
|
4395
|
+
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.m8g_1);
|
|
4396
4396
|
}
|
|
4397
4397
|
tmp1_output.xy(tmp0_desc);
|
|
4398
4398
|
};
|
|
4399
4399
|
protoOf($serializer_30).gv = function (encoder, value) {
|
|
4400
|
-
return this.
|
|
4400
|
+
return this.u8l(encoder, value instanceof OpenAIAudio ? value : THROW_CCE());
|
|
4401
4401
|
};
|
|
4402
4402
|
protoOf($serializer_30).hv = function (decoder) {
|
|
4403
|
-
var tmp0_desc = this.
|
|
4403
|
+
var tmp0_desc = this.t8l_1;
|
|
4404
4404
|
var tmp1_flag = true;
|
|
4405
4405
|
var tmp2_index = 0;
|
|
4406
4406
|
var tmp3_bitMask0 = 0;
|
|
@@ -4449,7 +4449,7 @@
|
|
|
4449
4449
|
return OpenAIAudio_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
4450
4450
|
};
|
|
4451
4451
|
protoOf($serializer_30).fv = function () {
|
|
4452
|
-
return this.
|
|
4452
|
+
return this.t8l_1;
|
|
4453
4453
|
};
|
|
4454
4454
|
protoOf($serializer_30).d17 = function () {
|
|
4455
4455
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4465,21 +4465,21 @@
|
|
|
4465
4465
|
}
|
|
4466
4466
|
function OpenAIAudio_init_$Init$(seen0, data, expiresAt, id, transcript, serializationConstructorMarker, $this) {
|
|
4467
4467
|
if (!(4 === (4 & seen0))) {
|
|
4468
|
-
throwMissingFieldException(seen0, 4, $serializer_getInstance_30().
|
|
4468
|
+
throwMissingFieldException(seen0, 4, $serializer_getInstance_30().t8l_1);
|
|
4469
4469
|
}
|
|
4470
4470
|
if (0 === (seen0 & 1))
|
|
4471
|
-
$this.
|
|
4471
|
+
$this.j8g_1 = null;
|
|
4472
4472
|
else
|
|
4473
|
-
$this.
|
|
4473
|
+
$this.j8g_1 = data;
|
|
4474
4474
|
if (0 === (seen0 & 2))
|
|
4475
|
-
$this.
|
|
4475
|
+
$this.k8g_1 = null;
|
|
4476
4476
|
else
|
|
4477
|
-
$this.
|
|
4478
|
-
$this.
|
|
4477
|
+
$this.k8g_1 = expiresAt;
|
|
4478
|
+
$this.l8g_1 = id;
|
|
4479
4479
|
if (0 === (seen0 & 8))
|
|
4480
|
-
$this.
|
|
4480
|
+
$this.m8g_1 = null;
|
|
4481
4481
|
else
|
|
4482
|
-
$this.
|
|
4482
|
+
$this.m8g_1 = transcript;
|
|
4483
4483
|
return $this;
|
|
4484
4484
|
}
|
|
4485
4485
|
function OpenAIAudio_init_$Create$(seen0, data, expiresAt, id, transcript, serializationConstructorMarker) {
|
|
@@ -4500,28 +4500,28 @@
|
|
|
4500
4500
|
tmp0_serialDesc.m16('description', true);
|
|
4501
4501
|
tmp0_serialDesc.m16('schema', true);
|
|
4502
4502
|
tmp0_serialDesc.m16('strict', true);
|
|
4503
|
-
this.
|
|
4503
|
+
this.v8l_1 = tmp0_serialDesc;
|
|
4504
4504
|
}
|
|
4505
|
-
protoOf($serializer_31).
|
|
4506
|
-
var tmp0_desc = this.
|
|
4505
|
+
protoOf($serializer_31).w8l = function (encoder, value) {
|
|
4506
|
+
var tmp0_desc = this.v8l_1;
|
|
4507
4507
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4508
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4509
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
4510
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
4508
|
+
tmp1_output.l10(tmp0_desc, 0, value.x8l_1);
|
|
4509
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.y8l_1 == null)) {
|
|
4510
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.y8l_1);
|
|
4511
4511
|
}
|
|
4512
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
4513
|
-
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
4512
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.z8l_1 == null)) {
|
|
4513
|
+
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.z8l_1);
|
|
4514
4514
|
}
|
|
4515
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
4516
|
-
tmp1_output.p10(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
4515
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.a8m_1 == null)) {
|
|
4516
|
+
tmp1_output.p10(tmp0_desc, 3, BooleanSerializer_getInstance(), value.a8m_1);
|
|
4517
4517
|
}
|
|
4518
4518
|
tmp1_output.xy(tmp0_desc);
|
|
4519
4519
|
};
|
|
4520
4520
|
protoOf($serializer_31).gv = function (encoder, value) {
|
|
4521
|
-
return this.
|
|
4521
|
+
return this.w8l(encoder, value instanceof JsonSchemaObject ? value : THROW_CCE());
|
|
4522
4522
|
};
|
|
4523
4523
|
protoOf($serializer_31).hv = function (decoder) {
|
|
4524
|
-
var tmp0_desc = this.
|
|
4524
|
+
var tmp0_desc = this.v8l_1;
|
|
4525
4525
|
var tmp1_flag = true;
|
|
4526
4526
|
var tmp2_index = 0;
|
|
4527
4527
|
var tmp3_bitMask0 = 0;
|
|
@@ -4570,7 +4570,7 @@
|
|
|
4570
4570
|
return JsonSchemaObject_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
4571
4571
|
};
|
|
4572
4572
|
protoOf($serializer_31).fv = function () {
|
|
4573
|
-
return this.
|
|
4573
|
+
return this.v8l_1;
|
|
4574
4574
|
};
|
|
4575
4575
|
protoOf($serializer_31).d17 = function () {
|
|
4576
4576
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4586,21 +4586,21 @@
|
|
|
4586
4586
|
}
|
|
4587
4587
|
function JsonSchemaObject_init_$Init$(seen0, name, description, schema, strict, serializationConstructorMarker, $this) {
|
|
4588
4588
|
if (!(1 === (1 & seen0))) {
|
|
4589
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_31().
|
|
4589
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_31().v8l_1);
|
|
4590
4590
|
}
|
|
4591
|
-
$this.
|
|
4591
|
+
$this.x8l_1 = name;
|
|
4592
4592
|
if (0 === (seen0 & 2))
|
|
4593
|
-
$this.
|
|
4593
|
+
$this.y8l_1 = null;
|
|
4594
4594
|
else
|
|
4595
|
-
$this.
|
|
4595
|
+
$this.y8l_1 = description;
|
|
4596
4596
|
if (0 === (seen0 & 4))
|
|
4597
|
-
$this.
|
|
4597
|
+
$this.z8l_1 = null;
|
|
4598
4598
|
else
|
|
4599
|
-
$this.
|
|
4599
|
+
$this.z8l_1 = schema;
|
|
4600
4600
|
if (0 === (seen0 & 8))
|
|
4601
|
-
$this.
|
|
4601
|
+
$this.a8m_1 = null;
|
|
4602
4602
|
else
|
|
4603
|
-
$this.
|
|
4603
|
+
$this.a8m_1 = strict;
|
|
4604
4604
|
return $this;
|
|
4605
4605
|
}
|
|
4606
4606
|
function JsonSchemaObject_init_$Create$(seen0, name, description, schema, strict, serializationConstructorMarker) {
|
|
@@ -4610,31 +4610,31 @@
|
|
|
4610
4610
|
description = description === VOID ? null : description;
|
|
4611
4611
|
schema = schema === VOID ? null : schema;
|
|
4612
4612
|
strict = strict === VOID ? null : strict;
|
|
4613
|
-
this.
|
|
4614
|
-
this.
|
|
4615
|
-
this.
|
|
4616
|
-
this.
|
|
4613
|
+
this.x8l_1 = name;
|
|
4614
|
+
this.y8l_1 = description;
|
|
4615
|
+
this.z8l_1 = schema;
|
|
4616
|
+
this.a8m_1 = strict;
|
|
4617
4617
|
}
|
|
4618
4618
|
function ContentSerializer() {
|
|
4619
4619
|
ContentSerializer_instance = this;
|
|
4620
|
-
this.
|
|
4620
|
+
this.b8m_1 = buildSerialDescriptor('Content', CONTEXTUAL_getInstance(), []);
|
|
4621
4621
|
}
|
|
4622
4622
|
protoOf(ContentSerializer).fv = function () {
|
|
4623
|
-
return this.
|
|
4623
|
+
return this.b8m_1;
|
|
4624
4624
|
};
|
|
4625
|
-
protoOf(ContentSerializer).
|
|
4625
|
+
protoOf(ContentSerializer).c8m = function (encoder, value) {
|
|
4626
4626
|
if (value instanceof Text_1) {
|
|
4627
|
-
encoder.a10(_Text___get_value__impl__724n08(value.
|
|
4627
|
+
encoder.a10(_Text___get_value__impl__724n08(value.h8k_1));
|
|
4628
4628
|
} else {
|
|
4629
4629
|
if (value instanceof Parts) {
|
|
4630
|
-
encoder.o10(ListSerializer(Companion_instance_31.q1j()), _Parts___get_value__impl__4soox9(value.
|
|
4630
|
+
encoder.o10(ListSerializer(Companion_instance_31.q1j()), _Parts___get_value__impl__4soox9(value.m8k_1));
|
|
4631
4631
|
} else {
|
|
4632
4632
|
noWhenBranchMatchedException();
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
4635
|
};
|
|
4636
4636
|
protoOf(ContentSerializer).gv = function (encoder, value) {
|
|
4637
|
-
return this.
|
|
4637
|
+
return this.c8m(encoder, (!(value == null) ? isInterface(value, Content) : false) ? value : THROW_CCE());
|
|
4638
4638
|
};
|
|
4639
4639
|
protoOf(ContentSerializer).hv = function (decoder) {
|
|
4640
4640
|
var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
|
|
@@ -4677,22 +4677,22 @@
|
|
|
4677
4677
|
tmp0_serialDesc.m16('startIndex', false);
|
|
4678
4678
|
tmp0_serialDesc.m16('title', false);
|
|
4679
4679
|
tmp0_serialDesc.m16('url', false);
|
|
4680
|
-
this.
|
|
4680
|
+
this.d8m_1 = tmp0_serialDesc;
|
|
4681
4681
|
}
|
|
4682
|
-
protoOf($serializer_32).
|
|
4683
|
-
var tmp0_desc = this.
|
|
4682
|
+
protoOf($serializer_32).e8m = function (encoder, value) {
|
|
4683
|
+
var tmp0_desc = this.d8m_1;
|
|
4684
4684
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4685
|
-
tmp1_output.g10(tmp0_desc, 0, value.
|
|
4686
|
-
tmp1_output.g10(tmp0_desc, 1, value.
|
|
4687
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
4688
|
-
tmp1_output.l10(tmp0_desc, 3, value.
|
|
4685
|
+
tmp1_output.g10(tmp0_desc, 0, value.f8m_1);
|
|
4686
|
+
tmp1_output.g10(tmp0_desc, 1, value.g8m_1);
|
|
4687
|
+
tmp1_output.l10(tmp0_desc, 2, value.h8m_1);
|
|
4688
|
+
tmp1_output.l10(tmp0_desc, 3, value.i8m_1);
|
|
4689
4689
|
tmp1_output.xy(tmp0_desc);
|
|
4690
4690
|
};
|
|
4691
4691
|
protoOf($serializer_32).gv = function (encoder, value) {
|
|
4692
|
-
return this.
|
|
4692
|
+
return this.e8m(encoder, value instanceof Citation ? value : THROW_CCE());
|
|
4693
4693
|
};
|
|
4694
4694
|
protoOf($serializer_32).hv = function (decoder) {
|
|
4695
|
-
var tmp0_desc = this.
|
|
4695
|
+
var tmp0_desc = this.d8m_1;
|
|
4696
4696
|
var tmp1_flag = true;
|
|
4697
4697
|
var tmp2_index = 0;
|
|
4698
4698
|
var tmp3_bitMask0 = 0;
|
|
@@ -4741,7 +4741,7 @@
|
|
|
4741
4741
|
return Citation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
4742
4742
|
};
|
|
4743
4743
|
protoOf($serializer_32).fv = function () {
|
|
4744
|
-
return this.
|
|
4744
|
+
return this.d8m_1;
|
|
4745
4745
|
};
|
|
4746
4746
|
protoOf($serializer_32).d17 = function () {
|
|
4747
4747
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4757,12 +4757,12 @@
|
|
|
4757
4757
|
}
|
|
4758
4758
|
function Citation_init_$Init$(seen0, endIndex, startIndex, title, url, serializationConstructorMarker, $this) {
|
|
4759
4759
|
if (!(15 === (15 & seen0))) {
|
|
4760
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_32().
|
|
4760
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_32().d8m_1);
|
|
4761
4761
|
}
|
|
4762
|
-
$this.
|
|
4763
|
-
$this.
|
|
4764
|
-
$this.
|
|
4765
|
-
$this.
|
|
4762
|
+
$this.f8m_1 = endIndex;
|
|
4763
|
+
$this.g8m_1 = startIndex;
|
|
4764
|
+
$this.h8m_1 = title;
|
|
4765
|
+
$this.i8m_1 = url;
|
|
4766
4766
|
return $this;
|
|
4767
4767
|
}
|
|
4768
4768
|
function Citation_init_$Create$(seen0, endIndex, startIndex, title, url, serializationConstructorMarker) {
|
|
@@ -4775,22 +4775,22 @@
|
|
|
4775
4775
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIWebUrlCitation', this, 2);
|
|
4776
4776
|
tmp0_serialDesc.m16('urlCitation', false);
|
|
4777
4777
|
tmp0_serialDesc.m16('type', true);
|
|
4778
|
-
this.
|
|
4778
|
+
this.j8m_1 = tmp0_serialDesc;
|
|
4779
4779
|
}
|
|
4780
|
-
protoOf($serializer_33).
|
|
4781
|
-
var tmp0_desc = this.
|
|
4780
|
+
protoOf($serializer_33).k8m = function (encoder, value) {
|
|
4781
|
+
var tmp0_desc = this.j8m_1;
|
|
4782
4782
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4783
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_32(), value.
|
|
4784
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
4785
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
4783
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_32(), value.l8m_1);
|
|
4784
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.m8m_1 === 'url_citation')) {
|
|
4785
|
+
tmp1_output.l10(tmp0_desc, 1, value.m8m_1);
|
|
4786
4786
|
}
|
|
4787
4787
|
tmp1_output.xy(tmp0_desc);
|
|
4788
4788
|
};
|
|
4789
4789
|
protoOf($serializer_33).gv = function (encoder, value) {
|
|
4790
|
-
return this.
|
|
4790
|
+
return this.k8m(encoder, value instanceof OpenAIWebUrlCitation ? value : THROW_CCE());
|
|
4791
4791
|
};
|
|
4792
4792
|
protoOf($serializer_33).hv = function (decoder) {
|
|
4793
|
-
var tmp0_desc = this.
|
|
4793
|
+
var tmp0_desc = this.j8m_1;
|
|
4794
4794
|
var tmp1_flag = true;
|
|
4795
4795
|
var tmp2_index = 0;
|
|
4796
4796
|
var tmp3_bitMask0 = 0;
|
|
@@ -4825,7 +4825,7 @@
|
|
|
4825
4825
|
return OpenAIWebUrlCitation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
4826
4826
|
};
|
|
4827
4827
|
protoOf($serializer_33).fv = function () {
|
|
4828
|
-
return this.
|
|
4828
|
+
return this.j8m_1;
|
|
4829
4829
|
};
|
|
4830
4830
|
protoOf($serializer_33).d17 = function () {
|
|
4831
4831
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4841,13 +4841,13 @@
|
|
|
4841
4841
|
}
|
|
4842
4842
|
function OpenAIWebUrlCitation_init_$Init$(seen0, urlCitation, type, serializationConstructorMarker, $this) {
|
|
4843
4843
|
if (!(1 === (1 & seen0))) {
|
|
4844
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_33().
|
|
4844
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_33().j8m_1);
|
|
4845
4845
|
}
|
|
4846
|
-
$this.
|
|
4846
|
+
$this.l8m_1 = urlCitation;
|
|
4847
4847
|
if (0 === (seen0 & 2))
|
|
4848
|
-
$this.
|
|
4848
|
+
$this.m8m_1 = 'url_citation';
|
|
4849
4849
|
else
|
|
4850
|
-
$this.
|
|
4850
|
+
$this.m8m_1 = type;
|
|
4851
4851
|
return $this;
|
|
4852
4852
|
}
|
|
4853
4853
|
function OpenAIWebUrlCitation_init_$Create$(seen0, urlCitation, type, serializationConstructorMarker) {
|
|
@@ -4868,30 +4868,30 @@
|
|
|
4868
4868
|
tmp0_serialDesc.m16('audioTokens', true);
|
|
4869
4869
|
tmp0_serialDesc.m16('reasoningTokens', true);
|
|
4870
4870
|
tmp0_serialDesc.m16('rejectedPredictionTokens', true);
|
|
4871
|
-
this.
|
|
4871
|
+
this.n8m_1 = tmp0_serialDesc;
|
|
4872
4872
|
}
|
|
4873
|
-
protoOf($serializer_34).
|
|
4874
|
-
var tmp0_desc = this.
|
|
4873
|
+
protoOf($serializer_34).o8m = function (encoder, value) {
|
|
4874
|
+
var tmp0_desc = this.n8m_1;
|
|
4875
4875
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4876
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
4877
|
-
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.
|
|
4876
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.p8m_1 == null)) {
|
|
4877
|
+
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.p8m_1);
|
|
4878
4878
|
}
|
|
4879
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
4880
|
-
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.
|
|
4879
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.q8m_1 == null)) {
|
|
4880
|
+
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.q8m_1);
|
|
4881
4881
|
}
|
|
4882
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
4883
|
-
tmp1_output.p10(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
4882
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.r8m_1 == null)) {
|
|
4883
|
+
tmp1_output.p10(tmp0_desc, 2, IntSerializer_getInstance(), value.r8m_1);
|
|
4884
4884
|
}
|
|
4885
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
4886
|
-
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
4885
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.s8m_1 == null)) {
|
|
4886
|
+
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.s8m_1);
|
|
4887
4887
|
}
|
|
4888
4888
|
tmp1_output.xy(tmp0_desc);
|
|
4889
4889
|
};
|
|
4890
4890
|
protoOf($serializer_34).gv = function (encoder, value) {
|
|
4891
|
-
return this.
|
|
4891
|
+
return this.o8m(encoder, value instanceof CompletionTokensDetails ? value : THROW_CCE());
|
|
4892
4892
|
};
|
|
4893
4893
|
protoOf($serializer_34).hv = function (decoder) {
|
|
4894
|
-
var tmp0_desc = this.
|
|
4894
|
+
var tmp0_desc = this.n8m_1;
|
|
4895
4895
|
var tmp1_flag = true;
|
|
4896
4896
|
var tmp2_index = 0;
|
|
4897
4897
|
var tmp3_bitMask0 = 0;
|
|
@@ -4940,7 +4940,7 @@
|
|
|
4940
4940
|
return CompletionTokensDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
4941
4941
|
};
|
|
4942
4942
|
protoOf($serializer_34).fv = function () {
|
|
4943
|
-
return this.
|
|
4943
|
+
return this.n8m_1;
|
|
4944
4944
|
};
|
|
4945
4945
|
protoOf($serializer_34).d17 = function () {
|
|
4946
4946
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4956,24 +4956,24 @@
|
|
|
4956
4956
|
}
|
|
4957
4957
|
function CompletionTokensDetails_init_$Init$(seen0, acceptedPredictionTokens, audioTokens, reasoningTokens, rejectedPredictionTokens, serializationConstructorMarker, $this) {
|
|
4958
4958
|
if (!(0 === (0 & seen0))) {
|
|
4959
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_34().
|
|
4959
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_34().n8m_1);
|
|
4960
4960
|
}
|
|
4961
4961
|
if (0 === (seen0 & 1))
|
|
4962
|
-
$this.
|
|
4962
|
+
$this.p8m_1 = null;
|
|
4963
4963
|
else
|
|
4964
|
-
$this.
|
|
4964
|
+
$this.p8m_1 = acceptedPredictionTokens;
|
|
4965
4965
|
if (0 === (seen0 & 2))
|
|
4966
|
-
$this.
|
|
4966
|
+
$this.q8m_1 = null;
|
|
4967
4967
|
else
|
|
4968
|
-
$this.
|
|
4968
|
+
$this.q8m_1 = audioTokens;
|
|
4969
4969
|
if (0 === (seen0 & 4))
|
|
4970
|
-
$this.
|
|
4970
|
+
$this.r8m_1 = null;
|
|
4971
4971
|
else
|
|
4972
|
-
$this.
|
|
4972
|
+
$this.r8m_1 = reasoningTokens;
|
|
4973
4973
|
if (0 === (seen0 & 8))
|
|
4974
|
-
$this.
|
|
4974
|
+
$this.s8m_1 = null;
|
|
4975
4975
|
else
|
|
4976
|
-
$this.
|
|
4976
|
+
$this.s8m_1 = rejectedPredictionTokens;
|
|
4977
4977
|
return $this;
|
|
4978
4978
|
}
|
|
4979
4979
|
function CompletionTokensDetails_init_$Create$(seen0, acceptedPredictionTokens, audioTokens, reasoningTokens, rejectedPredictionTokens, serializationConstructorMarker) {
|
|
@@ -4984,10 +4984,10 @@
|
|
|
4984
4984
|
audioTokens = audioTokens === VOID ? null : audioTokens;
|
|
4985
4985
|
reasoningTokens = reasoningTokens === VOID ? null : reasoningTokens;
|
|
4986
4986
|
rejectedPredictionTokens = rejectedPredictionTokens === VOID ? null : rejectedPredictionTokens;
|
|
4987
|
-
this.
|
|
4988
|
-
this.
|
|
4989
|
-
this.
|
|
4990
|
-
this.
|
|
4987
|
+
this.p8m_1 = acceptedPredictionTokens;
|
|
4988
|
+
this.q8m_1 = audioTokens;
|
|
4989
|
+
this.r8m_1 = reasoningTokens;
|
|
4990
|
+
this.s8m_1 = rejectedPredictionTokens;
|
|
4991
4991
|
}
|
|
4992
4992
|
function Companion_34() {
|
|
4993
4993
|
}
|
|
@@ -5000,24 +5000,24 @@
|
|
|
5000
5000
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.PromptTokensDetails', this, 2);
|
|
5001
5001
|
tmp0_serialDesc.m16('audioTokens', true);
|
|
5002
5002
|
tmp0_serialDesc.m16('cachedTokens', true);
|
|
5003
|
-
this.
|
|
5003
|
+
this.t8m_1 = tmp0_serialDesc;
|
|
5004
5004
|
}
|
|
5005
|
-
protoOf($serializer_35).
|
|
5006
|
-
var tmp0_desc = this.
|
|
5005
|
+
protoOf($serializer_35).u8m = function (encoder, value) {
|
|
5006
|
+
var tmp0_desc = this.t8m_1;
|
|
5007
5007
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
5008
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
5009
|
-
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.
|
|
5008
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.v8m_1 == null)) {
|
|
5009
|
+
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.v8m_1);
|
|
5010
5010
|
}
|
|
5011
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
5012
|
-
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.
|
|
5011
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.w8m_1 == null)) {
|
|
5012
|
+
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.w8m_1);
|
|
5013
5013
|
}
|
|
5014
5014
|
tmp1_output.xy(tmp0_desc);
|
|
5015
5015
|
};
|
|
5016
5016
|
protoOf($serializer_35).gv = function (encoder, value) {
|
|
5017
|
-
return this.
|
|
5017
|
+
return this.u8m(encoder, value instanceof PromptTokensDetails ? value : THROW_CCE());
|
|
5018
5018
|
};
|
|
5019
5019
|
protoOf($serializer_35).hv = function (decoder) {
|
|
5020
|
-
var tmp0_desc = this.
|
|
5020
|
+
var tmp0_desc = this.t8m_1;
|
|
5021
5021
|
var tmp1_flag = true;
|
|
5022
5022
|
var tmp2_index = 0;
|
|
5023
5023
|
var tmp3_bitMask0 = 0;
|
|
@@ -5052,7 +5052,7 @@
|
|
|
5052
5052
|
return PromptTokensDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
5053
5053
|
};
|
|
5054
5054
|
protoOf($serializer_35).fv = function () {
|
|
5055
|
-
return this.
|
|
5055
|
+
return this.t8m_1;
|
|
5056
5056
|
};
|
|
5057
5057
|
protoOf($serializer_35).d17 = function () {
|
|
5058
5058
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -5068,16 +5068,16 @@
|
|
|
5068
5068
|
}
|
|
5069
5069
|
function PromptTokensDetails_init_$Init$(seen0, audioTokens, cachedTokens, serializationConstructorMarker, $this) {
|
|
5070
5070
|
if (!(0 === (0 & seen0))) {
|
|
5071
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_35().
|
|
5071
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_35().t8m_1);
|
|
5072
5072
|
}
|
|
5073
5073
|
if (0 === (seen0 & 1))
|
|
5074
|
-
$this.
|
|
5074
|
+
$this.v8m_1 = null;
|
|
5075
5075
|
else
|
|
5076
|
-
$this.
|
|
5076
|
+
$this.v8m_1 = audioTokens;
|
|
5077
5077
|
if (0 === (seen0 & 2))
|
|
5078
|
-
$this.
|
|
5078
|
+
$this.w8m_1 = null;
|
|
5079
5079
|
else
|
|
5080
|
-
$this.
|
|
5080
|
+
$this.w8m_1 = cachedTokens;
|
|
5081
5081
|
return $this;
|
|
5082
5082
|
}
|
|
5083
5083
|
function PromptTokensDetails_init_$Create$(seen0, audioTokens, cachedTokens, serializationConstructorMarker) {
|
|
@@ -5086,8 +5086,8 @@
|
|
|
5086
5086
|
function PromptTokensDetails(audioTokens, cachedTokens) {
|
|
5087
5087
|
audioTokens = audioTokens === VOID ? null : audioTokens;
|
|
5088
5088
|
cachedTokens = cachedTokens === VOID ? null : cachedTokens;
|
|
5089
|
-
this.
|
|
5090
|
-
this.
|
|
5089
|
+
this.v8m_1 = audioTokens;
|
|
5090
|
+
this.w8m_1 = cachedTokens;
|
|
5091
5091
|
}
|
|
5092
5092
|
function OpenAIChoiceLogProbs$ContentLogProbs$Companion$$childSerializers$_anonymous__d9gm2a() {
|
|
5093
5093
|
return new ArrayListSerializer(IntSerializer_getInstance());
|
|
@@ -5104,7 +5104,7 @@
|
|
|
5104
5104
|
// Inline function 'kotlin.arrayOf' call
|
|
5105
5105
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5106
5106
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5107
|
-
tmp.
|
|
5107
|
+
tmp.x8m_1 = [tmp_1, null, null, lazy(tmp_2, OpenAIChoiceLogProbs$ContentLogProbs$Companion$$childSerializers$_anonymous__d9gm2a_0)];
|
|
5108
5108
|
}
|
|
5109
5109
|
var Companion_instance_36;
|
|
5110
5110
|
function Companion_getInstance_37() {
|
|
@@ -5119,25 +5119,25 @@
|
|
|
5119
5119
|
tmp0_serialDesc.m16('logprob', false);
|
|
5120
5120
|
tmp0_serialDesc.m16('token', false);
|
|
5121
5121
|
tmp0_serialDesc.m16('topLogprobs', false);
|
|
5122
|
-
this.
|
|
5122
|
+
this.y8m_1 = tmp0_serialDesc;
|
|
5123
5123
|
}
|
|
5124
|
-
protoOf($serializer_36).
|
|
5125
|
-
var tmp0_desc = this.
|
|
5124
|
+
protoOf($serializer_36).z8m = function (encoder, value) {
|
|
5125
|
+
var tmp0_desc = this.y8m_1;
|
|
5126
5126
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
5127
|
-
var tmp2_cached = Companion_getInstance_37().
|
|
5128
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
5129
|
-
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
5127
|
+
var tmp2_cached = Companion_getInstance_37().x8m_1;
|
|
5128
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.a8n_1 == null)) {
|
|
5129
|
+
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.a8n_1);
|
|
5130
5130
|
}
|
|
5131
|
-
tmp1_output.j10(tmp0_desc, 1, value.
|
|
5132
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
5133
|
-
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.
|
|
5131
|
+
tmp1_output.j10(tmp0_desc, 1, value.b8n_1);
|
|
5132
|
+
tmp1_output.l10(tmp0_desc, 2, value.c8n_1);
|
|
5133
|
+
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.d8n_1);
|
|
5134
5134
|
tmp1_output.xy(tmp0_desc);
|
|
5135
5135
|
};
|
|
5136
5136
|
protoOf($serializer_36).gv = function (encoder, value) {
|
|
5137
|
-
return this.
|
|
5137
|
+
return this.z8m(encoder, value instanceof ContentLogProbs ? value : THROW_CCE());
|
|
5138
5138
|
};
|
|
5139
5139
|
protoOf($serializer_36).hv = function (decoder) {
|
|
5140
|
-
var tmp0_desc = this.
|
|
5140
|
+
var tmp0_desc = this.y8m_1;
|
|
5141
5141
|
var tmp1_flag = true;
|
|
5142
5142
|
var tmp2_index = 0;
|
|
5143
5143
|
var tmp3_bitMask0 = 0;
|
|
@@ -5146,7 +5146,7 @@
|
|
|
5146
5146
|
var tmp6_local2 = null;
|
|
5147
5147
|
var tmp7_local3 = null;
|
|
5148
5148
|
var tmp8_input = decoder.wy(tmp0_desc);
|
|
5149
|
-
var tmp9_cached = Companion_getInstance_37().
|
|
5149
|
+
var tmp9_cached = Companion_getInstance_37().x8m_1;
|
|
5150
5150
|
if (tmp8_input.mz()) {
|
|
5151
5151
|
tmp4_local0 = tmp8_input.kz(tmp0_desc, 0, tmp9_cached[0].b1(), tmp4_local0);
|
|
5152
5152
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -5187,10 +5187,10 @@
|
|
|
5187
5187
|
return ContentLogProbs_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
5188
5188
|
};
|
|
5189
5189
|
protoOf($serializer_36).fv = function () {
|
|
5190
|
-
return this.
|
|
5190
|
+
return this.y8m_1;
|
|
5191
5191
|
};
|
|
5192
5192
|
protoOf($serializer_36).d17 = function () {
|
|
5193
|
-
var tmp0_cached = Companion_getInstance_37().
|
|
5193
|
+
var tmp0_cached = Companion_getInstance_37().x8m_1;
|
|
5194
5194
|
// Inline function 'kotlin.arrayOf' call
|
|
5195
5195
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5196
5196
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -5204,15 +5204,15 @@
|
|
|
5204
5204
|
}
|
|
5205
5205
|
function ContentLogProbs_init_$Init$(seen0, bytes, logprob, token, topLogprobs, serializationConstructorMarker, $this) {
|
|
5206
5206
|
if (!(14 === (14 & seen0))) {
|
|
5207
|
-
throwMissingFieldException(seen0, 14, $serializer_getInstance_36().
|
|
5207
|
+
throwMissingFieldException(seen0, 14, $serializer_getInstance_36().y8m_1);
|
|
5208
5208
|
}
|
|
5209
5209
|
if (0 === (seen0 & 1))
|
|
5210
|
-
$this.
|
|
5210
|
+
$this.a8n_1 = null;
|
|
5211
5211
|
else
|
|
5212
|
-
$this.
|
|
5213
|
-
$this.
|
|
5214
|
-
$this.
|
|
5215
|
-
$this.
|
|
5212
|
+
$this.a8n_1 = bytes;
|
|
5213
|
+
$this.b8n_1 = logprob;
|
|
5214
|
+
$this.c8n_1 = token;
|
|
5215
|
+
$this.d8n_1 = topLogprobs;
|
|
5216
5216
|
return $this;
|
|
5217
5217
|
}
|
|
5218
5218
|
function ContentLogProbs_init_$Create$(seen0, bytes, logprob, token, topLogprobs, serializationConstructorMarker) {
|
|
@@ -5228,7 +5228,7 @@
|
|
|
5228
5228
|
// Inline function 'kotlin.arrayOf' call
|
|
5229
5229
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5230
5230
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5231
|
-
tmp.
|
|
5231
|
+
tmp.e8n_1 = [lazy(tmp_0, OpenAIChoiceLogProbs$ContentTopLogProbs$Companion$$childSerializers$_anonymous__xwuaw3), null, null];
|
|
5232
5232
|
}
|
|
5233
5233
|
var Companion_instance_37;
|
|
5234
5234
|
function Companion_getInstance_38() {
|
|
@@ -5242,24 +5242,24 @@
|
|
|
5242
5242
|
tmp0_serialDesc.m16('bytes', true);
|
|
5243
5243
|
tmp0_serialDesc.m16('logprob', false);
|
|
5244
5244
|
tmp0_serialDesc.m16('token', false);
|
|
5245
|
-
this.
|
|
5245
|
+
this.f8n_1 = tmp0_serialDesc;
|
|
5246
5246
|
}
|
|
5247
|
-
protoOf($serializer_37).
|
|
5248
|
-
var tmp0_desc = this.
|
|
5247
|
+
protoOf($serializer_37).g8n = function (encoder, value) {
|
|
5248
|
+
var tmp0_desc = this.f8n_1;
|
|
5249
5249
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
5250
|
-
var tmp2_cached = Companion_getInstance_38().
|
|
5251
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
5252
|
-
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
5250
|
+
var tmp2_cached = Companion_getInstance_38().e8n_1;
|
|
5251
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.h8n_1 == null)) {
|
|
5252
|
+
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.h8n_1);
|
|
5253
5253
|
}
|
|
5254
|
-
tmp1_output.j10(tmp0_desc, 1, value.
|
|
5255
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
5254
|
+
tmp1_output.j10(tmp0_desc, 1, value.i8n_1);
|
|
5255
|
+
tmp1_output.l10(tmp0_desc, 2, value.j8n_1);
|
|
5256
5256
|
tmp1_output.xy(tmp0_desc);
|
|
5257
5257
|
};
|
|
5258
5258
|
protoOf($serializer_37).gv = function (encoder, value) {
|
|
5259
|
-
return this.
|
|
5259
|
+
return this.g8n(encoder, value instanceof ContentTopLogProbs ? value : THROW_CCE());
|
|
5260
5260
|
};
|
|
5261
5261
|
protoOf($serializer_37).hv = function (decoder) {
|
|
5262
|
-
var tmp0_desc = this.
|
|
5262
|
+
var tmp0_desc = this.f8n_1;
|
|
5263
5263
|
var tmp1_flag = true;
|
|
5264
5264
|
var tmp2_index = 0;
|
|
5265
5265
|
var tmp3_bitMask0 = 0;
|
|
@@ -5267,7 +5267,7 @@
|
|
|
5267
5267
|
var tmp5_local1 = 0.0;
|
|
5268
5268
|
var tmp6_local2 = null;
|
|
5269
5269
|
var tmp7_input = decoder.wy(tmp0_desc);
|
|
5270
|
-
var tmp8_cached = Companion_getInstance_38().
|
|
5270
|
+
var tmp8_cached = Companion_getInstance_38().e8n_1;
|
|
5271
5271
|
if (tmp7_input.mz()) {
|
|
5272
5272
|
tmp4_local0 = tmp7_input.kz(tmp0_desc, 0, tmp8_cached[0].b1(), tmp4_local0);
|
|
5273
5273
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -5302,10 +5302,10 @@
|
|
|
5302
5302
|
return ContentTopLogProbs_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
5303
5303
|
};
|
|
5304
5304
|
protoOf($serializer_37).fv = function () {
|
|
5305
|
-
return this.
|
|
5305
|
+
return this.f8n_1;
|
|
5306
5306
|
};
|
|
5307
5307
|
protoOf($serializer_37).d17 = function () {
|
|
5308
|
-
var tmp0_cached = Companion_getInstance_38().
|
|
5308
|
+
var tmp0_cached = Companion_getInstance_38().e8n_1;
|
|
5309
5309
|
// Inline function 'kotlin.arrayOf' call
|
|
5310
5310
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5311
5311
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -5319,14 +5319,14 @@
|
|
|
5319
5319
|
}
|
|
5320
5320
|
function ContentTopLogProbs_init_$Init$(seen0, bytes, logprob, token, serializationConstructorMarker, $this) {
|
|
5321
5321
|
if (!(6 === (6 & seen0))) {
|
|
5322
|
-
throwMissingFieldException(seen0, 6, $serializer_getInstance_37().
|
|
5322
|
+
throwMissingFieldException(seen0, 6, $serializer_getInstance_37().f8n_1);
|
|
5323
5323
|
}
|
|
5324
5324
|
if (0 === (seen0 & 1))
|
|
5325
|
-
$this.
|
|
5325
|
+
$this.h8n_1 = null;
|
|
5326
5326
|
else
|
|
5327
|
-
$this.
|
|
5328
|
-
$this.
|
|
5329
|
-
$this.
|
|
5327
|
+
$this.h8n_1 = bytes;
|
|
5328
|
+
$this.i8n_1 = logprob;
|
|
5329
|
+
$this.j8n_1 = token;
|
|
5330
5330
|
return $this;
|
|
5331
5331
|
}
|
|
5332
5332
|
function ContentTopLogProbs_init_$Create$(seen0, bytes, logprob, token, serializationConstructorMarker) {
|
|
@@ -5351,7 +5351,7 @@
|
|
|
5351
5351
|
// Inline function 'kotlin.arrayOf' call
|
|
5352
5352
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5353
5353
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5354
|
-
tmp.
|
|
5354
|
+
tmp.k8n_1 = [tmp_1, lazy(tmp_2, OpenAIChoiceLogProbs$Companion$$childSerializers$_anonymous__1uyc59_0)];
|
|
5355
5355
|
}
|
|
5356
5356
|
var Companion_instance_38;
|
|
5357
5357
|
function Companion_getInstance_39() {
|
|
@@ -5364,32 +5364,32 @@
|
|
|
5364
5364
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIChoiceLogProbs', this, 2);
|
|
5365
5365
|
tmp0_serialDesc.m16('content', true);
|
|
5366
5366
|
tmp0_serialDesc.m16('refusal', true);
|
|
5367
|
-
this.
|
|
5367
|
+
this.l8n_1 = tmp0_serialDesc;
|
|
5368
5368
|
}
|
|
5369
|
-
protoOf($serializer_38).
|
|
5370
|
-
var tmp0_desc = this.
|
|
5369
|
+
protoOf($serializer_38).m8n = function (encoder, value) {
|
|
5370
|
+
var tmp0_desc = this.l8n_1;
|
|
5371
5371
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
5372
|
-
var tmp2_cached = Companion_getInstance_39().
|
|
5373
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
5374
|
-
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
5372
|
+
var tmp2_cached = Companion_getInstance_39().k8n_1;
|
|
5373
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.n8n_1 == null)) {
|
|
5374
|
+
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.n8n_1);
|
|
5375
5375
|
}
|
|
5376
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
5377
|
-
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
5376
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.o8n_1 == null)) {
|
|
5377
|
+
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.o8n_1);
|
|
5378
5378
|
}
|
|
5379
5379
|
tmp1_output.xy(tmp0_desc);
|
|
5380
5380
|
};
|
|
5381
5381
|
protoOf($serializer_38).gv = function (encoder, value) {
|
|
5382
|
-
return this.
|
|
5382
|
+
return this.m8n(encoder, value instanceof OpenAIChoiceLogProbs ? value : THROW_CCE());
|
|
5383
5383
|
};
|
|
5384
5384
|
protoOf($serializer_38).hv = function (decoder) {
|
|
5385
|
-
var tmp0_desc = this.
|
|
5385
|
+
var tmp0_desc = this.l8n_1;
|
|
5386
5386
|
var tmp1_flag = true;
|
|
5387
5387
|
var tmp2_index = 0;
|
|
5388
5388
|
var tmp3_bitMask0 = 0;
|
|
5389
5389
|
var tmp4_local0 = null;
|
|
5390
5390
|
var tmp5_local1 = null;
|
|
5391
5391
|
var tmp6_input = decoder.wy(tmp0_desc);
|
|
5392
|
-
var tmp7_cached = Companion_getInstance_39().
|
|
5392
|
+
var tmp7_cached = Companion_getInstance_39().k8n_1;
|
|
5393
5393
|
if (tmp6_input.mz()) {
|
|
5394
5394
|
tmp4_local0 = tmp6_input.kz(tmp0_desc, 0, tmp7_cached[0].b1(), tmp4_local0);
|
|
5395
5395
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -5418,10 +5418,10 @@
|
|
|
5418
5418
|
return OpenAIChoiceLogProbs_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
5419
5419
|
};
|
|
5420
5420
|
protoOf($serializer_38).fv = function () {
|
|
5421
|
-
return this.
|
|
5421
|
+
return this.l8n_1;
|
|
5422
5422
|
};
|
|
5423
5423
|
protoOf($serializer_38).d17 = function () {
|
|
5424
|
-
var tmp0_cached = Companion_getInstance_39().
|
|
5424
|
+
var tmp0_cached = Companion_getInstance_39().k8n_1;
|
|
5425
5425
|
// Inline function 'kotlin.arrayOf' call
|
|
5426
5426
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5427
5427
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -5435,16 +5435,16 @@
|
|
|
5435
5435
|
}
|
|
5436
5436
|
function OpenAIChoiceLogProbs_init_$Init$(seen0, content, refusal, serializationConstructorMarker, $this) {
|
|
5437
5437
|
if (!(0 === (0 & seen0))) {
|
|
5438
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_38().
|
|
5438
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_38().l8n_1);
|
|
5439
5439
|
}
|
|
5440
5440
|
if (0 === (seen0 & 1))
|
|
5441
|
-
$this.
|
|
5441
|
+
$this.n8n_1 = null;
|
|
5442
5442
|
else
|
|
5443
|
-
$this.
|
|
5443
|
+
$this.n8n_1 = content;
|
|
5444
5444
|
if (0 === (seen0 & 2))
|
|
5445
|
-
$this.
|
|
5445
|
+
$this.o8n_1 = null;
|
|
5446
5446
|
else
|
|
5447
|
-
$this.
|
|
5447
|
+
$this.o8n_1 = refusal;
|
|
5448
5448
|
return $this;
|
|
5449
5449
|
}
|
|
5450
5450
|
function OpenAIChoiceLogProbs_init_$Create$(seen0, content, refusal, serializationConstructorMarker) {
|
|
@@ -5454,11 +5454,11 @@
|
|
|
5454
5454
|
Companion_getInstance_39();
|
|
5455
5455
|
content = content === VOID ? null : content;
|
|
5456
5456
|
refusal = refusal === VOID ? null : refusal;
|
|
5457
|
-
this.
|
|
5458
|
-
this.
|
|
5457
|
+
this.n8n_1 = content;
|
|
5458
|
+
this.o8n_1 = refusal;
|
|
5459
5459
|
}
|
|
5460
5460
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
5461
|
-
return $this.
|
|
5461
|
+
return $this.p8n_1.b1();
|
|
5462
5462
|
}
|
|
5463
5463
|
function OpenAIModalities$Companion$_anonymous__fgdsou() {
|
|
5464
5464
|
var tmp = values();
|
|
@@ -5481,7 +5481,7 @@
|
|
|
5481
5481
|
Companion_instance_39 = this;
|
|
5482
5482
|
var tmp = this;
|
|
5483
5483
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
5484
|
-
tmp.
|
|
5484
|
+
tmp.p8n_1 = lazy(tmp_0, OpenAIModalities$Companion$_anonymous__fgdsou);
|
|
5485
5485
|
}
|
|
5486
5486
|
protoOf(Companion_38).q1j = function () {
|
|
5487
5487
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -5523,7 +5523,7 @@
|
|
|
5523
5523
|
// Inline function 'kotlin.arrayOf' call
|
|
5524
5524
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5525
5525
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5526
|
-
tmp.
|
|
5526
|
+
tmp.s8n_1 = [tmp_1, lazy(tmp_2, OpenAIAudioConfig$Companion$$childSerializers$_anonymous__sh3tok_0)];
|
|
5527
5527
|
}
|
|
5528
5528
|
var Companion_instance_40;
|
|
5529
5529
|
function Companion_getInstance_41() {
|
|
@@ -5536,28 +5536,28 @@
|
|
|
5536
5536
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIAudioConfig', this, 2);
|
|
5537
5537
|
tmp0_serialDesc.m16('format', false);
|
|
5538
5538
|
tmp0_serialDesc.m16('voice', false);
|
|
5539
|
-
this.
|
|
5539
|
+
this.t8n_1 = tmp0_serialDesc;
|
|
5540
5540
|
}
|
|
5541
|
-
protoOf($serializer_39).
|
|
5542
|
-
var tmp0_desc = this.
|
|
5541
|
+
protoOf($serializer_39).u8n = function (encoder, value) {
|
|
5542
|
+
var tmp0_desc = this.t8n_1;
|
|
5543
5543
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
5544
|
-
var tmp2_cached = Companion_getInstance_41().
|
|
5545
|
-
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
5546
|
-
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
5544
|
+
var tmp2_cached = Companion_getInstance_41().s8n_1;
|
|
5545
|
+
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.v8n_1);
|
|
5546
|
+
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.w8n_1);
|
|
5547
5547
|
tmp1_output.xy(tmp0_desc);
|
|
5548
5548
|
};
|
|
5549
5549
|
protoOf($serializer_39).gv = function (encoder, value) {
|
|
5550
|
-
return this.
|
|
5550
|
+
return this.u8n(encoder, value instanceof OpenAIAudioConfig ? value : THROW_CCE());
|
|
5551
5551
|
};
|
|
5552
5552
|
protoOf($serializer_39).hv = function (decoder) {
|
|
5553
|
-
var tmp0_desc = this.
|
|
5553
|
+
var tmp0_desc = this.t8n_1;
|
|
5554
5554
|
var tmp1_flag = true;
|
|
5555
5555
|
var tmp2_index = 0;
|
|
5556
5556
|
var tmp3_bitMask0 = 0;
|
|
5557
5557
|
var tmp4_local0 = null;
|
|
5558
5558
|
var tmp5_local1 = null;
|
|
5559
5559
|
var tmp6_input = decoder.wy(tmp0_desc);
|
|
5560
|
-
var tmp7_cached = Companion_getInstance_41().
|
|
5560
|
+
var tmp7_cached = Companion_getInstance_41().s8n_1;
|
|
5561
5561
|
if (tmp6_input.mz()) {
|
|
5562
5562
|
tmp4_local0 = tmp6_input.iz(tmp0_desc, 0, tmp7_cached[0].b1(), tmp4_local0);
|
|
5563
5563
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -5586,10 +5586,10 @@
|
|
|
5586
5586
|
return OpenAIAudioConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
5587
5587
|
};
|
|
5588
5588
|
protoOf($serializer_39).fv = function () {
|
|
5589
|
-
return this.
|
|
5589
|
+
return this.t8n_1;
|
|
5590
5590
|
};
|
|
5591
5591
|
protoOf($serializer_39).d17 = function () {
|
|
5592
|
-
var tmp0_cached = Companion_getInstance_41().
|
|
5592
|
+
var tmp0_cached = Companion_getInstance_41().s8n_1;
|
|
5593
5593
|
// Inline function 'kotlin.arrayOf' call
|
|
5594
5594
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5595
5595
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -5603,10 +5603,10 @@
|
|
|
5603
5603
|
}
|
|
5604
5604
|
function OpenAIAudioConfig_init_$Init$(seen0, format, voice, serializationConstructorMarker, $this) {
|
|
5605
5605
|
if (!(3 === (3 & seen0))) {
|
|
5606
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_39().
|
|
5606
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_39().t8n_1);
|
|
5607
5607
|
}
|
|
5608
|
-
$this.
|
|
5609
|
-
$this.
|
|
5608
|
+
$this.v8n_1 = format;
|
|
5609
|
+
$this.w8n_1 = voice;
|
|
5610
5610
|
return $this;
|
|
5611
5611
|
}
|
|
5612
5612
|
function OpenAIAudioConfig_init_$Create$(seen0, format, voice, serializationConstructorMarker) {
|
|
@@ -5614,11 +5614,11 @@
|
|
|
5614
5614
|
}
|
|
5615
5615
|
function OpenAIAudioConfig(format, voice) {
|
|
5616
5616
|
Companion_getInstance_41();
|
|
5617
|
-
this.
|
|
5618
|
-
this.
|
|
5617
|
+
this.v8n_1 = format;
|
|
5618
|
+
this.w8n_1 = voice;
|
|
5619
5619
|
}
|
|
5620
5620
|
function _get_$cachedSerializer__te6jhj_0($this) {
|
|
5621
|
-
return $this.
|
|
5621
|
+
return $this.q8n_1.b1();
|
|
5622
5622
|
}
|
|
5623
5623
|
function OpenAIAudioFormat$Companion$_anonymous__areqks() {
|
|
5624
5624
|
var tmp = values_0();
|
|
@@ -5644,7 +5644,7 @@
|
|
|
5644
5644
|
Companion_instance_41 = this;
|
|
5645
5645
|
var tmp = this;
|
|
5646
5646
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
5647
|
-
tmp.
|
|
5647
|
+
tmp.q8n_1 = lazy(tmp_0, OpenAIAudioFormat$Companion$_anonymous__areqks);
|
|
5648
5648
|
}
|
|
5649
5649
|
protoOf(Companion_40).q1j = function () {
|
|
5650
5650
|
return _get_$cachedSerializer__te6jhj_0(this);
|
|
@@ -5675,7 +5675,7 @@
|
|
|
5675
5675
|
Enum_0.call(this, name, ordinal);
|
|
5676
5676
|
}
|
|
5677
5677
|
function _get_$cachedSerializer__te6jhj_1($this) {
|
|
5678
|
-
return $this.
|
|
5678
|
+
return $this.r8n_1.b1();
|
|
5679
5679
|
}
|
|
5680
5680
|
function OpenAIAudioVoice$Companion$_anonymous__mck2o1() {
|
|
5681
5681
|
var tmp = values_1();
|
|
@@ -5706,7 +5706,7 @@
|
|
|
5706
5706
|
Companion_instance_42 = this;
|
|
5707
5707
|
var tmp = this;
|
|
5708
5708
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
5709
|
-
tmp.
|
|
5709
|
+
tmp.r8n_1 = lazy(tmp_0, OpenAIAudioVoice$Companion$_anonymous__mck2o1);
|
|
5710
5710
|
}
|
|
5711
5711
|
protoOf(Companion_41).q1j = function () {
|
|
5712
5712
|
return _get_$cachedSerializer__te6jhj_1(this);
|
|
@@ -5752,22 +5752,22 @@
|
|
|
5752
5752
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIStaticContent', this, 2);
|
|
5753
5753
|
tmp0_serialDesc.m16('content', false);
|
|
5754
5754
|
tmp0_serialDesc.m16('type', true);
|
|
5755
|
-
this.
|
|
5755
|
+
this.x8n_1 = tmp0_serialDesc;
|
|
5756
5756
|
}
|
|
5757
|
-
protoOf($serializer_40).
|
|
5758
|
-
var tmp0_desc = this.
|
|
5757
|
+
protoOf($serializer_40).y8n = function (encoder, value) {
|
|
5758
|
+
var tmp0_desc = this.x8n_1;
|
|
5759
5759
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
5760
|
-
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.
|
|
5761
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
5762
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
5760
|
+
tmp1_output.n10(tmp0_desc, 0, ContentSerializer_getInstance(), value.z8n_1);
|
|
5761
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.a8o_1 === 'content')) {
|
|
5762
|
+
tmp1_output.l10(tmp0_desc, 1, value.a8o_1);
|
|
5763
5763
|
}
|
|
5764
5764
|
tmp1_output.xy(tmp0_desc);
|
|
5765
5765
|
};
|
|
5766
5766
|
protoOf($serializer_40).gv = function (encoder, value) {
|
|
5767
|
-
return this.
|
|
5767
|
+
return this.y8n(encoder, value instanceof OpenAIStaticContent ? value : THROW_CCE());
|
|
5768
5768
|
};
|
|
5769
5769
|
protoOf($serializer_40).hv = function (decoder) {
|
|
5770
|
-
var tmp0_desc = this.
|
|
5770
|
+
var tmp0_desc = this.x8n_1;
|
|
5771
5771
|
var tmp1_flag = true;
|
|
5772
5772
|
var tmp2_index = 0;
|
|
5773
5773
|
var tmp3_bitMask0 = 0;
|
|
@@ -5802,7 +5802,7 @@
|
|
|
5802
5802
|
return OpenAIStaticContent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
5803
5803
|
};
|
|
5804
5804
|
protoOf($serializer_40).fv = function () {
|
|
5805
|
-
return this.
|
|
5805
|
+
return this.x8n_1;
|
|
5806
5806
|
};
|
|
5807
5807
|
protoOf($serializer_40).d17 = function () {
|
|
5808
5808
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -5818,24 +5818,24 @@
|
|
|
5818
5818
|
}
|
|
5819
5819
|
function OpenAIStaticContent_init_$Init$(seen0, content, type, serializationConstructorMarker, $this) {
|
|
5820
5820
|
if (!(1 === (1 & seen0))) {
|
|
5821
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_40().
|
|
5821
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_40().x8n_1);
|
|
5822
5822
|
}
|
|
5823
|
-
$this.
|
|
5823
|
+
$this.z8n_1 = content;
|
|
5824
5824
|
if (0 === (seen0 & 2))
|
|
5825
|
-
$this.
|
|
5825
|
+
$this.a8o_1 = 'content';
|
|
5826
5826
|
else
|
|
5827
|
-
$this.
|
|
5827
|
+
$this.a8o_1 = type;
|
|
5828
5828
|
return $this;
|
|
5829
5829
|
}
|
|
5830
5830
|
function OpenAIStaticContent_init_$Create$(seen0, content, type, serializationConstructorMarker) {
|
|
5831
5831
|
return OpenAIStaticContent_init_$Init$(seen0, content, type, serializationConstructorMarker, objectCreate(protoOf(OpenAIStaticContent)));
|
|
5832
5832
|
}
|
|
5833
5833
|
function OpenAIStaticContent(content) {
|
|
5834
|
-
this.
|
|
5835
|
-
this.
|
|
5834
|
+
this.z8n_1 = content;
|
|
5835
|
+
this.a8o_1 = 'content';
|
|
5836
5836
|
}
|
|
5837
5837
|
function _get_$cachedSerializer__te6jhj_2($this) {
|
|
5838
|
-
return $this.
|
|
5838
|
+
return $this.b8o_1.b1();
|
|
5839
5839
|
}
|
|
5840
5840
|
function ReasoningEffort$Companion$_anonymous__qi9i91() {
|
|
5841
5841
|
var tmp = values_2();
|
|
@@ -5860,7 +5860,7 @@
|
|
|
5860
5860
|
Companion_instance_44 = this;
|
|
5861
5861
|
var tmp = this;
|
|
5862
5862
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
5863
|
-
tmp.
|
|
5863
|
+
tmp.b8o_1 = lazy(tmp_0, ReasoningEffort$Companion$_anonymous__qi9i91);
|
|
5864
5864
|
}
|
|
5865
5865
|
protoOf(Companion_43).q1j = function () {
|
|
5866
5866
|
return _get_$cachedSerializer__te6jhj_2(this);
|
|
@@ -5920,24 +5920,24 @@
|
|
|
5920
5920
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIWebSearchOptions', this, 2);
|
|
5921
5921
|
tmp0_serialDesc.m16('searchContextSize', true);
|
|
5922
5922
|
tmp0_serialDesc.m16('userLocation', true);
|
|
5923
|
-
this.
|
|
5923
|
+
this.c8o_1 = tmp0_serialDesc;
|
|
5924
5924
|
}
|
|
5925
|
-
protoOf($serializer_41).
|
|
5926
|
-
var tmp0_desc = this.
|
|
5925
|
+
protoOf($serializer_41).d8o = function (encoder, value) {
|
|
5926
|
+
var tmp0_desc = this.c8o_1;
|
|
5927
5927
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
5928
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
5929
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
5928
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.e8o_1 == null)) {
|
|
5929
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.e8o_1);
|
|
5930
5930
|
}
|
|
5931
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
5932
|
-
tmp1_output.p10(tmp0_desc, 1, $serializer_getInstance_43(), value.
|
|
5931
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.f8o_1 == null)) {
|
|
5932
|
+
tmp1_output.p10(tmp0_desc, 1, $serializer_getInstance_43(), value.f8o_1);
|
|
5933
5933
|
}
|
|
5934
5934
|
tmp1_output.xy(tmp0_desc);
|
|
5935
5935
|
};
|
|
5936
5936
|
protoOf($serializer_41).gv = function (encoder, value) {
|
|
5937
|
-
return this.
|
|
5937
|
+
return this.d8o(encoder, value instanceof OpenAIWebSearchOptions ? value : THROW_CCE());
|
|
5938
5938
|
};
|
|
5939
5939
|
protoOf($serializer_41).hv = function (decoder) {
|
|
5940
|
-
var tmp0_desc = this.
|
|
5940
|
+
var tmp0_desc = this.c8o_1;
|
|
5941
5941
|
var tmp1_flag = true;
|
|
5942
5942
|
var tmp2_index = 0;
|
|
5943
5943
|
var tmp3_bitMask0 = 0;
|
|
@@ -5972,7 +5972,7 @@
|
|
|
5972
5972
|
return OpenAIWebSearchOptions_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
5973
5973
|
};
|
|
5974
5974
|
protoOf($serializer_41).fv = function () {
|
|
5975
|
-
return this.
|
|
5975
|
+
return this.c8o_1;
|
|
5976
5976
|
};
|
|
5977
5977
|
protoOf($serializer_41).d17 = function () {
|
|
5978
5978
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -5988,16 +5988,16 @@
|
|
|
5988
5988
|
}
|
|
5989
5989
|
function OpenAIWebSearchOptions_init_$Init$(seen0, searchContextSize, userLocation, serializationConstructorMarker, $this) {
|
|
5990
5990
|
if (!(0 === (0 & seen0))) {
|
|
5991
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_41().
|
|
5991
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_41().c8o_1);
|
|
5992
5992
|
}
|
|
5993
5993
|
if (0 === (seen0 & 1))
|
|
5994
|
-
$this.
|
|
5994
|
+
$this.e8o_1 = null;
|
|
5995
5995
|
else
|
|
5996
|
-
$this.
|
|
5996
|
+
$this.e8o_1 = searchContextSize;
|
|
5997
5997
|
if (0 === (seen0 & 2))
|
|
5998
|
-
$this.
|
|
5998
|
+
$this.f8o_1 = null;
|
|
5999
5999
|
else
|
|
6000
|
-
$this.
|
|
6000
|
+
$this.f8o_1 = userLocation;
|
|
6001
6001
|
return $this;
|
|
6002
6002
|
}
|
|
6003
6003
|
function OpenAIWebSearchOptions_init_$Create$(seen0, searchContextSize, userLocation, serializationConstructorMarker) {
|
|
@@ -6006,8 +6006,8 @@
|
|
|
6006
6006
|
function OpenAIWebSearchOptions(searchContextSize, userLocation) {
|
|
6007
6007
|
searchContextSize = searchContextSize === VOID ? null : searchContextSize;
|
|
6008
6008
|
userLocation = userLocation === VOID ? null : userLocation;
|
|
6009
|
-
this.
|
|
6010
|
-
this.
|
|
6009
|
+
this.e8o_1 = searchContextSize;
|
|
6010
|
+
this.f8o_1 = userLocation;
|
|
6011
6011
|
}
|
|
6012
6012
|
function Companion_45() {
|
|
6013
6013
|
}
|
|
@@ -6022,30 +6022,30 @@
|
|
|
6022
6022
|
tmp0_serialDesc.m16('country', true);
|
|
6023
6023
|
tmp0_serialDesc.m16('region', true);
|
|
6024
6024
|
tmp0_serialDesc.m16('timezone', true);
|
|
6025
|
-
this.
|
|
6025
|
+
this.g8o_1 = tmp0_serialDesc;
|
|
6026
6026
|
}
|
|
6027
|
-
protoOf($serializer_42).
|
|
6028
|
-
var tmp0_desc = this.
|
|
6027
|
+
protoOf($serializer_42).h8o = function (encoder, value) {
|
|
6028
|
+
var tmp0_desc = this.g8o_1;
|
|
6029
6029
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
6030
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
6031
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
6030
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.i8o_1 == null)) {
|
|
6031
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.i8o_1);
|
|
6032
6032
|
}
|
|
6033
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
6034
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
6033
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.j8o_1 == null)) {
|
|
6034
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.j8o_1);
|
|
6035
6035
|
}
|
|
6036
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
6037
|
-
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
6036
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.k8o_1 == null)) {
|
|
6037
|
+
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.k8o_1);
|
|
6038
6038
|
}
|
|
6039
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
6040
|
-
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
6039
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.l8o_1 == null)) {
|
|
6040
|
+
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.l8o_1);
|
|
6041
6041
|
}
|
|
6042
6042
|
tmp1_output.xy(tmp0_desc);
|
|
6043
6043
|
};
|
|
6044
6044
|
protoOf($serializer_42).gv = function (encoder, value) {
|
|
6045
|
-
return this.
|
|
6045
|
+
return this.h8o(encoder, value instanceof ApproximateLocation ? value : THROW_CCE());
|
|
6046
6046
|
};
|
|
6047
6047
|
protoOf($serializer_42).hv = function (decoder) {
|
|
6048
|
-
var tmp0_desc = this.
|
|
6048
|
+
var tmp0_desc = this.g8o_1;
|
|
6049
6049
|
var tmp1_flag = true;
|
|
6050
6050
|
var tmp2_index = 0;
|
|
6051
6051
|
var tmp3_bitMask0 = 0;
|
|
@@ -6094,7 +6094,7 @@
|
|
|
6094
6094
|
return ApproximateLocation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
6095
6095
|
};
|
|
6096
6096
|
protoOf($serializer_42).fv = function () {
|
|
6097
|
-
return this.
|
|
6097
|
+
return this.g8o_1;
|
|
6098
6098
|
};
|
|
6099
6099
|
protoOf($serializer_42).d17 = function () {
|
|
6100
6100
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -6110,24 +6110,24 @@
|
|
|
6110
6110
|
}
|
|
6111
6111
|
function ApproximateLocation_init_$Init$(seen0, city, country, region, timezone, serializationConstructorMarker, $this) {
|
|
6112
6112
|
if (!(0 === (0 & seen0))) {
|
|
6113
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_42().
|
|
6113
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_42().g8o_1);
|
|
6114
6114
|
}
|
|
6115
6115
|
if (0 === (seen0 & 1))
|
|
6116
|
-
$this.
|
|
6116
|
+
$this.i8o_1 = null;
|
|
6117
6117
|
else
|
|
6118
|
-
$this.
|
|
6118
|
+
$this.i8o_1 = city;
|
|
6119
6119
|
if (0 === (seen0 & 2))
|
|
6120
|
-
$this.
|
|
6120
|
+
$this.j8o_1 = null;
|
|
6121
6121
|
else
|
|
6122
|
-
$this.
|
|
6122
|
+
$this.j8o_1 = country;
|
|
6123
6123
|
if (0 === (seen0 & 4))
|
|
6124
|
-
$this.
|
|
6124
|
+
$this.k8o_1 = null;
|
|
6125
6125
|
else
|
|
6126
|
-
$this.
|
|
6126
|
+
$this.k8o_1 = region;
|
|
6127
6127
|
if (0 === (seen0 & 8))
|
|
6128
|
-
$this.
|
|
6128
|
+
$this.l8o_1 = null;
|
|
6129
6129
|
else
|
|
6130
|
-
$this.
|
|
6130
|
+
$this.l8o_1 = timezone;
|
|
6131
6131
|
return $this;
|
|
6132
6132
|
}
|
|
6133
6133
|
function ApproximateLocation_init_$Create$(seen0, city, country, region, timezone, serializationConstructorMarker) {
|
|
@@ -6138,32 +6138,32 @@
|
|
|
6138
6138
|
country = country === VOID ? null : country;
|
|
6139
6139
|
region = region === VOID ? null : region;
|
|
6140
6140
|
timezone = timezone === VOID ? null : timezone;
|
|
6141
|
-
this.
|
|
6142
|
-
this.
|
|
6143
|
-
this.
|
|
6144
|
-
this.
|
|
6141
|
+
this.i8o_1 = city;
|
|
6142
|
+
this.j8o_1 = country;
|
|
6143
|
+
this.k8o_1 = region;
|
|
6144
|
+
this.l8o_1 = timezone;
|
|
6145
6145
|
}
|
|
6146
6146
|
function $serializer_43() {
|
|
6147
6147
|
$serializer_instance_43 = this;
|
|
6148
6148
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.openai.base.models.OpenAIUserLocation', this, 2);
|
|
6149
6149
|
tmp0_serialDesc.m16('approximate', false);
|
|
6150
6150
|
tmp0_serialDesc.m16('type', true);
|
|
6151
|
-
this.
|
|
6151
|
+
this.m8o_1 = tmp0_serialDesc;
|
|
6152
6152
|
}
|
|
6153
|
-
protoOf($serializer_43).
|
|
6154
|
-
var tmp0_desc = this.
|
|
6153
|
+
protoOf($serializer_43).n8o = function (encoder, value) {
|
|
6154
|
+
var tmp0_desc = this.m8o_1;
|
|
6155
6155
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
6156
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_42(), value.
|
|
6157
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
6158
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
6156
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_42(), value.o8o_1);
|
|
6157
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.p8o_1 === 'approximate')) {
|
|
6158
|
+
tmp1_output.l10(tmp0_desc, 1, value.p8o_1);
|
|
6159
6159
|
}
|
|
6160
6160
|
tmp1_output.xy(tmp0_desc);
|
|
6161
6161
|
};
|
|
6162
6162
|
protoOf($serializer_43).gv = function (encoder, value) {
|
|
6163
|
-
return this.
|
|
6163
|
+
return this.n8o(encoder, value instanceof OpenAIUserLocation ? value : THROW_CCE());
|
|
6164
6164
|
};
|
|
6165
6165
|
protoOf($serializer_43).hv = function (decoder) {
|
|
6166
|
-
var tmp0_desc = this.
|
|
6166
|
+
var tmp0_desc = this.m8o_1;
|
|
6167
6167
|
var tmp1_flag = true;
|
|
6168
6168
|
var tmp2_index = 0;
|
|
6169
6169
|
var tmp3_bitMask0 = 0;
|
|
@@ -6198,7 +6198,7 @@
|
|
|
6198
6198
|
return OpenAIUserLocation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
6199
6199
|
};
|
|
6200
6200
|
protoOf($serializer_43).fv = function () {
|
|
6201
|
-
return this.
|
|
6201
|
+
return this.m8o_1;
|
|
6202
6202
|
};
|
|
6203
6203
|
protoOf($serializer_43).d17 = function () {
|
|
6204
6204
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -6214,13 +6214,13 @@
|
|
|
6214
6214
|
}
|
|
6215
6215
|
function OpenAIUserLocation_init_$Init$(seen0, approximate, type, serializationConstructorMarker, $this) {
|
|
6216
6216
|
if (!(1 === (1 & seen0))) {
|
|
6217
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_43().
|
|
6217
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_43().m8o_1);
|
|
6218
6218
|
}
|
|
6219
|
-
$this.
|
|
6219
|
+
$this.o8o_1 = approximate;
|
|
6220
6220
|
if (0 === (seen0 & 2))
|
|
6221
|
-
$this.
|
|
6221
|
+
$this.p8o_1 = 'approximate';
|
|
6222
6222
|
else
|
|
6223
|
-
$this.
|
|
6223
|
+
$this.p8o_1 = type;
|
|
6224
6224
|
return $this;
|
|
6225
6225
|
}
|
|
6226
6226
|
function OpenAIUserLocation_init_$Create$(seen0, approximate, type, serializationConstructorMarker) {
|
|
@@ -6342,11 +6342,11 @@
|
|
|
6342
6342
|
Default_getInstance();
|
|
6343
6343
|
BasicJsonSchemaGenerator.call(this);
|
|
6344
6344
|
}
|
|
6345
|
-
protoOf(OpenAIBasicJsonSchemaGenerator).
|
|
6345
|
+
protoOf(OpenAIBasicJsonSchemaGenerator).m88 = function (context) {
|
|
6346
6346
|
throw UnsupportedOperationException_init_$Create$("OpenAI JSON schema doesn't support maps");
|
|
6347
6347
|
};
|
|
6348
|
-
protoOf(OpenAIBasicJsonSchemaGenerator).
|
|
6349
|
-
var schema = toMutableMap(protoOf(BasicJsonSchemaGenerator).
|
|
6348
|
+
protoOf(OpenAIBasicJsonSchemaGenerator).n88 = function (context) {
|
|
6349
|
+
var schema = toMutableMap(protoOf(BasicJsonSchemaGenerator).n88.call(this, context));
|
|
6350
6350
|
var tmp2 = 'required';
|
|
6351
6351
|
// Inline function 'kotlin.collections.map' call
|
|
6352
6352
|
var this_0 = get_jsonObject(getValue(schema, 'properties')).k2();
|
|
@@ -6361,8 +6361,8 @@
|
|
|
6361
6361
|
// Inline function 'kotlin.collections.set' call
|
|
6362
6362
|
var value = new JsonArray(destination);
|
|
6363
6363
|
schema.r2(tmp2, value);
|
|
6364
|
-
var tmp0 = context.
|
|
6365
|
-
var tmp2_0 = context.
|
|
6364
|
+
var tmp0 = context.t88_1;
|
|
6365
|
+
var tmp2_0 = context.s88_1;
|
|
6366
6366
|
// Inline function 'kotlin.collections.set' call
|
|
6367
6367
|
var value_0 = new JsonObject(schema);
|
|
6368
6368
|
tmp0.r2(tmp2_0, value_0);
|
|
@@ -6388,9 +6388,9 @@
|
|
|
6388
6388
|
Companion_getInstance_48();
|
|
6389
6389
|
StandardJsonSchemaGenerator.call(this);
|
|
6390
6390
|
}
|
|
6391
|
-
protoOf(OpenAIStandardJsonSchemaGenerator).
|
|
6392
|
-
var param = protoOf(StandardJsonSchemaGenerator).
|
|
6393
|
-
var schema = toMutableMap(param.
|
|
6391
|
+
protoOf(OpenAIStandardJsonSchemaGenerator).e88 = function (json, name, serializer, descriptionOverrides, excludedProperties) {
|
|
6392
|
+
var param = protoOf(StandardJsonSchemaGenerator).e88.call(this, json, name, serializer, descriptionOverrides, excludedProperties);
|
|
6393
|
+
var schema = toMutableMap(param.j49_1);
|
|
6394
6394
|
var rootRef = get_jsonPrimitive(getValue(schema, '$ref'));
|
|
6395
6395
|
var rootDefKey = removePrefix(rootRef.v1j(), '#/$defs/');
|
|
6396
6396
|
var rootType = get_jsonObject(getValue(get_jsonObject(getValue(schema, '$defs')), rootDefKey));
|
|
@@ -6418,15 +6418,15 @@
|
|
|
6418
6418
|
schema.r2('$defs', value_0);
|
|
6419
6419
|
}
|
|
6420
6420
|
}
|
|
6421
|
-
return param.
|
|
6421
|
+
return param.o49(VOID, new JsonObject(schema));
|
|
6422
6422
|
};
|
|
6423
|
-
protoOf(OpenAIStandardJsonSchemaGenerator).
|
|
6423
|
+
protoOf(OpenAIStandardJsonSchemaGenerator).m88 = function (context) {
|
|
6424
6424
|
throw UnsupportedOperationException_init_$Create$("OpenAI JSON schema doesn't support maps");
|
|
6425
6425
|
};
|
|
6426
|
-
protoOf(OpenAIStandardJsonSchemaGenerator).
|
|
6427
|
-
var refObject = toMutableMap(protoOf(StandardJsonSchemaGenerator).
|
|
6428
|
-
if (!context.
|
|
6429
|
-
var schema = toMutableMap(getValue(context.
|
|
6426
|
+
protoOf(OpenAIStandardJsonSchemaGenerator).n88 = function (context) {
|
|
6427
|
+
var refObject = toMutableMap(protoOf(StandardJsonSchemaGenerator).n88.call(this, context));
|
|
6428
|
+
if (!context.u88_1.w(context.s88_1)) {
|
|
6429
|
+
var schema = toMutableMap(getValue(context.t88_1, context.s88_1));
|
|
6430
6430
|
var tmp2 = 'required';
|
|
6431
6431
|
// Inline function 'kotlin.collections.map' call
|
|
6432
6432
|
var this_0 = get_jsonObject(getValue(schema, 'properties')).k2();
|
|
@@ -6441,8 +6441,8 @@
|
|
|
6441
6441
|
// Inline function 'kotlin.collections.set' call
|
|
6442
6442
|
var value = new JsonArray(destination);
|
|
6443
6443
|
schema.r2(tmp2, value);
|
|
6444
|
-
var tmp0 = context.
|
|
6445
|
-
var tmp2_0 = context.
|
|
6444
|
+
var tmp0 = context.t88_1;
|
|
6445
|
+
var tmp2_0 = context.s88_1;
|
|
6446
6446
|
// Inline function 'kotlin.collections.set' call
|
|
6447
6447
|
var value_0 = new JsonObject(schema);
|
|
6448
6448
|
tmp0.r2(tmp2_0, value_0);
|
|
@@ -6475,19 +6475,19 @@
|
|
|
6475
6475
|
}
|
|
6476
6476
|
return new JsonObject(refObject);
|
|
6477
6477
|
};
|
|
6478
|
-
protoOf(OpenAIStandardJsonSchemaGenerator).
|
|
6478
|
+
protoOf(OpenAIStandardJsonSchemaGenerator).d89 = function (context) {
|
|
6479
6479
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
6480
6480
|
var builder = new JsonObjectBuilder();
|
|
6481
6481
|
put(builder, 'type', 'string');
|
|
6482
6482
|
// Inline function 'kotlinx.serialization.json.buildJsonArray' call
|
|
6483
6483
|
var builder_0 = new JsonArrayBuilder();
|
|
6484
|
-
add(builder_0, context.
|
|
6484
|
+
add(builder_0, context.s88_1.fw());
|
|
6485
6485
|
var tmp$ret$1 = builder_0.s1i();
|
|
6486
6486
|
builder.g1k('enum', tmp$ret$1);
|
|
6487
6487
|
return builder.s1i();
|
|
6488
6488
|
};
|
|
6489
|
-
protoOf(OpenAIStandardJsonSchemaGenerator).
|
|
6490
|
-
var schema = toMutableMap(protoOf(StandardJsonSchemaGenerator).
|
|
6489
|
+
protoOf(OpenAIStandardJsonSchemaGenerator).q88 = function (context) {
|
|
6490
|
+
var schema = toMutableMap(protoOf(StandardJsonSchemaGenerator).q88.call(this, context));
|
|
6491
6491
|
replaceOneOf(this, schema);
|
|
6492
6492
|
return new JsonObject(schema);
|
|
6493
6493
|
};
|