@xiuper/mpp-core 0.0.2 → 0.2.0
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-google-client.js
CHANGED
|
@@ -66,30 +66,30 @@
|
|
|
66
66
|
var imul = Math.imul;
|
|
67
67
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z2;
|
|
68
68
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.o;
|
|
69
|
-
var lazy = kotlin_kotlin.$_$.
|
|
70
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
71
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
69
|
+
var lazy = kotlin_kotlin.$_$.bm;
|
|
70
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
71
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
72
72
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3;
|
|
73
73
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
74
74
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
|
|
75
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
75
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
76
76
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
|
|
77
77
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
|
|
78
78
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b3;
|
|
79
79
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3;
|
|
80
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
80
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
81
81
|
var VOID = kotlin_kotlin.$_$.h;
|
|
82
82
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3;
|
|
83
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
84
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
83
|
+
var objectCreate = kotlin_kotlin.$_$.ye;
|
|
84
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
85
85
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
|
|
86
86
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
87
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var toString = kotlin_kotlin.$_$.
|
|
90
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
91
|
-
var equals = kotlin_kotlin.$_$.
|
|
92
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
87
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
88
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.rd;
|
|
89
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
90
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
91
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
92
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
93
93
|
var ByteArrayAsBase64Serializer = kotlin_ai_koog_utils.$_$.b;
|
|
94
94
|
var JsonObjectSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
95
95
|
var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
@@ -97,44 +97,44 @@
|
|
|
97
97
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
98
98
|
var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k3;
|
|
99
99
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j3;
|
|
100
|
-
var Enum = kotlin_kotlin.$_$.
|
|
100
|
+
var Enum = kotlin_kotlin.$_$.qk;
|
|
101
101
|
var AdditionalPropertiesFlatteningSerializer = kotlin_ai_koog_prompt_executor_clients.$_$.a;
|
|
102
102
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b1;
|
|
103
103
|
var JsonContentPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.m;
|
|
104
104
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
105
105
|
var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
106
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
106
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
107
107
|
var ServerSentEvent = kotlin_io_ktor_ktor_sse.$_$.a;
|
|
108
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
109
|
-
var trim = kotlin_kotlin.$_$.
|
|
110
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
108
|
+
var isCharSequence = kotlin_kotlin.$_$.ie;
|
|
109
|
+
var trim = kotlin_kotlin.$_$.ck;
|
|
110
|
+
var arrayOf = kotlin_kotlin.$_$.rl;
|
|
111
111
|
var createKType = kotlin_kotlin.$_$.c;
|
|
112
112
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j4;
|
|
113
113
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x3;
|
|
114
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
114
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
115
115
|
var Companion_getInstance = kotlin_ai_koog_prompt_model.$_$.d2;
|
|
116
116
|
var firstOrNull = kotlin_kotlin.$_$.s8;
|
|
117
117
|
var emitAppend = kotlin_ai_koog_prompt_model.$_$.g1;
|
|
118
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
118
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
119
119
|
var emitToolCall = kotlin_ai_koog_prompt_model.$_$.i1;
|
|
120
120
|
var emitEnd = kotlin_ai_koog_prompt_model.$_$.h1;
|
|
121
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
121
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
122
122
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
123
123
|
var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.j;
|
|
124
|
-
var parameter = kotlin_io_ktor_ktor_client_core.$_$.
|
|
124
|
+
var parameter = kotlin_io_ktor_ktor_client_core.$_$.w;
|
|
125
125
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
126
|
-
var accept = kotlin_io_ktor_ktor_client_core.$_$.
|
|
126
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.t;
|
|
127
127
|
var headers = kotlin_io_ktor_ktor_http.$_$.b2;
|
|
128
128
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
129
129
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.x;
|
|
130
130
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
131
|
-
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.
|
|
131
|
+
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
132
132
|
var KotlinLogging_instance = kotlin_io_github_oshai_kotlin_logging.$_$.b;
|
|
133
133
|
var get_RegisteredBasicJsonSchemaGenerators = kotlin_ai_koog_prompt_structure.$_$.d;
|
|
134
134
|
var Google_getInstance = kotlin_ai_koog_prompt_llm.$_$.u;
|
|
135
135
|
var get_RegisteredStandardJsonSchemaGenerators = kotlin_ai_koog_prompt_structure.$_$.e;
|
|
136
136
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
137
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
137
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dm;
|
|
138
138
|
var Video_getInstance = kotlin_ai_koog_prompt_llm.$_$.r;
|
|
139
139
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
140
140
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
@@ -154,15 +154,15 @@
|
|
|
154
154
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.s;
|
|
155
155
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
156
156
|
var Companion_getInstance_1 = kotlin_kotlin.$_$.z5;
|
|
157
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
157
|
+
var toString_0 = kotlin_kotlin.$_$.km;
|
|
158
158
|
var Call_init_$Create$ = kotlin_ai_koog_prompt_model.$_$.k1;
|
|
159
159
|
var Assistant_init_$Create$ = kotlin_ai_koog_prompt_model.$_$.j1;
|
|
160
160
|
var Collection = kotlin_kotlin.$_$.n6;
|
|
161
161
|
var Call = kotlin_ai_koog_prompt_model.$_$.o;
|
|
162
162
|
var listOf = kotlin_kotlin.$_$.t9;
|
|
163
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
164
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
165
|
-
var toList = kotlin_kotlin.$_$.
|
|
163
|
+
var FunctionAdapter = kotlin_kotlin.$_$.cd;
|
|
164
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
165
|
+
var toList = kotlin_kotlin.$_$.ib;
|
|
166
166
|
var put = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i1;
|
|
167
167
|
var Object_0 = kotlin_ai_koog_agents_tools.$_$.h;
|
|
168
168
|
var List = kotlin_ai_koog_agents_tools.$_$.g;
|
|
@@ -175,28 +175,28 @@
|
|
|
175
175
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
176
176
|
var contentType = kotlin_io_ktor_ktor_http.$_$.w1;
|
|
177
177
|
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
178
|
-
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.
|
|
179
|
-
var get_SSE = kotlin_io_ktor_ktor_client_core.$_$.
|
|
178
|
+
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
179
|
+
var get_SSE = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
180
180
|
var get_ContentNegotiation = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
|
|
181
|
-
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.
|
|
181
|
+
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
182
182
|
var Completion_getInstance = kotlin_ai_koog_prompt_llm.$_$.d;
|
|
183
183
|
var sse = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
184
|
-
var Exception = kotlin_kotlin.$_$.
|
|
185
|
-
var SSEClientException = kotlin_io_ktor_ktor_client_core.$_$.
|
|
186
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
187
|
-
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.
|
|
188
|
-
var url = kotlin_io_ktor_ktor_client_core.$_$.
|
|
189
|
-
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.
|
|
184
|
+
var Exception = kotlin_kotlin.$_$.sk;
|
|
185
|
+
var SSEClientException = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
186
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
187
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
188
|
+
var url = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
189
|
+
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
190
190
|
var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
191
191
|
var isSuccess = kotlin_io_ktor_ktor_http.$_$.d2;
|
|
192
192
|
var add = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.y;
|
|
193
193
|
var Tools_getInstance = kotlin_ai_koog_prompt_llm.$_$.p;
|
|
194
194
|
var first = kotlin_kotlin.$_$.w8;
|
|
195
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
196
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
195
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
196
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
197
197
|
var get_SuitableForIO = kotlin_ai_koog_utils.$_$.a;
|
|
198
|
-
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
199
|
-
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.
|
|
198
|
+
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
199
|
+
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
200
200
|
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
201
201
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.x;
|
|
202
202
|
var streamFrameFlow = kotlin_ai_koog_prompt_model.$_$.d1;
|
|
@@ -205,11 +205,11 @@
|
|
|
205
205
|
var Assistant = kotlin_ai_koog_prompt_model.$_$.l;
|
|
206
206
|
var User = kotlin_ai_koog_prompt_model.$_$.r;
|
|
207
207
|
var System = kotlin_ai_koog_prompt_model.$_$.n;
|
|
208
|
-
var plus = kotlin_kotlin.$_$.
|
|
208
|
+
var plus = kotlin_kotlin.$_$.ja;
|
|
209
209
|
var mapCapacity = kotlin_kotlin.$_$.v9;
|
|
210
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
210
|
+
var coerceAtLeast = kotlin_kotlin.$_$.jf;
|
|
211
211
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
212
|
-
var to = kotlin_kotlin.$_$.
|
|
212
|
+
var to = kotlin_kotlin.$_$.lm;
|
|
213
213
|
var Standard = kotlin_ai_koog_prompt_model.$_$.t;
|
|
214
214
|
var Basic = kotlin_ai_koog_prompt_model.$_$.s;
|
|
215
215
|
var Temperature_getInstance = kotlin_ai_koog_prompt_llm.$_$.n;
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
var LLMClient = kotlin_ai_koog_prompt_executor_clients.$_$.c;
|
|
222
222
|
var ConnectionTimeoutConfig = kotlin_ai_koog_prompt_executor_clients.$_$.b;
|
|
223
223
|
var BasicJsonSchemaGenerator = kotlin_ai_koog_prompt_structure.$_$.a;
|
|
224
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
224
|
+
var toMutableMap = kotlin_kotlin.$_$.pb;
|
|
225
225
|
var StandardJsonSchemaGenerator = kotlin_ai_koog_prompt_structure.$_$.b;
|
|
226
226
|
var KtMap = kotlin_kotlin.$_$.v6;
|
|
227
227
|
var JsonArrayBuilder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j;
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
// Inline function 'kotlin.arrayOf' call
|
|
324
324
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
325
325
|
// Inline function 'kotlin.js.asDynamic' call
|
|
326
|
-
tmp.
|
|
326
|
+
tmp.t8s_1 = [lazy(tmp_0, GoogleResponse$Companion$$childSerializers$_anonymous__rfngr4), null, null, null];
|
|
327
327
|
}
|
|
328
328
|
var Companion_instance;
|
|
329
329
|
function Companion_getInstance_2() {
|
|
@@ -338,29 +338,29 @@
|
|
|
338
338
|
tmp0_serialDesc.m16('promptFeedback', true);
|
|
339
339
|
tmp0_serialDesc.m16('usageMetadata', true);
|
|
340
340
|
tmp0_serialDesc.m16('modelVersion', true);
|
|
341
|
-
this.
|
|
341
|
+
this.u8s_1 = tmp0_serialDesc;
|
|
342
342
|
}
|
|
343
|
-
protoOf($serializer).
|
|
344
|
-
var tmp0_desc = this.
|
|
343
|
+
protoOf($serializer).v8s = function (encoder, value) {
|
|
344
|
+
var tmp0_desc = this.u8s_1;
|
|
345
345
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
346
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
347
|
-
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
348
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
349
|
-
tmp1_output.p10(tmp0_desc, 1, $serializer_getInstance_19(), value.
|
|
346
|
+
var tmp2_cached = Companion_getInstance_2().t8s_1;
|
|
347
|
+
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.w8s_1);
|
|
348
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.x8s_1 == null)) {
|
|
349
|
+
tmp1_output.p10(tmp0_desc, 1, $serializer_getInstance_19(), value.x8s_1);
|
|
350
350
|
}
|
|
351
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
352
|
-
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_1(), value.
|
|
351
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.y8s_1 == null)) {
|
|
352
|
+
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_1(), value.y8s_1);
|
|
353
353
|
}
|
|
354
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
355
|
-
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
354
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.z8s_1 == null)) {
|
|
355
|
+
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.z8s_1);
|
|
356
356
|
}
|
|
357
357
|
tmp1_output.xy(tmp0_desc);
|
|
358
358
|
};
|
|
359
359
|
protoOf($serializer).gv = function (encoder, value) {
|
|
360
|
-
return this.
|
|
360
|
+
return this.v8s(encoder, value instanceof GoogleResponse ? value : THROW_CCE());
|
|
361
361
|
};
|
|
362
362
|
protoOf($serializer).hv = function (decoder) {
|
|
363
|
-
var tmp0_desc = this.
|
|
363
|
+
var tmp0_desc = this.u8s_1;
|
|
364
364
|
var tmp1_flag = true;
|
|
365
365
|
var tmp2_index = 0;
|
|
366
366
|
var tmp3_bitMask0 = 0;
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
var tmp6_local2 = null;
|
|
370
370
|
var tmp7_local3 = null;
|
|
371
371
|
var tmp8_input = decoder.wy(tmp0_desc);
|
|
372
|
-
var tmp9_cached = Companion_getInstance_2().
|
|
372
|
+
var tmp9_cached = Companion_getInstance_2().t8s_1;
|
|
373
373
|
if (tmp8_input.mz()) {
|
|
374
374
|
tmp4_local0 = tmp8_input.iz(tmp0_desc, 0, tmp9_cached[0].b1(), tmp4_local0);
|
|
375
375
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -410,13 +410,13 @@
|
|
|
410
410
|
return GoogleResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
411
411
|
};
|
|
412
412
|
protoOf($serializer).fv = function () {
|
|
413
|
-
return this.
|
|
413
|
+
return this.u8s_1;
|
|
414
414
|
};
|
|
415
415
|
protoOf($serializer).d17 = function () {
|
|
416
416
|
// Inline function 'kotlin.arrayOf' call
|
|
417
417
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
418
418
|
// Inline function 'kotlin.js.asDynamic' call
|
|
419
|
-
return [Companion_getInstance_2().
|
|
419
|
+
return [Companion_getInstance_2().t8s_1[0].b1(), get_nullable($serializer_getInstance_19()), get_nullable($serializer_getInstance_1()), get_nullable(StringSerializer_getInstance())];
|
|
420
420
|
};
|
|
421
421
|
var $serializer_instance;
|
|
422
422
|
function $serializer_getInstance() {
|
|
@@ -426,21 +426,21 @@
|
|
|
426
426
|
}
|
|
427
427
|
function GoogleResponse_init_$Init$(seen0, candidates, promptFeedback, usageMetadata, modelVersion, serializationConstructorMarker, $this) {
|
|
428
428
|
if (!(1 === (1 & seen0))) {
|
|
429
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance().
|
|
429
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance().u8s_1);
|
|
430
430
|
}
|
|
431
|
-
$this.
|
|
431
|
+
$this.w8s_1 = candidates;
|
|
432
432
|
if (0 === (seen0 & 2))
|
|
433
|
-
$this.
|
|
433
|
+
$this.x8s_1 = null;
|
|
434
434
|
else
|
|
435
|
-
$this.
|
|
435
|
+
$this.x8s_1 = promptFeedback;
|
|
436
436
|
if (0 === (seen0 & 4))
|
|
437
|
-
$this.
|
|
437
|
+
$this.y8s_1 = null;
|
|
438
438
|
else
|
|
439
|
-
$this.
|
|
439
|
+
$this.y8s_1 = usageMetadata;
|
|
440
440
|
if (0 === (seen0 & 8))
|
|
441
|
-
$this.
|
|
441
|
+
$this.z8s_1 = null;
|
|
442
442
|
else
|
|
443
|
-
$this.
|
|
443
|
+
$this.z8s_1 = modelVersion;
|
|
444
444
|
return $this;
|
|
445
445
|
}
|
|
446
446
|
function GoogleResponse_init_$Create$(seen0, candidates, promptFeedback, usageMetadata, modelVersion, serializationConstructorMarker) {
|
|
@@ -451,10 +451,10 @@
|
|
|
451
451
|
promptFeedback = promptFeedback === VOID ? null : promptFeedback;
|
|
452
452
|
usageMetadata = usageMetadata === VOID ? null : usageMetadata;
|
|
453
453
|
modelVersion = modelVersion === VOID ? null : modelVersion;
|
|
454
|
-
this.
|
|
455
|
-
this.
|
|
456
|
-
this.
|
|
457
|
-
this.
|
|
454
|
+
this.w8s_1 = candidates;
|
|
455
|
+
this.x8s_1 = promptFeedback;
|
|
456
|
+
this.y8s_1 = usageMetadata;
|
|
457
|
+
this.z8s_1 = modelVersion;
|
|
458
458
|
}
|
|
459
459
|
function GoogleRequest$Companion$$childSerializers$_anonymous__wys3vw() {
|
|
460
460
|
return new ArrayListSerializer($serializer_getInstance_8());
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
// Inline function 'kotlin.arrayOf' call
|
|
472
472
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
473
473
|
// Inline function 'kotlin.js.asDynamic' call
|
|
474
|
-
tmp.
|
|
474
|
+
tmp.a8t_1 = [tmp_1, lazy(tmp_2, GoogleRequest$Companion$$childSerializers$_anonymous__wys3vw_0), null, null, null];
|
|
475
475
|
}
|
|
476
476
|
var Companion_instance_0;
|
|
477
477
|
function Companion_getInstance_3() {
|
|
@@ -487,32 +487,32 @@
|
|
|
487
487
|
tmp0_serialDesc.m16('systemInstruction', true);
|
|
488
488
|
tmp0_serialDesc.m16('generationConfig', true);
|
|
489
489
|
tmp0_serialDesc.m16('toolConfig', true);
|
|
490
|
-
this.
|
|
490
|
+
this.b8t_1 = tmp0_serialDesc;
|
|
491
491
|
}
|
|
492
|
-
protoOf($serializer_0).
|
|
493
|
-
var tmp0_desc = this.
|
|
492
|
+
protoOf($serializer_0).c8t = function (encoder, value) {
|
|
493
|
+
var tmp0_desc = this.b8t_1;
|
|
494
494
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
495
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
496
|
-
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
497
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
498
|
-
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
495
|
+
var tmp2_cached = Companion_getInstance_3().a8t_1;
|
|
496
|
+
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.d8t_1);
|
|
497
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.e8t_1 == null)) {
|
|
498
|
+
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.e8t_1);
|
|
499
499
|
}
|
|
500
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
501
|
-
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_8(), value.
|
|
500
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.f8t_1 == null)) {
|
|
501
|
+
tmp1_output.p10(tmp0_desc, 2, $serializer_getInstance_8(), value.f8t_1);
|
|
502
502
|
}
|
|
503
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
504
|
-
tmp1_output.p10(tmp0_desc, 3, GoogleGenerationConfigSerializer_getInstance(), value.
|
|
503
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.g8t_1 == null)) {
|
|
504
|
+
tmp1_output.p10(tmp0_desc, 3, GoogleGenerationConfigSerializer_getInstance(), value.g8t_1);
|
|
505
505
|
}
|
|
506
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
507
|
-
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance_18(), value.
|
|
506
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.h8t_1 == null)) {
|
|
507
|
+
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance_18(), value.h8t_1);
|
|
508
508
|
}
|
|
509
509
|
tmp1_output.xy(tmp0_desc);
|
|
510
510
|
};
|
|
511
511
|
protoOf($serializer_0).gv = function (encoder, value) {
|
|
512
|
-
return this.
|
|
512
|
+
return this.c8t(encoder, value instanceof GoogleRequest ? value : THROW_CCE());
|
|
513
513
|
};
|
|
514
514
|
protoOf($serializer_0).hv = function (decoder) {
|
|
515
|
-
var tmp0_desc = this.
|
|
515
|
+
var tmp0_desc = this.b8t_1;
|
|
516
516
|
var tmp1_flag = true;
|
|
517
517
|
var tmp2_index = 0;
|
|
518
518
|
var tmp3_bitMask0 = 0;
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
var tmp7_local3 = null;
|
|
523
523
|
var tmp8_local4 = null;
|
|
524
524
|
var tmp9_input = decoder.wy(tmp0_desc);
|
|
525
|
-
var tmp10_cached = Companion_getInstance_3().
|
|
525
|
+
var tmp10_cached = Companion_getInstance_3().a8t_1;
|
|
526
526
|
if (tmp9_input.mz()) {
|
|
527
527
|
tmp4_local0 = tmp9_input.iz(tmp0_desc, 0, tmp10_cached[0].b1(), tmp4_local0);
|
|
528
528
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -569,10 +569,10 @@
|
|
|
569
569
|
return GoogleRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
570
570
|
};
|
|
571
571
|
protoOf($serializer_0).fv = function () {
|
|
572
|
-
return this.
|
|
572
|
+
return this.b8t_1;
|
|
573
573
|
};
|
|
574
574
|
protoOf($serializer_0).d17 = function () {
|
|
575
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
575
|
+
var tmp0_cached = Companion_getInstance_3().a8t_1;
|
|
576
576
|
// Inline function 'kotlin.arrayOf' call
|
|
577
577
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
578
578
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -586,25 +586,25 @@
|
|
|
586
586
|
}
|
|
587
587
|
function GoogleRequest_init_$Init$(seen0, contents, tools, systemInstruction, generationConfig, toolConfig, serializationConstructorMarker, $this) {
|
|
588
588
|
if (!(1 === (1 & seen0))) {
|
|
589
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
589
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().b8t_1);
|
|
590
590
|
}
|
|
591
|
-
$this.
|
|
591
|
+
$this.d8t_1 = contents;
|
|
592
592
|
if (0 === (seen0 & 2))
|
|
593
|
-
$this.
|
|
593
|
+
$this.e8t_1 = null;
|
|
594
594
|
else
|
|
595
|
-
$this.
|
|
595
|
+
$this.e8t_1 = tools;
|
|
596
596
|
if (0 === (seen0 & 4))
|
|
597
|
-
$this.
|
|
597
|
+
$this.f8t_1 = null;
|
|
598
598
|
else
|
|
599
|
-
$this.
|
|
599
|
+
$this.f8t_1 = systemInstruction;
|
|
600
600
|
if (0 === (seen0 & 8))
|
|
601
|
-
$this.
|
|
601
|
+
$this.g8t_1 = null;
|
|
602
602
|
else
|
|
603
|
-
$this.
|
|
603
|
+
$this.g8t_1 = generationConfig;
|
|
604
604
|
if (0 === (seen0 & 16))
|
|
605
|
-
$this.
|
|
605
|
+
$this.h8t_1 = null;
|
|
606
606
|
else
|
|
607
|
-
$this.
|
|
607
|
+
$this.h8t_1 = toolConfig;
|
|
608
608
|
return $this;
|
|
609
609
|
}
|
|
610
610
|
function GoogleRequest_init_$Create$(seen0, contents, tools, systemInstruction, generationConfig, toolConfig, serializationConstructorMarker) {
|
|
@@ -616,11 +616,11 @@
|
|
|
616
616
|
systemInstruction = systemInstruction === VOID ? null : systemInstruction;
|
|
617
617
|
generationConfig = generationConfig === VOID ? null : generationConfig;
|
|
618
618
|
toolConfig = toolConfig === VOID ? null : toolConfig;
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
619
|
+
this.d8t_1 = contents;
|
|
620
|
+
this.e8t_1 = tools;
|
|
621
|
+
this.f8t_1 = systemInstruction;
|
|
622
|
+
this.g8t_1 = generationConfig;
|
|
623
|
+
this.h8t_1 = toolConfig;
|
|
624
624
|
}
|
|
625
625
|
function Companion_1() {
|
|
626
626
|
}
|
|
@@ -636,33 +636,33 @@
|
|
|
636
636
|
tmp0_serialDesc.m16('toolUsePromptTokenCount', true);
|
|
637
637
|
tmp0_serialDesc.m16('thoughtsTokenCount', true);
|
|
638
638
|
tmp0_serialDesc.m16('totalTokenCount', true);
|
|
639
|
-
this.
|
|
639
|
+
this.i8t_1 = tmp0_serialDesc;
|
|
640
640
|
}
|
|
641
|
-
protoOf($serializer_1).
|
|
642
|
-
var tmp0_desc = this.
|
|
641
|
+
protoOf($serializer_1).j8t = function (encoder, value) {
|
|
642
|
+
var tmp0_desc = this.i8t_1;
|
|
643
643
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
644
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
645
|
-
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.
|
|
644
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.k8t_1 == null)) {
|
|
645
|
+
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.k8t_1);
|
|
646
646
|
}
|
|
647
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
648
|
-
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.
|
|
647
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.l8t_1 == null)) {
|
|
648
|
+
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.l8t_1);
|
|
649
649
|
}
|
|
650
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
651
|
-
tmp1_output.p10(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
650
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.m8t_1 == null)) {
|
|
651
|
+
tmp1_output.p10(tmp0_desc, 2, IntSerializer_getInstance(), value.m8t_1);
|
|
652
652
|
}
|
|
653
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
654
|
-
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
653
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.n8t_1 == null)) {
|
|
654
|
+
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.n8t_1);
|
|
655
655
|
}
|
|
656
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
657
|
-
tmp1_output.p10(tmp0_desc, 4, IntSerializer_getInstance(), value.
|
|
656
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.o8t_1 == null)) {
|
|
657
|
+
tmp1_output.p10(tmp0_desc, 4, IntSerializer_getInstance(), value.o8t_1);
|
|
658
658
|
}
|
|
659
659
|
tmp1_output.xy(tmp0_desc);
|
|
660
660
|
};
|
|
661
661
|
protoOf($serializer_1).gv = function (encoder, value) {
|
|
662
|
-
return this.
|
|
662
|
+
return this.j8t(encoder, value instanceof GoogleUsageMetadata ? value : THROW_CCE());
|
|
663
663
|
};
|
|
664
664
|
protoOf($serializer_1).hv = function (decoder) {
|
|
665
|
-
var tmp0_desc = this.
|
|
665
|
+
var tmp0_desc = this.i8t_1;
|
|
666
666
|
var tmp1_flag = true;
|
|
667
667
|
var tmp2_index = 0;
|
|
668
668
|
var tmp3_bitMask0 = 0;
|
|
@@ -718,7 +718,7 @@
|
|
|
718
718
|
return GoogleUsageMetadata_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
719
719
|
};
|
|
720
720
|
protoOf($serializer_1).fv = function () {
|
|
721
|
-
return this.
|
|
721
|
+
return this.i8t_1;
|
|
722
722
|
};
|
|
723
723
|
protoOf($serializer_1).d17 = function () {
|
|
724
724
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -734,28 +734,28 @@
|
|
|
734
734
|
}
|
|
735
735
|
function GoogleUsageMetadata_init_$Init$(seen0, promptTokenCount, candidatesTokenCount, toolUsePromptTokenCount, thoughtsTokenCount, totalTokenCount, serializationConstructorMarker, $this) {
|
|
736
736
|
if (!(0 === (0 & seen0))) {
|
|
737
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_1().
|
|
737
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_1().i8t_1);
|
|
738
738
|
}
|
|
739
739
|
if (0 === (seen0 & 1))
|
|
740
|
-
$this.
|
|
740
|
+
$this.k8t_1 = null;
|
|
741
741
|
else
|
|
742
|
-
$this.
|
|
742
|
+
$this.k8t_1 = promptTokenCount;
|
|
743
743
|
if (0 === (seen0 & 2))
|
|
744
|
-
$this.
|
|
744
|
+
$this.l8t_1 = null;
|
|
745
745
|
else
|
|
746
|
-
$this.
|
|
746
|
+
$this.l8t_1 = candidatesTokenCount;
|
|
747
747
|
if (0 === (seen0 & 4))
|
|
748
|
-
$this.
|
|
748
|
+
$this.m8t_1 = null;
|
|
749
749
|
else
|
|
750
|
-
$this.
|
|
750
|
+
$this.m8t_1 = toolUsePromptTokenCount;
|
|
751
751
|
if (0 === (seen0 & 8))
|
|
752
|
-
$this.
|
|
752
|
+
$this.n8t_1 = null;
|
|
753
753
|
else
|
|
754
|
-
$this.
|
|
754
|
+
$this.n8t_1 = thoughtsTokenCount;
|
|
755
755
|
if (0 === (seen0 & 16))
|
|
756
|
-
$this.
|
|
756
|
+
$this.o8t_1 = null;
|
|
757
757
|
else
|
|
758
|
-
$this.
|
|
758
|
+
$this.o8t_1 = totalTokenCount;
|
|
759
759
|
return $this;
|
|
760
760
|
}
|
|
761
761
|
function GoogleUsageMetadata_init_$Create$(seen0, promptTokenCount, candidatesTokenCount, toolUsePromptTokenCount, thoughtsTokenCount, totalTokenCount, serializationConstructorMarker) {
|
|
@@ -767,11 +767,11 @@
|
|
|
767
767
|
toolUsePromptTokenCount = toolUsePromptTokenCount === VOID ? null : toolUsePromptTokenCount;
|
|
768
768
|
thoughtsTokenCount = thoughtsTokenCount === VOID ? null : thoughtsTokenCount;
|
|
769
769
|
totalTokenCount = totalTokenCount === VOID ? null : totalTokenCount;
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
770
|
+
this.k8t_1 = promptTokenCount;
|
|
771
|
+
this.l8t_1 = candidatesTokenCount;
|
|
772
|
+
this.m8t_1 = toolUsePromptTokenCount;
|
|
773
|
+
this.n8t_1 = thoughtsTokenCount;
|
|
774
|
+
this.o8t_1 = totalTokenCount;
|
|
775
775
|
}
|
|
776
776
|
function GoogleCandidate$Companion$$childSerializers$_anonymous__54k10g() {
|
|
777
777
|
return new ArrayListSerializer($serializer_getInstance_20());
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
// Inline function 'kotlin.arrayOf' call
|
|
784
784
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
785
785
|
// Inline function 'kotlin.js.asDynamic' call
|
|
786
|
-
tmp.
|
|
786
|
+
tmp.p8t_1 = [null, null, lazy(tmp_0, GoogleCandidate$Companion$$childSerializers$_anonymous__54k10g), null];
|
|
787
787
|
}
|
|
788
788
|
var Companion_instance_2;
|
|
789
789
|
function Companion_getInstance_5() {
|
|
@@ -798,31 +798,31 @@
|
|
|
798
798
|
tmp0_serialDesc.m16('finishReason', true);
|
|
799
799
|
tmp0_serialDesc.m16('safetyRatings', true);
|
|
800
800
|
tmp0_serialDesc.m16('index', true);
|
|
801
|
-
this.
|
|
801
|
+
this.q8t_1 = tmp0_serialDesc;
|
|
802
802
|
}
|
|
803
|
-
protoOf($serializer_2).
|
|
804
|
-
var tmp0_desc = this.
|
|
803
|
+
protoOf($serializer_2).r8t = function (encoder, value) {
|
|
804
|
+
var tmp0_desc = this.q8t_1;
|
|
805
805
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
806
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
807
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
808
|
-
tmp1_output.p10(tmp0_desc, 0, $serializer_getInstance_8(), value.
|
|
806
|
+
var tmp2_cached = Companion_getInstance_5().p8t_1;
|
|
807
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.s8t_1 == null)) {
|
|
808
|
+
tmp1_output.p10(tmp0_desc, 0, $serializer_getInstance_8(), value.s8t_1);
|
|
809
809
|
}
|
|
810
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
811
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
810
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.t8t_1 == null)) {
|
|
811
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.t8t_1);
|
|
812
812
|
}
|
|
813
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
814
|
-
tmp1_output.p10(tmp0_desc, 2, tmp2_cached[2].b1(), value.
|
|
813
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.u8t_1 == null)) {
|
|
814
|
+
tmp1_output.p10(tmp0_desc, 2, tmp2_cached[2].b1(), value.u8t_1);
|
|
815
815
|
}
|
|
816
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
817
|
-
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
816
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.v8t_1 == null)) {
|
|
817
|
+
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.v8t_1);
|
|
818
818
|
}
|
|
819
819
|
tmp1_output.xy(tmp0_desc);
|
|
820
820
|
};
|
|
821
821
|
protoOf($serializer_2).gv = function (encoder, value) {
|
|
822
|
-
return this.
|
|
822
|
+
return this.r8t(encoder, value instanceof GoogleCandidate ? value : THROW_CCE());
|
|
823
823
|
};
|
|
824
824
|
protoOf($serializer_2).hv = function (decoder) {
|
|
825
|
-
var tmp0_desc = this.
|
|
825
|
+
var tmp0_desc = this.q8t_1;
|
|
826
826
|
var tmp1_flag = true;
|
|
827
827
|
var tmp2_index = 0;
|
|
828
828
|
var tmp3_bitMask0 = 0;
|
|
@@ -831,7 +831,7 @@
|
|
|
831
831
|
var tmp6_local2 = null;
|
|
832
832
|
var tmp7_local3 = null;
|
|
833
833
|
var tmp8_input = decoder.wy(tmp0_desc);
|
|
834
|
-
var tmp9_cached = Companion_getInstance_5().
|
|
834
|
+
var tmp9_cached = Companion_getInstance_5().p8t_1;
|
|
835
835
|
if (tmp8_input.mz()) {
|
|
836
836
|
tmp4_local0 = tmp8_input.kz(tmp0_desc, 0, $serializer_getInstance_8(), tmp4_local0);
|
|
837
837
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -872,10 +872,10 @@
|
|
|
872
872
|
return GoogleCandidate_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
873
873
|
};
|
|
874
874
|
protoOf($serializer_2).fv = function () {
|
|
875
|
-
return this.
|
|
875
|
+
return this.q8t_1;
|
|
876
876
|
};
|
|
877
877
|
protoOf($serializer_2).d17 = function () {
|
|
878
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
878
|
+
var tmp0_cached = Companion_getInstance_5().p8t_1;
|
|
879
879
|
// Inline function 'kotlin.arrayOf' call
|
|
880
880
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
881
881
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -889,24 +889,24 @@
|
|
|
889
889
|
}
|
|
890
890
|
function GoogleCandidate_init_$Init$(seen0, content, finishReason, safetyRatings, index, serializationConstructorMarker, $this) {
|
|
891
891
|
if (!(0 === (0 & seen0))) {
|
|
892
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().
|
|
892
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_2().q8t_1);
|
|
893
893
|
}
|
|
894
894
|
if (0 === (seen0 & 1))
|
|
895
|
-
$this.
|
|
895
|
+
$this.s8t_1 = null;
|
|
896
896
|
else
|
|
897
|
-
$this.
|
|
897
|
+
$this.s8t_1 = content;
|
|
898
898
|
if (0 === (seen0 & 2))
|
|
899
|
-
$this.
|
|
899
|
+
$this.t8t_1 = null;
|
|
900
900
|
else
|
|
901
|
-
$this.
|
|
901
|
+
$this.t8t_1 = finishReason;
|
|
902
902
|
if (0 === (seen0 & 4))
|
|
903
|
-
$this.
|
|
903
|
+
$this.u8t_1 = null;
|
|
904
904
|
else
|
|
905
|
-
$this.
|
|
905
|
+
$this.u8t_1 = safetyRatings;
|
|
906
906
|
if (0 === (seen0 & 8))
|
|
907
|
-
$this.
|
|
907
|
+
$this.v8t_1 = null;
|
|
908
908
|
else
|
|
909
|
-
$this.
|
|
909
|
+
$this.v8t_1 = index;
|
|
910
910
|
return $this;
|
|
911
911
|
}
|
|
912
912
|
function GoogleCandidate_init_$Create$(seen0, content, finishReason, safetyRatings, index, serializationConstructorMarker) {
|
|
@@ -918,10 +918,10 @@
|
|
|
918
918
|
finishReason = finishReason === VOID ? null : finishReason;
|
|
919
919
|
safetyRatings = safetyRatings === VOID ? null : safetyRatings;
|
|
920
920
|
index = index === VOID ? null : index;
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
924
|
-
this.
|
|
921
|
+
this.s8t_1 = content;
|
|
922
|
+
this.t8t_1 = finishReason;
|
|
923
|
+
this.u8t_1 = safetyRatings;
|
|
924
|
+
this.v8t_1 = index;
|
|
925
925
|
}
|
|
926
926
|
function Companion_3() {
|
|
927
927
|
}
|
|
@@ -937,22 +937,22 @@
|
|
|
937
937
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('text', this, 2);
|
|
938
938
|
tmp0_serialDesc.m16('text', false);
|
|
939
939
|
tmp0_serialDesc.m16('thought', true);
|
|
940
|
-
this.
|
|
940
|
+
this.w8t_1 = tmp0_serialDesc;
|
|
941
941
|
}
|
|
942
|
-
protoOf($serializer_3).
|
|
943
|
-
var tmp0_desc = this.
|
|
942
|
+
protoOf($serializer_3).x8t = function (encoder, value) {
|
|
943
|
+
var tmp0_desc = this.w8t_1;
|
|
944
944
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
945
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
946
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
947
|
-
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.
|
|
945
|
+
tmp1_output.l10(tmp0_desc, 0, value.y8t_1);
|
|
946
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.z8t_1 == null)) {
|
|
947
|
+
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.z8t_1);
|
|
948
948
|
}
|
|
949
949
|
tmp1_output.xy(tmp0_desc);
|
|
950
950
|
};
|
|
951
951
|
protoOf($serializer_3).gv = function (encoder, value) {
|
|
952
|
-
return this.
|
|
952
|
+
return this.x8t(encoder, value instanceof Text_0 ? value : THROW_CCE());
|
|
953
953
|
};
|
|
954
954
|
protoOf($serializer_3).hv = function (decoder) {
|
|
955
|
-
var tmp0_desc = this.
|
|
955
|
+
var tmp0_desc = this.w8t_1;
|
|
956
956
|
var tmp1_flag = true;
|
|
957
957
|
var tmp2_index = 0;
|
|
958
958
|
var tmp3_bitMask0 = 0;
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
return Text_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
988
988
|
};
|
|
989
989
|
protoOf($serializer_3).fv = function () {
|
|
990
|
-
return this.
|
|
990
|
+
return this.w8t_1;
|
|
991
991
|
};
|
|
992
992
|
protoOf($serializer_3).d17 = function () {
|
|
993
993
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1003,13 +1003,13 @@
|
|
|
1003
1003
|
}
|
|
1004
1004
|
function Text_init_$Init$(seen0, text, thought, serializationConstructorMarker, $this) {
|
|
1005
1005
|
if (!(1 === (1 & seen0))) {
|
|
1006
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
1006
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().w8t_1);
|
|
1007
1007
|
}
|
|
1008
|
-
$this.
|
|
1008
|
+
$this.y8t_1 = text;
|
|
1009
1009
|
if (0 === (seen0 & 2))
|
|
1010
|
-
$this.
|
|
1010
|
+
$this.z8t_1 = null;
|
|
1011
1011
|
else
|
|
1012
|
-
$this.
|
|
1012
|
+
$this.z8t_1 = thought;
|
|
1013
1013
|
return $this;
|
|
1014
1014
|
}
|
|
1015
1015
|
function Text_init_$Create$(seen0, text, thought, serializationConstructorMarker) {
|
|
@@ -1029,22 +1029,22 @@
|
|
|
1029
1029
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('inlineData', this, 2);
|
|
1030
1030
|
tmp0_serialDesc.m16('inlineData', false);
|
|
1031
1031
|
tmp0_serialDesc.m16('thought', true);
|
|
1032
|
-
this.
|
|
1032
|
+
this.a8u_1 = tmp0_serialDesc;
|
|
1033
1033
|
}
|
|
1034
|
-
protoOf($serializer_4).
|
|
1035
|
-
var tmp0_desc = this.
|
|
1034
|
+
protoOf($serializer_4).b8u = function (encoder, value) {
|
|
1035
|
+
var tmp0_desc = this.a8u_1;
|
|
1036
1036
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1037
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_9(), value.
|
|
1038
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1039
|
-
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.
|
|
1037
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_9(), value.c8u_1);
|
|
1038
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.d8u_1 == null)) {
|
|
1039
|
+
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.d8u_1);
|
|
1040
1040
|
}
|
|
1041
1041
|
tmp1_output.xy(tmp0_desc);
|
|
1042
1042
|
};
|
|
1043
1043
|
protoOf($serializer_4).gv = function (encoder, value) {
|
|
1044
|
-
return this.
|
|
1044
|
+
return this.b8u(encoder, value instanceof InlineData ? value : THROW_CCE());
|
|
1045
1045
|
};
|
|
1046
1046
|
protoOf($serializer_4).hv = function (decoder) {
|
|
1047
|
-
var tmp0_desc = this.
|
|
1047
|
+
var tmp0_desc = this.a8u_1;
|
|
1048
1048
|
var tmp1_flag = true;
|
|
1049
1049
|
var tmp2_index = 0;
|
|
1050
1050
|
var tmp3_bitMask0 = 0;
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
return InlineData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1080
1080
|
};
|
|
1081
1081
|
protoOf($serializer_4).fv = function () {
|
|
1082
|
-
return this.
|
|
1082
|
+
return this.a8u_1;
|
|
1083
1083
|
};
|
|
1084
1084
|
protoOf($serializer_4).d17 = function () {
|
|
1085
1085
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1095,13 +1095,13 @@
|
|
|
1095
1095
|
}
|
|
1096
1096
|
function InlineData_init_$Init$(seen0, inlineData, thought, serializationConstructorMarker, $this) {
|
|
1097
1097
|
if (!(1 === (1 & seen0))) {
|
|
1098
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().
|
|
1098
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().a8u_1);
|
|
1099
1099
|
}
|
|
1100
|
-
$this.
|
|
1100
|
+
$this.c8u_1 = inlineData;
|
|
1101
1101
|
if (0 === (seen0 & 2))
|
|
1102
|
-
$this.
|
|
1102
|
+
$this.d8u_1 = null;
|
|
1103
1103
|
else
|
|
1104
|
-
$this.
|
|
1104
|
+
$this.d8u_1 = thought;
|
|
1105
1105
|
return $this;
|
|
1106
1106
|
}
|
|
1107
1107
|
function InlineData_init_$Create$(seen0, inlineData, thought, serializationConstructorMarker) {
|
|
@@ -1121,22 +1121,22 @@
|
|
|
1121
1121
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('fileData', this, 2);
|
|
1122
1122
|
tmp0_serialDesc.m16('fileData', false);
|
|
1123
1123
|
tmp0_serialDesc.m16('thought', true);
|
|
1124
|
-
this.
|
|
1124
|
+
this.e8u_1 = tmp0_serialDesc;
|
|
1125
1125
|
}
|
|
1126
|
-
protoOf($serializer_5).
|
|
1127
|
-
var tmp0_desc = this.
|
|
1126
|
+
protoOf($serializer_5).f8u = function (encoder, value) {
|
|
1127
|
+
var tmp0_desc = this.e8u_1;
|
|
1128
1128
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1129
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_10(), value.
|
|
1130
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1131
|
-
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.
|
|
1129
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_10(), value.g8u_1);
|
|
1130
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.h8u_1 == null)) {
|
|
1131
|
+
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.h8u_1);
|
|
1132
1132
|
}
|
|
1133
1133
|
tmp1_output.xy(tmp0_desc);
|
|
1134
1134
|
};
|
|
1135
1135
|
protoOf($serializer_5).gv = function (encoder, value) {
|
|
1136
|
-
return this.
|
|
1136
|
+
return this.f8u(encoder, value instanceof FileData ? value : THROW_CCE());
|
|
1137
1137
|
};
|
|
1138
1138
|
protoOf($serializer_5).hv = function (decoder) {
|
|
1139
|
-
var tmp0_desc = this.
|
|
1139
|
+
var tmp0_desc = this.e8u_1;
|
|
1140
1140
|
var tmp1_flag = true;
|
|
1141
1141
|
var tmp2_index = 0;
|
|
1142
1142
|
var tmp3_bitMask0 = 0;
|
|
@@ -1171,7 +1171,7 @@
|
|
|
1171
1171
|
return FileData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1172
1172
|
};
|
|
1173
1173
|
protoOf($serializer_5).fv = function () {
|
|
1174
|
-
return this.
|
|
1174
|
+
return this.e8u_1;
|
|
1175
1175
|
};
|
|
1176
1176
|
protoOf($serializer_5).d17 = function () {
|
|
1177
1177
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1187,13 +1187,13 @@
|
|
|
1187
1187
|
}
|
|
1188
1188
|
function FileData_init_$Init$(seen0, fileData, thought, serializationConstructorMarker, $this) {
|
|
1189
1189
|
if (!(1 === (1 & seen0))) {
|
|
1190
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().
|
|
1190
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_5().e8u_1);
|
|
1191
1191
|
}
|
|
1192
|
-
$this.
|
|
1192
|
+
$this.g8u_1 = fileData;
|
|
1193
1193
|
if (0 === (seen0 & 2))
|
|
1194
|
-
$this.
|
|
1194
|
+
$this.h8u_1 = null;
|
|
1195
1195
|
else
|
|
1196
|
-
$this.
|
|
1196
|
+
$this.h8u_1 = thought;
|
|
1197
1197
|
return $this;
|
|
1198
1198
|
}
|
|
1199
1199
|
function FileData_init_$Create$(seen0, fileData, thought, serializationConstructorMarker) {
|
|
@@ -1213,22 +1213,22 @@
|
|
|
1213
1213
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('functionCall', this, 2);
|
|
1214
1214
|
tmp0_serialDesc.m16('functionCall', false);
|
|
1215
1215
|
tmp0_serialDesc.m16('thought', true);
|
|
1216
|
-
this.
|
|
1216
|
+
this.i8u_1 = tmp0_serialDesc;
|
|
1217
1217
|
}
|
|
1218
|
-
protoOf($serializer_6).
|
|
1219
|
-
var tmp0_desc = this.
|
|
1218
|
+
protoOf($serializer_6).j8u = function (encoder, value) {
|
|
1219
|
+
var tmp0_desc = this.i8u_1;
|
|
1220
1220
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1221
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_11(), value.
|
|
1222
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1223
|
-
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.
|
|
1221
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_11(), value.k8u_1);
|
|
1222
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.l8u_1 == null)) {
|
|
1223
|
+
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.l8u_1);
|
|
1224
1224
|
}
|
|
1225
1225
|
tmp1_output.xy(tmp0_desc);
|
|
1226
1226
|
};
|
|
1227
1227
|
protoOf($serializer_6).gv = function (encoder, value) {
|
|
1228
|
-
return this.
|
|
1228
|
+
return this.j8u(encoder, value instanceof FunctionCall ? value : THROW_CCE());
|
|
1229
1229
|
};
|
|
1230
1230
|
protoOf($serializer_6).hv = function (decoder) {
|
|
1231
|
-
var tmp0_desc = this.
|
|
1231
|
+
var tmp0_desc = this.i8u_1;
|
|
1232
1232
|
var tmp1_flag = true;
|
|
1233
1233
|
var tmp2_index = 0;
|
|
1234
1234
|
var tmp3_bitMask0 = 0;
|
|
@@ -1263,7 +1263,7 @@
|
|
|
1263
1263
|
return FunctionCall_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1264
1264
|
};
|
|
1265
1265
|
protoOf($serializer_6).fv = function () {
|
|
1266
|
-
return this.
|
|
1266
|
+
return this.i8u_1;
|
|
1267
1267
|
};
|
|
1268
1268
|
protoOf($serializer_6).d17 = function () {
|
|
1269
1269
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1279,13 +1279,13 @@
|
|
|
1279
1279
|
}
|
|
1280
1280
|
function FunctionCall_init_$Init$(seen0, functionCall, thought, serializationConstructorMarker, $this) {
|
|
1281
1281
|
if (!(1 === (1 & seen0))) {
|
|
1282
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_6().
|
|
1282
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_6().i8u_1);
|
|
1283
1283
|
}
|
|
1284
|
-
$this.
|
|
1284
|
+
$this.k8u_1 = functionCall;
|
|
1285
1285
|
if (0 === (seen0 & 2))
|
|
1286
|
-
$this.
|
|
1286
|
+
$this.l8u_1 = null;
|
|
1287
1287
|
else
|
|
1288
|
-
$this.
|
|
1288
|
+
$this.l8u_1 = thought;
|
|
1289
1289
|
return $this;
|
|
1290
1290
|
}
|
|
1291
1291
|
function FunctionCall_init_$Create$(seen0, functionCall, thought, serializationConstructorMarker) {
|
|
@@ -1305,22 +1305,22 @@
|
|
|
1305
1305
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('functionResponse', this, 2);
|
|
1306
1306
|
tmp0_serialDesc.m16('functionResponse', false);
|
|
1307
1307
|
tmp0_serialDesc.m16('thought', true);
|
|
1308
|
-
this.
|
|
1308
|
+
this.m8u_1 = tmp0_serialDesc;
|
|
1309
1309
|
}
|
|
1310
|
-
protoOf($serializer_7).
|
|
1311
|
-
var tmp0_desc = this.
|
|
1310
|
+
protoOf($serializer_7).n8u = function (encoder, value) {
|
|
1311
|
+
var tmp0_desc = this.m8u_1;
|
|
1312
1312
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1313
|
-
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_12(), value.
|
|
1314
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1315
|
-
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.
|
|
1313
|
+
tmp1_output.n10(tmp0_desc, 0, $serializer_getInstance_12(), value.o8u_1);
|
|
1314
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.p8u_1 == null)) {
|
|
1315
|
+
tmp1_output.p10(tmp0_desc, 1, BooleanSerializer_getInstance(), value.p8u_1);
|
|
1316
1316
|
}
|
|
1317
1317
|
tmp1_output.xy(tmp0_desc);
|
|
1318
1318
|
};
|
|
1319
1319
|
protoOf($serializer_7).gv = function (encoder, value) {
|
|
1320
|
-
return this.
|
|
1320
|
+
return this.n8u(encoder, value instanceof FunctionResponse ? value : THROW_CCE());
|
|
1321
1321
|
};
|
|
1322
1322
|
protoOf($serializer_7).hv = function (decoder) {
|
|
1323
|
-
var tmp0_desc = this.
|
|
1323
|
+
var tmp0_desc = this.m8u_1;
|
|
1324
1324
|
var tmp1_flag = true;
|
|
1325
1325
|
var tmp2_index = 0;
|
|
1326
1326
|
var tmp3_bitMask0 = 0;
|
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
return FunctionResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1356
1356
|
};
|
|
1357
1357
|
protoOf($serializer_7).fv = function () {
|
|
1358
|
-
return this.
|
|
1358
|
+
return this.m8u_1;
|
|
1359
1359
|
};
|
|
1360
1360
|
protoOf($serializer_7).d17 = function () {
|
|
1361
1361
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1371,13 +1371,13 @@
|
|
|
1371
1371
|
}
|
|
1372
1372
|
function FunctionResponse_init_$Init$(seen0, functionResponse, thought, serializationConstructorMarker, $this) {
|
|
1373
1373
|
if (!(1 === (1 & seen0))) {
|
|
1374
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().
|
|
1374
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_7().m8u_1);
|
|
1375
1375
|
}
|
|
1376
|
-
$this.
|
|
1376
|
+
$this.o8u_1 = functionResponse;
|
|
1377
1377
|
if (0 === (seen0 & 2))
|
|
1378
|
-
$this.
|
|
1378
|
+
$this.p8u_1 = null;
|
|
1379
1379
|
else
|
|
1380
|
-
$this.
|
|
1380
|
+
$this.p8u_1 = thought;
|
|
1381
1381
|
return $this;
|
|
1382
1382
|
}
|
|
1383
1383
|
function FunctionResponse_init_$Create$(seen0, functionResponse, thought, serializationConstructorMarker) {
|
|
@@ -1385,15 +1385,15 @@
|
|
|
1385
1385
|
}
|
|
1386
1386
|
function Text_0(text, thought) {
|
|
1387
1387
|
thought = thought === VOID ? null : thought;
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1388
|
+
this.y8t_1 = text;
|
|
1389
|
+
this.z8t_1 = thought;
|
|
1390
1390
|
}
|
|
1391
1391
|
protoOf(Text_0).toString = function () {
|
|
1392
|
-
return 'Text(text=' + this.
|
|
1392
|
+
return 'Text(text=' + this.y8t_1 + ', thought=' + this.z8t_1 + ')';
|
|
1393
1393
|
};
|
|
1394
1394
|
protoOf(Text_0).hashCode = function () {
|
|
1395
|
-
var result = getStringHashCode(this.
|
|
1396
|
-
result = imul(result, 31) + (this.
|
|
1395
|
+
var result = getStringHashCode(this.y8t_1);
|
|
1396
|
+
result = imul(result, 31) + (this.z8t_1 == null ? 0 : getBooleanHashCode(this.z8t_1)) | 0;
|
|
1397
1397
|
return result;
|
|
1398
1398
|
};
|
|
1399
1399
|
protoOf(Text_0).equals = function (other) {
|
|
@@ -1402,23 +1402,23 @@
|
|
|
1402
1402
|
if (!(other instanceof Text_0))
|
|
1403
1403
|
return false;
|
|
1404
1404
|
var tmp0_other_with_cast = other instanceof Text_0 ? other : THROW_CCE();
|
|
1405
|
-
if (!(this.
|
|
1405
|
+
if (!(this.y8t_1 === tmp0_other_with_cast.y8t_1))
|
|
1406
1406
|
return false;
|
|
1407
|
-
if (!(this.
|
|
1407
|
+
if (!(this.z8t_1 == tmp0_other_with_cast.z8t_1))
|
|
1408
1408
|
return false;
|
|
1409
1409
|
return true;
|
|
1410
1410
|
};
|
|
1411
1411
|
function InlineData(inlineData, thought) {
|
|
1412
1412
|
thought = thought === VOID ? null : thought;
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1413
|
+
this.c8u_1 = inlineData;
|
|
1414
|
+
this.d8u_1 = thought;
|
|
1415
1415
|
}
|
|
1416
1416
|
protoOf(InlineData).toString = function () {
|
|
1417
|
-
return 'InlineData(inlineData=' + toString(this.
|
|
1417
|
+
return 'InlineData(inlineData=' + toString(this.c8u_1) + ', thought=' + this.d8u_1 + ')';
|
|
1418
1418
|
};
|
|
1419
1419
|
protoOf(InlineData).hashCode = function () {
|
|
1420
|
-
var result = hashCode(this.
|
|
1421
|
-
result = imul(result, 31) + (this.
|
|
1420
|
+
var result = hashCode(this.c8u_1);
|
|
1421
|
+
result = imul(result, 31) + (this.d8u_1 == null ? 0 : getBooleanHashCode(this.d8u_1)) | 0;
|
|
1422
1422
|
return result;
|
|
1423
1423
|
};
|
|
1424
1424
|
protoOf(InlineData).equals = function (other) {
|
|
@@ -1427,20 +1427,20 @@
|
|
|
1427
1427
|
if (!(other instanceof InlineData))
|
|
1428
1428
|
return false;
|
|
1429
1429
|
var tmp0_other_with_cast = other instanceof InlineData ? other : THROW_CCE();
|
|
1430
|
-
if (!equals(this.
|
|
1430
|
+
if (!equals(this.c8u_1, tmp0_other_with_cast.c8u_1))
|
|
1431
1431
|
return false;
|
|
1432
|
-
if (!(this.
|
|
1432
|
+
if (!(this.d8u_1 == tmp0_other_with_cast.d8u_1))
|
|
1433
1433
|
return false;
|
|
1434
1434
|
return true;
|
|
1435
1435
|
};
|
|
1436
1436
|
function FileData() {
|
|
1437
1437
|
}
|
|
1438
1438
|
protoOf(FileData).toString = function () {
|
|
1439
|
-
return 'FileData(fileData=' + toString(this.
|
|
1439
|
+
return 'FileData(fileData=' + toString(this.g8u_1) + ', thought=' + this.h8u_1 + ')';
|
|
1440
1440
|
};
|
|
1441
1441
|
protoOf(FileData).hashCode = function () {
|
|
1442
|
-
var result = hashCode(this.
|
|
1443
|
-
result = imul(result, 31) + (this.
|
|
1442
|
+
var result = hashCode(this.g8u_1);
|
|
1443
|
+
result = imul(result, 31) + (this.h8u_1 == null ? 0 : getBooleanHashCode(this.h8u_1)) | 0;
|
|
1444
1444
|
return result;
|
|
1445
1445
|
};
|
|
1446
1446
|
protoOf(FileData).equals = function (other) {
|
|
@@ -1449,23 +1449,23 @@
|
|
|
1449
1449
|
if (!(other instanceof FileData))
|
|
1450
1450
|
return false;
|
|
1451
1451
|
var tmp0_other_with_cast = other instanceof FileData ? other : THROW_CCE();
|
|
1452
|
-
if (!equals(this.
|
|
1452
|
+
if (!equals(this.g8u_1, tmp0_other_with_cast.g8u_1))
|
|
1453
1453
|
return false;
|
|
1454
|
-
if (!(this.
|
|
1454
|
+
if (!(this.h8u_1 == tmp0_other_with_cast.h8u_1))
|
|
1455
1455
|
return false;
|
|
1456
1456
|
return true;
|
|
1457
1457
|
};
|
|
1458
1458
|
function FunctionCall(functionCall, thought) {
|
|
1459
1459
|
thought = thought === VOID ? null : thought;
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1460
|
+
this.k8u_1 = functionCall;
|
|
1461
|
+
this.l8u_1 = thought;
|
|
1462
1462
|
}
|
|
1463
1463
|
protoOf(FunctionCall).toString = function () {
|
|
1464
|
-
return 'FunctionCall(functionCall=' + toString(this.
|
|
1464
|
+
return 'FunctionCall(functionCall=' + toString(this.k8u_1) + ', thought=' + this.l8u_1 + ')';
|
|
1465
1465
|
};
|
|
1466
1466
|
protoOf(FunctionCall).hashCode = function () {
|
|
1467
|
-
var result = hashCode(this.
|
|
1468
|
-
result = imul(result, 31) + (this.
|
|
1467
|
+
var result = hashCode(this.k8u_1);
|
|
1468
|
+
result = imul(result, 31) + (this.l8u_1 == null ? 0 : getBooleanHashCode(this.l8u_1)) | 0;
|
|
1469
1469
|
return result;
|
|
1470
1470
|
};
|
|
1471
1471
|
protoOf(FunctionCall).equals = function (other) {
|
|
@@ -1474,23 +1474,23 @@
|
|
|
1474
1474
|
if (!(other instanceof FunctionCall))
|
|
1475
1475
|
return false;
|
|
1476
1476
|
var tmp0_other_with_cast = other instanceof FunctionCall ? other : THROW_CCE();
|
|
1477
|
-
if (!equals(this.
|
|
1477
|
+
if (!equals(this.k8u_1, tmp0_other_with_cast.k8u_1))
|
|
1478
1478
|
return false;
|
|
1479
|
-
if (!(this.
|
|
1479
|
+
if (!(this.l8u_1 == tmp0_other_with_cast.l8u_1))
|
|
1480
1480
|
return false;
|
|
1481
1481
|
return true;
|
|
1482
1482
|
};
|
|
1483
1483
|
function FunctionResponse(functionResponse, thought) {
|
|
1484
1484
|
thought = thought === VOID ? null : thought;
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1485
|
+
this.o8u_1 = functionResponse;
|
|
1486
|
+
this.p8u_1 = thought;
|
|
1487
1487
|
}
|
|
1488
1488
|
protoOf(FunctionResponse).toString = function () {
|
|
1489
|
-
return 'FunctionResponse(functionResponse=' + toString(this.
|
|
1489
|
+
return 'FunctionResponse(functionResponse=' + toString(this.o8u_1) + ', thought=' + this.p8u_1 + ')';
|
|
1490
1490
|
};
|
|
1491
1491
|
protoOf(FunctionResponse).hashCode = function () {
|
|
1492
|
-
var result = hashCode(this.
|
|
1493
|
-
result = imul(result, 31) + (this.
|
|
1492
|
+
var result = hashCode(this.o8u_1);
|
|
1493
|
+
result = imul(result, 31) + (this.p8u_1 == null ? 0 : getBooleanHashCode(this.p8u_1)) | 0;
|
|
1494
1494
|
return result;
|
|
1495
1495
|
};
|
|
1496
1496
|
protoOf(FunctionResponse).equals = function (other) {
|
|
@@ -1499,9 +1499,9 @@
|
|
|
1499
1499
|
if (!(other instanceof FunctionResponse))
|
|
1500
1500
|
return false;
|
|
1501
1501
|
var tmp0_other_with_cast = other instanceof FunctionResponse ? other : THROW_CCE();
|
|
1502
|
-
if (!equals(this.
|
|
1502
|
+
if (!equals(this.o8u_1, tmp0_other_with_cast.o8u_1))
|
|
1503
1503
|
return false;
|
|
1504
|
-
if (!(this.
|
|
1504
|
+
if (!(this.p8u_1 == tmp0_other_with_cast.p8u_1))
|
|
1505
1505
|
return false;
|
|
1506
1506
|
return true;
|
|
1507
1507
|
};
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
// Inline function 'kotlin.arrayOf' call
|
|
1518
1518
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1519
1519
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1520
|
-
tmp.
|
|
1520
|
+
tmp.q8u_1 = [lazy(tmp_0, GoogleContent$Companion$$childSerializers$_anonymous__7n3iqe), null];
|
|
1521
1521
|
}
|
|
1522
1522
|
var Companion_instance_8;
|
|
1523
1523
|
function Companion_getInstance_11() {
|
|
@@ -1530,32 +1530,32 @@
|
|
|
1530
1530
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GoogleContent', this, 2);
|
|
1531
1531
|
tmp0_serialDesc.m16('parts', true);
|
|
1532
1532
|
tmp0_serialDesc.m16('role', true);
|
|
1533
|
-
this.
|
|
1533
|
+
this.r8u_1 = tmp0_serialDesc;
|
|
1534
1534
|
}
|
|
1535
|
-
protoOf($serializer_8).
|
|
1536
|
-
var tmp0_desc = this.
|
|
1535
|
+
protoOf($serializer_8).s8u = function (encoder, value) {
|
|
1536
|
+
var tmp0_desc = this.r8u_1;
|
|
1537
1537
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1538
|
-
var tmp2_cached = Companion_getInstance_11().
|
|
1539
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
1540
|
-
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
1538
|
+
var tmp2_cached = Companion_getInstance_11().q8u_1;
|
|
1539
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.t8u_1 == null)) {
|
|
1540
|
+
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.t8u_1);
|
|
1541
1541
|
}
|
|
1542
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1543
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1542
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.u8u_1 == null)) {
|
|
1543
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.u8u_1);
|
|
1544
1544
|
}
|
|
1545
1545
|
tmp1_output.xy(tmp0_desc);
|
|
1546
1546
|
};
|
|
1547
1547
|
protoOf($serializer_8).gv = function (encoder, value) {
|
|
1548
|
-
return this.
|
|
1548
|
+
return this.s8u(encoder, value instanceof GoogleContent ? value : THROW_CCE());
|
|
1549
1549
|
};
|
|
1550
1550
|
protoOf($serializer_8).hv = function (decoder) {
|
|
1551
|
-
var tmp0_desc = this.
|
|
1551
|
+
var tmp0_desc = this.r8u_1;
|
|
1552
1552
|
var tmp1_flag = true;
|
|
1553
1553
|
var tmp2_index = 0;
|
|
1554
1554
|
var tmp3_bitMask0 = 0;
|
|
1555
1555
|
var tmp4_local0 = null;
|
|
1556
1556
|
var tmp5_local1 = null;
|
|
1557
1557
|
var tmp6_input = decoder.wy(tmp0_desc);
|
|
1558
|
-
var tmp7_cached = Companion_getInstance_11().
|
|
1558
|
+
var tmp7_cached = Companion_getInstance_11().q8u_1;
|
|
1559
1559
|
if (tmp6_input.mz()) {
|
|
1560
1560
|
tmp4_local0 = tmp6_input.kz(tmp0_desc, 0, tmp7_cached[0].b1(), tmp4_local0);
|
|
1561
1561
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1584,10 +1584,10 @@
|
|
|
1584
1584
|
return GoogleContent_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1585
1585
|
};
|
|
1586
1586
|
protoOf($serializer_8).fv = function () {
|
|
1587
|
-
return this.
|
|
1587
|
+
return this.r8u_1;
|
|
1588
1588
|
};
|
|
1589
1589
|
protoOf($serializer_8).d17 = function () {
|
|
1590
|
-
var tmp0_cached = Companion_getInstance_11().
|
|
1590
|
+
var tmp0_cached = Companion_getInstance_11().q8u_1;
|
|
1591
1591
|
// Inline function 'kotlin.arrayOf' call
|
|
1592
1592
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1593
1593
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1601,16 +1601,16 @@
|
|
|
1601
1601
|
}
|
|
1602
1602
|
function GoogleContent_init_$Init$(seen0, parts, role, serializationConstructorMarker, $this) {
|
|
1603
1603
|
if (!(0 === (0 & seen0))) {
|
|
1604
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_8().
|
|
1604
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_8().r8u_1);
|
|
1605
1605
|
}
|
|
1606
1606
|
if (0 === (seen0 & 1))
|
|
1607
|
-
$this.
|
|
1607
|
+
$this.t8u_1 = null;
|
|
1608
1608
|
else
|
|
1609
|
-
$this.
|
|
1609
|
+
$this.t8u_1 = parts;
|
|
1610
1610
|
if (0 === (seen0 & 2))
|
|
1611
|
-
$this.
|
|
1611
|
+
$this.u8u_1 = null;
|
|
1612
1612
|
else
|
|
1613
|
-
$this.
|
|
1613
|
+
$this.u8u_1 = role;
|
|
1614
1614
|
return $this;
|
|
1615
1615
|
}
|
|
1616
1616
|
function GoogleContent_init_$Create$(seen0, parts, role, serializationConstructorMarker) {
|
|
@@ -1620,8 +1620,8 @@
|
|
|
1620
1620
|
Companion_getInstance_11();
|
|
1621
1621
|
parts = parts === VOID ? null : parts;
|
|
1622
1622
|
role = role === VOID ? null : role;
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1623
|
+
this.t8u_1 = parts;
|
|
1624
|
+
this.u8u_1 = role;
|
|
1625
1625
|
}
|
|
1626
1626
|
function GoogleData$Blob$Companion$$childSerializers$_anonymous__2gyzw() {
|
|
1627
1627
|
return new ByteArrayAsBase64Serializer();
|
|
@@ -1633,7 +1633,7 @@
|
|
|
1633
1633
|
// Inline function 'kotlin.arrayOf' call
|
|
1634
1634
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1635
1635
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1636
|
-
tmp.
|
|
1636
|
+
tmp.v8u_1 = [null, lazy(tmp_0, GoogleData$Blob$Companion$$childSerializers$_anonymous__2gyzw)];
|
|
1637
1637
|
}
|
|
1638
1638
|
var Companion_instance_9;
|
|
1639
1639
|
function Companion_getInstance_12() {
|
|
@@ -1646,28 +1646,28 @@
|
|
|
1646
1646
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GoogleData.Blob', this, 2);
|
|
1647
1647
|
tmp0_serialDesc.m16('mimeType', false);
|
|
1648
1648
|
tmp0_serialDesc.m16('data', false);
|
|
1649
|
-
this.
|
|
1649
|
+
this.w8u_1 = tmp0_serialDesc;
|
|
1650
1650
|
}
|
|
1651
|
-
protoOf($serializer_9).
|
|
1652
|
-
var tmp0_desc = this.
|
|
1651
|
+
protoOf($serializer_9).x8u = function (encoder, value) {
|
|
1652
|
+
var tmp0_desc = this.w8u_1;
|
|
1653
1653
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1654
|
-
var tmp2_cached = Companion_getInstance_12().
|
|
1655
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
1656
|
-
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
1654
|
+
var tmp2_cached = Companion_getInstance_12().v8u_1;
|
|
1655
|
+
tmp1_output.l10(tmp0_desc, 0, value.y8u_1);
|
|
1656
|
+
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.z8u_1);
|
|
1657
1657
|
tmp1_output.xy(tmp0_desc);
|
|
1658
1658
|
};
|
|
1659
1659
|
protoOf($serializer_9).gv = function (encoder, value) {
|
|
1660
|
-
return this.
|
|
1660
|
+
return this.x8u(encoder, value instanceof Blob ? value : THROW_CCE());
|
|
1661
1661
|
};
|
|
1662
1662
|
protoOf($serializer_9).hv = function (decoder) {
|
|
1663
|
-
var tmp0_desc = this.
|
|
1663
|
+
var tmp0_desc = this.w8u_1;
|
|
1664
1664
|
var tmp1_flag = true;
|
|
1665
1665
|
var tmp2_index = 0;
|
|
1666
1666
|
var tmp3_bitMask0 = 0;
|
|
1667
1667
|
var tmp4_local0 = null;
|
|
1668
1668
|
var tmp5_local1 = null;
|
|
1669
1669
|
var tmp6_input = decoder.wy(tmp0_desc);
|
|
1670
|
-
var tmp7_cached = Companion_getInstance_12().
|
|
1670
|
+
var tmp7_cached = Companion_getInstance_12().v8u_1;
|
|
1671
1671
|
if (tmp6_input.mz()) {
|
|
1672
1672
|
tmp4_local0 = tmp6_input.gz(tmp0_desc, 0);
|
|
1673
1673
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1696,10 +1696,10 @@
|
|
|
1696
1696
|
return Blob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1697
1697
|
};
|
|
1698
1698
|
protoOf($serializer_9).fv = function () {
|
|
1699
|
-
return this.
|
|
1699
|
+
return this.w8u_1;
|
|
1700
1700
|
};
|
|
1701
1701
|
protoOf($serializer_9).d17 = function () {
|
|
1702
|
-
var tmp0_cached = Companion_getInstance_12().
|
|
1702
|
+
var tmp0_cached = Companion_getInstance_12().v8u_1;
|
|
1703
1703
|
// Inline function 'kotlin.arrayOf' call
|
|
1704
1704
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1705
1705
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1713,10 +1713,10 @@
|
|
|
1713
1713
|
}
|
|
1714
1714
|
function Blob_init_$Init$(seen0, mimeType, data, serializationConstructorMarker, $this) {
|
|
1715
1715
|
if (!(3 === (3 & seen0))) {
|
|
1716
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_9().
|
|
1716
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_9().w8u_1);
|
|
1717
1717
|
}
|
|
1718
|
-
$this.
|
|
1719
|
-
$this.
|
|
1718
|
+
$this.y8u_1 = mimeType;
|
|
1719
|
+
$this.z8u_1 = data;
|
|
1720
1720
|
return $this;
|
|
1721
1721
|
}
|
|
1722
1722
|
function Blob_init_$Create$(seen0, mimeType, data, serializationConstructorMarker) {
|
|
@@ -1727,20 +1727,20 @@
|
|
|
1727
1727
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GoogleData.FileData', this, 2);
|
|
1728
1728
|
tmp0_serialDesc.m16('mimeType', false);
|
|
1729
1729
|
tmp0_serialDesc.m16('fileUri', false);
|
|
1730
|
-
this.
|
|
1730
|
+
this.a8v_1 = tmp0_serialDesc;
|
|
1731
1731
|
}
|
|
1732
|
-
protoOf($serializer_10).
|
|
1733
|
-
var tmp0_desc = this.
|
|
1732
|
+
protoOf($serializer_10).b8v = function (encoder, value) {
|
|
1733
|
+
var tmp0_desc = this.a8v_1;
|
|
1734
1734
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1735
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
1736
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
1735
|
+
tmp1_output.l10(tmp0_desc, 0, value.c8v_1);
|
|
1736
|
+
tmp1_output.l10(tmp0_desc, 1, value.d8v_1);
|
|
1737
1737
|
tmp1_output.xy(tmp0_desc);
|
|
1738
1738
|
};
|
|
1739
1739
|
protoOf($serializer_10).gv = function (encoder, value) {
|
|
1740
|
-
return this.
|
|
1740
|
+
return this.b8v(encoder, value instanceof FileData_0 ? value : THROW_CCE());
|
|
1741
1741
|
};
|
|
1742
1742
|
protoOf($serializer_10).hv = function (decoder) {
|
|
1743
|
-
var tmp0_desc = this.
|
|
1743
|
+
var tmp0_desc = this.a8v_1;
|
|
1744
1744
|
var tmp1_flag = true;
|
|
1745
1745
|
var tmp2_index = 0;
|
|
1746
1746
|
var tmp3_bitMask0 = 0;
|
|
@@ -1775,7 +1775,7 @@
|
|
|
1775
1775
|
return FileData_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1776
1776
|
};
|
|
1777
1777
|
protoOf($serializer_10).fv = function () {
|
|
1778
|
-
return this.
|
|
1778
|
+
return this.a8v_1;
|
|
1779
1779
|
};
|
|
1780
1780
|
protoOf($serializer_10).d17 = function () {
|
|
1781
1781
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1791,10 +1791,10 @@
|
|
|
1791
1791
|
}
|
|
1792
1792
|
function FileData_init_$Init$_0(seen0, mimeType, fileUri, serializationConstructorMarker, $this) {
|
|
1793
1793
|
if (!(3 === (3 & seen0))) {
|
|
1794
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_10().
|
|
1794
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_10().a8v_1);
|
|
1795
1795
|
}
|
|
1796
|
-
$this.
|
|
1797
|
-
$this.
|
|
1796
|
+
$this.c8v_1 = mimeType;
|
|
1797
|
+
$this.d8v_1 = fileUri;
|
|
1798
1798
|
return $this;
|
|
1799
1799
|
}
|
|
1800
1800
|
function FileData_init_$Create$_0(seen0, mimeType, fileUri, serializationConstructorMarker) {
|
|
@@ -1812,25 +1812,25 @@
|
|
|
1812
1812
|
tmp0_serialDesc.m16('id', true);
|
|
1813
1813
|
tmp0_serialDesc.m16('name', false);
|
|
1814
1814
|
tmp0_serialDesc.m16('args', true);
|
|
1815
|
-
this.
|
|
1815
|
+
this.e8v_1 = tmp0_serialDesc;
|
|
1816
1816
|
}
|
|
1817
|
-
protoOf($serializer_11).
|
|
1818
|
-
var tmp0_desc = this.
|
|
1817
|
+
protoOf($serializer_11).f8v = function (encoder, value) {
|
|
1818
|
+
var tmp0_desc = this.e8v_1;
|
|
1819
1819
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1820
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
1821
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1820
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.g8v_1 == null)) {
|
|
1821
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.g8v_1);
|
|
1822
1822
|
}
|
|
1823
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
1824
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
1825
|
-
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
1823
|
+
tmp1_output.l10(tmp0_desc, 1, value.h8v_1);
|
|
1824
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.i8v_1 == null)) {
|
|
1825
|
+
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.i8v_1);
|
|
1826
1826
|
}
|
|
1827
1827
|
tmp1_output.xy(tmp0_desc);
|
|
1828
1828
|
};
|
|
1829
1829
|
protoOf($serializer_11).gv = function (encoder, value) {
|
|
1830
|
-
return this.
|
|
1830
|
+
return this.f8v(encoder, value instanceof FunctionCall_0 ? value : THROW_CCE());
|
|
1831
1831
|
};
|
|
1832
1832
|
protoOf($serializer_11).hv = function (decoder) {
|
|
1833
|
-
var tmp0_desc = this.
|
|
1833
|
+
var tmp0_desc = this.e8v_1;
|
|
1834
1834
|
var tmp1_flag = true;
|
|
1835
1835
|
var tmp2_index = 0;
|
|
1836
1836
|
var tmp3_bitMask0 = 0;
|
|
@@ -1872,7 +1872,7 @@
|
|
|
1872
1872
|
return FunctionCall_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1873
1873
|
};
|
|
1874
1874
|
protoOf($serializer_11).fv = function () {
|
|
1875
|
-
return this.
|
|
1875
|
+
return this.e8v_1;
|
|
1876
1876
|
};
|
|
1877
1877
|
protoOf($serializer_11).d17 = function () {
|
|
1878
1878
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1888,17 +1888,17 @@
|
|
|
1888
1888
|
}
|
|
1889
1889
|
function FunctionCall_init_$Init$_0(seen0, id, name, args, serializationConstructorMarker, $this) {
|
|
1890
1890
|
if (!(2 === (2 & seen0))) {
|
|
1891
|
-
throwMissingFieldException(seen0, 2, $serializer_getInstance_11().
|
|
1891
|
+
throwMissingFieldException(seen0, 2, $serializer_getInstance_11().e8v_1);
|
|
1892
1892
|
}
|
|
1893
1893
|
if (0 === (seen0 & 1))
|
|
1894
|
-
$this.
|
|
1894
|
+
$this.g8v_1 = null;
|
|
1895
1895
|
else
|
|
1896
|
-
$this.
|
|
1897
|
-
$this.
|
|
1896
|
+
$this.g8v_1 = id;
|
|
1897
|
+
$this.h8v_1 = name;
|
|
1898
1898
|
if (0 === (seen0 & 4))
|
|
1899
|
-
$this.
|
|
1899
|
+
$this.i8v_1 = null;
|
|
1900
1900
|
else
|
|
1901
|
-
$this.
|
|
1901
|
+
$this.i8v_1 = args;
|
|
1902
1902
|
return $this;
|
|
1903
1903
|
}
|
|
1904
1904
|
function FunctionCall_init_$Create$_0(seen0, id, name, args, serializationConstructorMarker) {
|
|
@@ -1916,23 +1916,23 @@
|
|
|
1916
1916
|
tmp0_serialDesc.m16('id', true);
|
|
1917
1917
|
tmp0_serialDesc.m16('name', false);
|
|
1918
1918
|
tmp0_serialDesc.m16('response', false);
|
|
1919
|
-
this.
|
|
1919
|
+
this.j8v_1 = tmp0_serialDesc;
|
|
1920
1920
|
}
|
|
1921
|
-
protoOf($serializer_12).
|
|
1922
|
-
var tmp0_desc = this.
|
|
1921
|
+
protoOf($serializer_12).k8v = function (encoder, value) {
|
|
1922
|
+
var tmp0_desc = this.j8v_1;
|
|
1923
1923
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1924
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
1925
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
1924
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.l8v_1 == null)) {
|
|
1925
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.l8v_1);
|
|
1926
1926
|
}
|
|
1927
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
1928
|
-
tmp1_output.n10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
1927
|
+
tmp1_output.l10(tmp0_desc, 1, value.m8v_1);
|
|
1928
|
+
tmp1_output.n10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.n8v_1);
|
|
1929
1929
|
tmp1_output.xy(tmp0_desc);
|
|
1930
1930
|
};
|
|
1931
1931
|
protoOf($serializer_12).gv = function (encoder, value) {
|
|
1932
|
-
return this.
|
|
1932
|
+
return this.k8v(encoder, value instanceof FunctionResponse_0 ? value : THROW_CCE());
|
|
1933
1933
|
};
|
|
1934
1934
|
protoOf($serializer_12).hv = function (decoder) {
|
|
1935
|
-
var tmp0_desc = this.
|
|
1935
|
+
var tmp0_desc = this.j8v_1;
|
|
1936
1936
|
var tmp1_flag = true;
|
|
1937
1937
|
var tmp2_index = 0;
|
|
1938
1938
|
var tmp3_bitMask0 = 0;
|
|
@@ -1974,7 +1974,7 @@
|
|
|
1974
1974
|
return FunctionResponse_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1975
1975
|
};
|
|
1976
1976
|
protoOf($serializer_12).fv = function () {
|
|
1977
|
-
return this.
|
|
1977
|
+
return this.j8v_1;
|
|
1978
1978
|
};
|
|
1979
1979
|
protoOf($serializer_12).d17 = function () {
|
|
1980
1980
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1990,14 +1990,14 @@
|
|
|
1990
1990
|
}
|
|
1991
1991
|
function FunctionResponse_init_$Init$_0(seen0, id, name, response, serializationConstructorMarker, $this) {
|
|
1992
1992
|
if (!(6 === (6 & seen0))) {
|
|
1993
|
-
throwMissingFieldException(seen0, 6, $serializer_getInstance_12().
|
|
1993
|
+
throwMissingFieldException(seen0, 6, $serializer_getInstance_12().j8v_1);
|
|
1994
1994
|
}
|
|
1995
1995
|
if (0 === (seen0 & 1))
|
|
1996
|
-
$this.
|
|
1996
|
+
$this.l8v_1 = null;
|
|
1997
1997
|
else
|
|
1998
|
-
$this.
|
|
1999
|
-
$this.
|
|
2000
|
-
$this.
|
|
1998
|
+
$this.l8v_1 = id;
|
|
1999
|
+
$this.m8v_1 = name;
|
|
2000
|
+
$this.n8v_1 = response;
|
|
2001
2001
|
return $this;
|
|
2002
2002
|
}
|
|
2003
2003
|
function FunctionResponse_init_$Create$_0(seen0, id, name, response, serializationConstructorMarker) {
|
|
@@ -2005,23 +2005,23 @@
|
|
|
2005
2005
|
}
|
|
2006
2006
|
function Blob(mimeType, data) {
|
|
2007
2007
|
Companion_getInstance_12();
|
|
2008
|
-
this.
|
|
2009
|
-
this.
|
|
2008
|
+
this.y8u_1 = mimeType;
|
|
2009
|
+
this.z8u_1 = data;
|
|
2010
2010
|
}
|
|
2011
2011
|
function FileData_0() {
|
|
2012
2012
|
}
|
|
2013
2013
|
function FunctionCall_0(id, name, args) {
|
|
2014
2014
|
id = id === VOID ? null : id;
|
|
2015
2015
|
args = args === VOID ? null : args;
|
|
2016
|
-
this.
|
|
2017
|
-
this.
|
|
2018
|
-
this.
|
|
2016
|
+
this.g8v_1 = id;
|
|
2017
|
+
this.h8v_1 = name;
|
|
2018
|
+
this.i8v_1 = args;
|
|
2019
2019
|
}
|
|
2020
2020
|
function FunctionResponse_0(id, name, response) {
|
|
2021
2021
|
id = id === VOID ? null : id;
|
|
2022
|
-
this.
|
|
2023
|
-
this.
|
|
2024
|
-
this.
|
|
2022
|
+
this.l8v_1 = id;
|
|
2023
|
+
this.m8v_1 = name;
|
|
2024
|
+
this.n8v_1 = response;
|
|
2025
2025
|
}
|
|
2026
2026
|
function GoogleTool$Companion$$childSerializers$_anonymous__3d7dfd() {
|
|
2027
2027
|
return new ArrayListSerializer($serializer_getInstance_14());
|
|
@@ -2033,7 +2033,7 @@
|
|
|
2033
2033
|
// Inline function 'kotlin.arrayOf' call
|
|
2034
2034
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2035
2035
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2036
|
-
tmp.
|
|
2036
|
+
tmp.o8v_1 = [lazy(tmp_0, GoogleTool$Companion$$childSerializers$_anonymous__3d7dfd)];
|
|
2037
2037
|
}
|
|
2038
2038
|
var Companion_instance_12;
|
|
2039
2039
|
function Companion_getInstance_15() {
|
|
@@ -2045,28 +2045,28 @@
|
|
|
2045
2045
|
$serializer_instance_13 = this;
|
|
2046
2046
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GoogleTool', this, 1);
|
|
2047
2047
|
tmp0_serialDesc.m16('functionDeclarations', true);
|
|
2048
|
-
this.
|
|
2048
|
+
this.p8v_1 = tmp0_serialDesc;
|
|
2049
2049
|
}
|
|
2050
|
-
protoOf($serializer_13).
|
|
2051
|
-
var tmp0_desc = this.
|
|
2050
|
+
protoOf($serializer_13).q8v = function (encoder, value) {
|
|
2051
|
+
var tmp0_desc = this.p8v_1;
|
|
2052
2052
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2053
|
-
var tmp2_cached = Companion_getInstance_15().
|
|
2054
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2055
|
-
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
2053
|
+
var tmp2_cached = Companion_getInstance_15().o8v_1;
|
|
2054
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.r8v_1 == null)) {
|
|
2055
|
+
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.r8v_1);
|
|
2056
2056
|
}
|
|
2057
2057
|
tmp1_output.xy(tmp0_desc);
|
|
2058
2058
|
};
|
|
2059
2059
|
protoOf($serializer_13).gv = function (encoder, value) {
|
|
2060
|
-
return this.
|
|
2060
|
+
return this.q8v(encoder, value instanceof GoogleTool ? value : THROW_CCE());
|
|
2061
2061
|
};
|
|
2062
2062
|
protoOf($serializer_13).hv = function (decoder) {
|
|
2063
|
-
var tmp0_desc = this.
|
|
2063
|
+
var tmp0_desc = this.p8v_1;
|
|
2064
2064
|
var tmp1_flag = true;
|
|
2065
2065
|
var tmp2_index = 0;
|
|
2066
2066
|
var tmp3_bitMask0 = 0;
|
|
2067
2067
|
var tmp4_local0 = null;
|
|
2068
2068
|
var tmp5_input = decoder.wy(tmp0_desc);
|
|
2069
|
-
var tmp6_cached = Companion_getInstance_15().
|
|
2069
|
+
var tmp6_cached = Companion_getInstance_15().o8v_1;
|
|
2070
2070
|
if (tmp5_input.mz()) {
|
|
2071
2071
|
tmp4_local0 = tmp5_input.kz(tmp0_desc, 0, tmp6_cached[0].b1(), tmp4_local0);
|
|
2072
2072
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2089,10 +2089,10 @@
|
|
|
2089
2089
|
return GoogleTool_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
2090
2090
|
};
|
|
2091
2091
|
protoOf($serializer_13).fv = function () {
|
|
2092
|
-
return this.
|
|
2092
|
+
return this.p8v_1;
|
|
2093
2093
|
};
|
|
2094
2094
|
protoOf($serializer_13).d17 = function () {
|
|
2095
|
-
var tmp0_cached = Companion_getInstance_15().
|
|
2095
|
+
var tmp0_cached = Companion_getInstance_15().o8v_1;
|
|
2096
2096
|
// Inline function 'kotlin.arrayOf' call
|
|
2097
2097
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2098
2098
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2106,12 +2106,12 @@
|
|
|
2106
2106
|
}
|
|
2107
2107
|
function GoogleTool_init_$Init$(seen0, functionDeclarations, serializationConstructorMarker, $this) {
|
|
2108
2108
|
if (!(0 === (0 & seen0))) {
|
|
2109
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_13().
|
|
2109
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_13().p8v_1);
|
|
2110
2110
|
}
|
|
2111
2111
|
if (0 === (seen0 & 1))
|
|
2112
|
-
$this.
|
|
2112
|
+
$this.r8v_1 = null;
|
|
2113
2113
|
else
|
|
2114
|
-
$this.
|
|
2114
|
+
$this.r8v_1 = functionDeclarations;
|
|
2115
2115
|
return $this;
|
|
2116
2116
|
}
|
|
2117
2117
|
function GoogleTool_init_$Create$(seen0, functionDeclarations, serializationConstructorMarker) {
|
|
@@ -2120,7 +2120,7 @@
|
|
|
2120
2120
|
function GoogleTool(functionDeclarations) {
|
|
2121
2121
|
Companion_getInstance_15();
|
|
2122
2122
|
functionDeclarations = functionDeclarations === VOID ? null : functionDeclarations;
|
|
2123
|
-
this.
|
|
2123
|
+
this.r8v_1 = functionDeclarations;
|
|
2124
2124
|
}
|
|
2125
2125
|
function Companion_13() {
|
|
2126
2126
|
}
|
|
@@ -2135,26 +2135,26 @@
|
|
|
2135
2135
|
tmp0_serialDesc.m16('description', false);
|
|
2136
2136
|
tmp0_serialDesc.m16('parameters', true);
|
|
2137
2137
|
tmp0_serialDesc.m16('response', true);
|
|
2138
|
-
this.
|
|
2138
|
+
this.s8v_1 = tmp0_serialDesc;
|
|
2139
2139
|
}
|
|
2140
|
-
protoOf($serializer_14).
|
|
2141
|
-
var tmp0_desc = this.
|
|
2140
|
+
protoOf($serializer_14).t8v = function (encoder, value) {
|
|
2141
|
+
var tmp0_desc = this.s8v_1;
|
|
2142
2142
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2143
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2144
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
2145
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
2146
|
-
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
2143
|
+
tmp1_output.l10(tmp0_desc, 0, value.u8v_1);
|
|
2144
|
+
tmp1_output.l10(tmp0_desc, 1, value.v8v_1);
|
|
2145
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.w8v_1 == null)) {
|
|
2146
|
+
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.w8v_1);
|
|
2147
2147
|
}
|
|
2148
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
2149
|
-
tmp1_output.p10(tmp0_desc, 3, JsonObjectSerializer_getInstance(), value.
|
|
2148
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.x8v_1 == null)) {
|
|
2149
|
+
tmp1_output.p10(tmp0_desc, 3, JsonObjectSerializer_getInstance(), value.x8v_1);
|
|
2150
2150
|
}
|
|
2151
2151
|
tmp1_output.xy(tmp0_desc);
|
|
2152
2152
|
};
|
|
2153
2153
|
protoOf($serializer_14).gv = function (encoder, value) {
|
|
2154
|
-
return this.
|
|
2154
|
+
return this.t8v(encoder, value instanceof GoogleFunctionDeclaration ? value : THROW_CCE());
|
|
2155
2155
|
};
|
|
2156
2156
|
protoOf($serializer_14).hv = function (decoder) {
|
|
2157
|
-
var tmp0_desc = this.
|
|
2157
|
+
var tmp0_desc = this.s8v_1;
|
|
2158
2158
|
var tmp1_flag = true;
|
|
2159
2159
|
var tmp2_index = 0;
|
|
2160
2160
|
var tmp3_bitMask0 = 0;
|
|
@@ -2203,7 +2203,7 @@
|
|
|
2203
2203
|
return GoogleFunctionDeclaration_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2204
2204
|
};
|
|
2205
2205
|
protoOf($serializer_14).fv = function () {
|
|
2206
|
-
return this.
|
|
2206
|
+
return this.s8v_1;
|
|
2207
2207
|
};
|
|
2208
2208
|
protoOf($serializer_14).d17 = function () {
|
|
2209
2209
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2219,18 +2219,18 @@
|
|
|
2219
2219
|
}
|
|
2220
2220
|
function GoogleFunctionDeclaration_init_$Init$(seen0, name, description, parameters, response, serializationConstructorMarker, $this) {
|
|
2221
2221
|
if (!(3 === (3 & seen0))) {
|
|
2222
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_14().
|
|
2222
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_14().s8v_1);
|
|
2223
2223
|
}
|
|
2224
|
-
$this.
|
|
2225
|
-
$this.
|
|
2224
|
+
$this.u8v_1 = name;
|
|
2225
|
+
$this.v8v_1 = description;
|
|
2226
2226
|
if (0 === (seen0 & 4))
|
|
2227
|
-
$this.
|
|
2227
|
+
$this.w8v_1 = null;
|
|
2228
2228
|
else
|
|
2229
|
-
$this.
|
|
2229
|
+
$this.w8v_1 = parameters;
|
|
2230
2230
|
if (0 === (seen0 & 8))
|
|
2231
|
-
$this.
|
|
2231
|
+
$this.x8v_1 = null;
|
|
2232
2232
|
else
|
|
2233
|
-
$this.
|
|
2233
|
+
$this.x8v_1 = response;
|
|
2234
2234
|
return $this;
|
|
2235
2235
|
}
|
|
2236
2236
|
function GoogleFunctionDeclaration_init_$Create$(seen0, name, description, parameters, response, serializationConstructorMarker) {
|
|
@@ -2239,10 +2239,10 @@
|
|
|
2239
2239
|
function GoogleFunctionDeclaration(name, description, parameters, response) {
|
|
2240
2240
|
parameters = parameters === VOID ? null : parameters;
|
|
2241
2241
|
response = response === VOID ? null : response;
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2242
|
+
this.u8v_1 = name;
|
|
2243
|
+
this.v8v_1 = description;
|
|
2244
|
+
this.w8v_1 = parameters;
|
|
2245
|
+
this.x8v_1 = response;
|
|
2246
2246
|
}
|
|
2247
2247
|
function GoogleGenerationConfig$Companion$$childSerializers$_anonymous__26byvr() {
|
|
2248
2248
|
return new LinkedHashMapSerializer(StringSerializer_getInstance(), JsonElementSerializer_getInstance());
|
|
@@ -2254,7 +2254,7 @@
|
|
|
2254
2254
|
// Inline function 'kotlin.arrayOf' call
|
|
2255
2255
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2256
2256
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2257
|
-
tmp.
|
|
2257
|
+
tmp.y8v_1 = [null, null, null, null, null, null, null, null, null, lazy(tmp_0, GoogleGenerationConfig$Companion$$childSerializers$_anonymous__26byvr)];
|
|
2258
2258
|
}
|
|
2259
2259
|
protoOf(Companion_14).q1j = function () {
|
|
2260
2260
|
return $serializer_getInstance_15();
|
|
@@ -2278,49 +2278,49 @@
|
|
|
2278
2278
|
tmp0_serialDesc.m16('topK', true);
|
|
2279
2279
|
tmp0_serialDesc.m16('thinkingConfig', true);
|
|
2280
2280
|
tmp0_serialDesc.m16('additionalProperties', true);
|
|
2281
|
-
this.
|
|
2281
|
+
this.z8v_1 = tmp0_serialDesc;
|
|
2282
2282
|
}
|
|
2283
|
-
protoOf($serializer_15).
|
|
2284
|
-
var tmp0_desc = this.
|
|
2283
|
+
protoOf($serializer_15).a8w = function (encoder, value) {
|
|
2284
|
+
var tmp0_desc = this.z8v_1;
|
|
2285
2285
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2286
|
-
var tmp2_cached = Companion_getInstance_17().
|
|
2287
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2288
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
2286
|
+
var tmp2_cached = Companion_getInstance_17().y8v_1;
|
|
2287
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.b8w_1 == null)) {
|
|
2288
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.b8w_1);
|
|
2289
2289
|
}
|
|
2290
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2291
|
-
tmp1_output.p10(tmp0_desc, 1, JsonObjectSerializer_getInstance(), value.
|
|
2290
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.c8w_1 == null)) {
|
|
2291
|
+
tmp1_output.p10(tmp0_desc, 1, JsonObjectSerializer_getInstance(), value.c8w_1);
|
|
2292
2292
|
}
|
|
2293
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
2294
|
-
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
2293
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.d8w_1 == null)) {
|
|
2294
|
+
tmp1_output.p10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.d8w_1);
|
|
2295
2295
|
}
|
|
2296
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
2297
|
-
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
2296
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.e8w_1 == null)) {
|
|
2297
|
+
tmp1_output.p10(tmp0_desc, 3, IntSerializer_getInstance(), value.e8w_1);
|
|
2298
2298
|
}
|
|
2299
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
2300
|
-
tmp1_output.p10(tmp0_desc, 4, DoubleSerializer_getInstance(), value.
|
|
2299
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.f8w_1 == null)) {
|
|
2300
|
+
tmp1_output.p10(tmp0_desc, 4, DoubleSerializer_getInstance(), value.f8w_1);
|
|
2301
2301
|
}
|
|
2302
|
-
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.
|
|
2303
|
-
tmp1_output.p10(tmp0_desc, 5, IntSerializer_getInstance(), value.
|
|
2302
|
+
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.g8w_1 == null)) {
|
|
2303
|
+
tmp1_output.p10(tmp0_desc, 5, IntSerializer_getInstance(), value.g8w_1);
|
|
2304
2304
|
}
|
|
2305
|
-
if (tmp1_output.t10(tmp0_desc, 6) ? true : !(value.
|
|
2306
|
-
tmp1_output.p10(tmp0_desc, 6, DoubleSerializer_getInstance(), value.
|
|
2305
|
+
if (tmp1_output.t10(tmp0_desc, 6) ? true : !(value.h8w_1 == null)) {
|
|
2306
|
+
tmp1_output.p10(tmp0_desc, 6, DoubleSerializer_getInstance(), value.h8w_1);
|
|
2307
2307
|
}
|
|
2308
|
-
if (tmp1_output.t10(tmp0_desc, 7) ? true : !(value.
|
|
2309
|
-
tmp1_output.p10(tmp0_desc, 7, IntSerializer_getInstance(), value.
|
|
2308
|
+
if (tmp1_output.t10(tmp0_desc, 7) ? true : !(value.i8w_1 == null)) {
|
|
2309
|
+
tmp1_output.p10(tmp0_desc, 7, IntSerializer_getInstance(), value.i8w_1);
|
|
2310
2310
|
}
|
|
2311
|
-
if (tmp1_output.t10(tmp0_desc, 8) ? true : !(value.
|
|
2312
|
-
tmp1_output.p10(tmp0_desc, 8, $serializer_getInstance_16(), value.
|
|
2311
|
+
if (tmp1_output.t10(tmp0_desc, 8) ? true : !(value.j8w_1 == null)) {
|
|
2312
|
+
tmp1_output.p10(tmp0_desc, 8, $serializer_getInstance_16(), value.j8w_1);
|
|
2313
2313
|
}
|
|
2314
|
-
if (tmp1_output.t10(tmp0_desc, 9) ? true : !(value.
|
|
2315
|
-
tmp1_output.p10(tmp0_desc, 9, tmp2_cached[9].b1(), value.
|
|
2314
|
+
if (tmp1_output.t10(tmp0_desc, 9) ? true : !(value.k8w_1 == null)) {
|
|
2315
|
+
tmp1_output.p10(tmp0_desc, 9, tmp2_cached[9].b1(), value.k8w_1);
|
|
2316
2316
|
}
|
|
2317
2317
|
tmp1_output.xy(tmp0_desc);
|
|
2318
2318
|
};
|
|
2319
2319
|
protoOf($serializer_15).gv = function (encoder, value) {
|
|
2320
|
-
return this.
|
|
2320
|
+
return this.a8w(encoder, value instanceof GoogleGenerationConfig ? value : THROW_CCE());
|
|
2321
2321
|
};
|
|
2322
2322
|
protoOf($serializer_15).hv = function (decoder) {
|
|
2323
|
-
var tmp0_desc = this.
|
|
2323
|
+
var tmp0_desc = this.z8v_1;
|
|
2324
2324
|
var tmp1_flag = true;
|
|
2325
2325
|
var tmp2_index = 0;
|
|
2326
2326
|
var tmp3_bitMask0 = 0;
|
|
@@ -2335,7 +2335,7 @@
|
|
|
2335
2335
|
var tmp12_local8 = null;
|
|
2336
2336
|
var tmp13_local9 = null;
|
|
2337
2337
|
var tmp14_input = decoder.wy(tmp0_desc);
|
|
2338
|
-
var tmp15_cached = Companion_getInstance_17().
|
|
2338
|
+
var tmp15_cached = Companion_getInstance_17().y8v_1;
|
|
2339
2339
|
if (tmp14_input.mz()) {
|
|
2340
2340
|
tmp4_local0 = tmp14_input.kz(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
2341
2341
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2412,10 +2412,10 @@
|
|
|
2412
2412
|
return GoogleGenerationConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
|
|
2413
2413
|
};
|
|
2414
2414
|
protoOf($serializer_15).fv = function () {
|
|
2415
|
-
return this.
|
|
2415
|
+
return this.z8v_1;
|
|
2416
2416
|
};
|
|
2417
2417
|
protoOf($serializer_15).d17 = function () {
|
|
2418
|
-
var tmp0_cached = Companion_getInstance_17().
|
|
2418
|
+
var tmp0_cached = Companion_getInstance_17().y8v_1;
|
|
2419
2419
|
// Inline function 'kotlin.arrayOf' call
|
|
2420
2420
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2421
2421
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2429,48 +2429,48 @@
|
|
|
2429
2429
|
}
|
|
2430
2430
|
function GoogleGenerationConfig_init_$Init$(seen0, responseMimeType, responseSchema, responseJsonSchema, maxOutputTokens, temperature, candidateCount, topP, topK, thinkingConfig, additionalProperties, serializationConstructorMarker, $this) {
|
|
2431
2431
|
if (!(0 === (0 & seen0))) {
|
|
2432
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_15().
|
|
2432
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_15().z8v_1);
|
|
2433
2433
|
}
|
|
2434
2434
|
if (0 === (seen0 & 1))
|
|
2435
|
-
$this.
|
|
2435
|
+
$this.b8w_1 = null;
|
|
2436
2436
|
else
|
|
2437
|
-
$this.
|
|
2437
|
+
$this.b8w_1 = responseMimeType;
|
|
2438
2438
|
if (0 === (seen0 & 2))
|
|
2439
|
-
$this.
|
|
2439
|
+
$this.c8w_1 = null;
|
|
2440
2440
|
else
|
|
2441
|
-
$this.
|
|
2441
|
+
$this.c8w_1 = responseSchema;
|
|
2442
2442
|
if (0 === (seen0 & 4))
|
|
2443
|
-
$this.
|
|
2443
|
+
$this.d8w_1 = null;
|
|
2444
2444
|
else
|
|
2445
|
-
$this.
|
|
2445
|
+
$this.d8w_1 = responseJsonSchema;
|
|
2446
2446
|
if (0 === (seen0 & 8))
|
|
2447
|
-
$this.
|
|
2447
|
+
$this.e8w_1 = null;
|
|
2448
2448
|
else
|
|
2449
|
-
$this.
|
|
2449
|
+
$this.e8w_1 = maxOutputTokens;
|
|
2450
2450
|
if (0 === (seen0 & 16))
|
|
2451
|
-
$this.
|
|
2451
|
+
$this.f8w_1 = null;
|
|
2452
2452
|
else
|
|
2453
|
-
$this.
|
|
2453
|
+
$this.f8w_1 = temperature;
|
|
2454
2454
|
if (0 === (seen0 & 32))
|
|
2455
|
-
$this.
|
|
2455
|
+
$this.g8w_1 = null;
|
|
2456
2456
|
else
|
|
2457
|
-
$this.
|
|
2457
|
+
$this.g8w_1 = candidateCount;
|
|
2458
2458
|
if (0 === (seen0 & 64))
|
|
2459
|
-
$this.
|
|
2459
|
+
$this.h8w_1 = null;
|
|
2460
2460
|
else
|
|
2461
|
-
$this.
|
|
2461
|
+
$this.h8w_1 = topP;
|
|
2462
2462
|
if (0 === (seen0 & 128))
|
|
2463
|
-
$this.
|
|
2463
|
+
$this.i8w_1 = null;
|
|
2464
2464
|
else
|
|
2465
|
-
$this.
|
|
2465
|
+
$this.i8w_1 = topK;
|
|
2466
2466
|
if (0 === (seen0 & 256))
|
|
2467
|
-
$this.
|
|
2467
|
+
$this.j8w_1 = null;
|
|
2468
2468
|
else
|
|
2469
|
-
$this.
|
|
2469
|
+
$this.j8w_1 = thinkingConfig;
|
|
2470
2470
|
if (0 === (seen0 & 512))
|
|
2471
|
-
$this.
|
|
2471
|
+
$this.k8w_1 = null;
|
|
2472
2472
|
else
|
|
2473
|
-
$this.
|
|
2473
|
+
$this.k8w_1 = additionalProperties;
|
|
2474
2474
|
return $this;
|
|
2475
2475
|
}
|
|
2476
2476
|
function GoogleGenerationConfig_init_$Create$(seen0, responseMimeType, responseSchema, responseJsonSchema, maxOutputTokens, temperature, candidateCount, topP, topK, thinkingConfig, additionalProperties, serializationConstructorMarker) {
|
|
@@ -2488,16 +2488,16 @@
|
|
|
2488
2488
|
topK = topK === VOID ? null : topK;
|
|
2489
2489
|
thinkingConfig = thinkingConfig === VOID ? null : thinkingConfig;
|
|
2490
2490
|
additionalProperties = additionalProperties === VOID ? null : additionalProperties;
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2493
|
-
this.
|
|
2494
|
-
this.
|
|
2495
|
-
this.
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2491
|
+
this.b8w_1 = responseMimeType;
|
|
2492
|
+
this.c8w_1 = responseSchema;
|
|
2493
|
+
this.d8w_1 = responseJsonSchema;
|
|
2494
|
+
this.e8w_1 = maxOutputTokens;
|
|
2495
|
+
this.f8w_1 = temperature;
|
|
2496
|
+
this.g8w_1 = candidateCount;
|
|
2497
|
+
this.h8w_1 = topP;
|
|
2498
|
+
this.i8w_1 = topK;
|
|
2499
|
+
this.j8w_1 = thinkingConfig;
|
|
2500
|
+
this.k8w_1 = additionalProperties;
|
|
2501
2501
|
}
|
|
2502
2502
|
function Companion_15() {
|
|
2503
2503
|
}
|
|
@@ -2510,24 +2510,24 @@
|
|
|
2510
2510
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GoogleThinkingConfig', this, 2);
|
|
2511
2511
|
tmp0_serialDesc.m16('includeThoughts', true);
|
|
2512
2512
|
tmp0_serialDesc.m16('thinkingBudget', true);
|
|
2513
|
-
this.
|
|
2513
|
+
this.l8w_1 = tmp0_serialDesc;
|
|
2514
2514
|
}
|
|
2515
|
-
protoOf($serializer_16).
|
|
2516
|
-
var tmp0_desc = this.
|
|
2515
|
+
protoOf($serializer_16).m8w = function (encoder, value) {
|
|
2516
|
+
var tmp0_desc = this.l8w_1;
|
|
2517
2517
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2518
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2519
|
-
tmp1_output.p10(tmp0_desc, 0, BooleanSerializer_getInstance(), value.
|
|
2518
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.n8w_1 == null)) {
|
|
2519
|
+
tmp1_output.p10(tmp0_desc, 0, BooleanSerializer_getInstance(), value.n8w_1);
|
|
2520
2520
|
}
|
|
2521
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2522
|
-
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.
|
|
2521
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.o8w_1 == null)) {
|
|
2522
|
+
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.o8w_1);
|
|
2523
2523
|
}
|
|
2524
2524
|
tmp1_output.xy(tmp0_desc);
|
|
2525
2525
|
};
|
|
2526
2526
|
protoOf($serializer_16).gv = function (encoder, value) {
|
|
2527
|
-
return this.
|
|
2527
|
+
return this.m8w(encoder, value instanceof GoogleThinkingConfig ? value : THROW_CCE());
|
|
2528
2528
|
};
|
|
2529
2529
|
protoOf($serializer_16).hv = function (decoder) {
|
|
2530
|
-
var tmp0_desc = this.
|
|
2530
|
+
var tmp0_desc = this.l8w_1;
|
|
2531
2531
|
var tmp1_flag = true;
|
|
2532
2532
|
var tmp2_index = 0;
|
|
2533
2533
|
var tmp3_bitMask0 = 0;
|
|
@@ -2562,7 +2562,7 @@
|
|
|
2562
2562
|
return GoogleThinkingConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2563
2563
|
};
|
|
2564
2564
|
protoOf($serializer_16).fv = function () {
|
|
2565
|
-
return this.
|
|
2565
|
+
return this.l8w_1;
|
|
2566
2566
|
};
|
|
2567
2567
|
protoOf($serializer_16).d17 = function () {
|
|
2568
2568
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2578,16 +2578,16 @@
|
|
|
2578
2578
|
}
|
|
2579
2579
|
function GoogleThinkingConfig_init_$Init$(seen0, includeThoughts, thinkingBudget, serializationConstructorMarker, $this) {
|
|
2580
2580
|
if (!(0 === (0 & seen0))) {
|
|
2581
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_16().
|
|
2581
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_16().l8w_1);
|
|
2582
2582
|
}
|
|
2583
2583
|
if (0 === (seen0 & 1))
|
|
2584
|
-
$this.
|
|
2584
|
+
$this.n8w_1 = null;
|
|
2585
2585
|
else
|
|
2586
|
-
$this.
|
|
2586
|
+
$this.n8w_1 = includeThoughts;
|
|
2587
2587
|
if (0 === (seen0 & 2))
|
|
2588
|
-
$this.
|
|
2588
|
+
$this.o8w_1 = null;
|
|
2589
2589
|
else
|
|
2590
|
-
$this.
|
|
2590
|
+
$this.o8w_1 = thinkingBudget;
|
|
2591
2591
|
return $this;
|
|
2592
2592
|
}
|
|
2593
2593
|
function GoogleThinkingConfig_init_$Create$(seen0, includeThoughts, thinkingBudget, serializationConstructorMarker) {
|
|
@@ -2596,15 +2596,15 @@
|
|
|
2596
2596
|
function GoogleThinkingConfig(includeThoughts, thinkingBudget) {
|
|
2597
2597
|
includeThoughts = includeThoughts === VOID ? null : includeThoughts;
|
|
2598
2598
|
thinkingBudget = thinkingBudget === VOID ? null : thinkingBudget;
|
|
2599
|
-
this.
|
|
2600
|
-
this.
|
|
2599
|
+
this.n8w_1 = includeThoughts;
|
|
2600
|
+
this.o8w_1 = thinkingBudget;
|
|
2601
2601
|
}
|
|
2602
2602
|
protoOf(GoogleThinkingConfig).toString = function () {
|
|
2603
|
-
return 'GoogleThinkingConfig(includeThoughts=' + this.
|
|
2603
|
+
return 'GoogleThinkingConfig(includeThoughts=' + this.n8w_1 + ', thinkingBudget=' + this.o8w_1 + ')';
|
|
2604
2604
|
};
|
|
2605
2605
|
protoOf(GoogleThinkingConfig).hashCode = function () {
|
|
2606
|
-
var result = this.
|
|
2607
|
-
result = imul(result, 31) + (this.
|
|
2606
|
+
var result = this.n8w_1 == null ? 0 : getBooleanHashCode(this.n8w_1);
|
|
2607
|
+
result = imul(result, 31) + (this.o8w_1 == null ? 0 : this.o8w_1) | 0;
|
|
2608
2608
|
return result;
|
|
2609
2609
|
};
|
|
2610
2610
|
protoOf(GoogleThinkingConfig).equals = function (other) {
|
|
@@ -2613,9 +2613,9 @@
|
|
|
2613
2613
|
if (!(other instanceof GoogleThinkingConfig))
|
|
2614
2614
|
return false;
|
|
2615
2615
|
var tmp0_other_with_cast = other instanceof GoogleThinkingConfig ? other : THROW_CCE();
|
|
2616
|
-
if (!(this.
|
|
2616
|
+
if (!(this.n8w_1 == tmp0_other_with_cast.n8w_1))
|
|
2617
2617
|
return false;
|
|
2618
|
-
if (!(this.
|
|
2618
|
+
if (!(this.o8w_1 == tmp0_other_with_cast.o8w_1))
|
|
2619
2619
|
return false;
|
|
2620
2620
|
return true;
|
|
2621
2621
|
};
|
|
@@ -2634,7 +2634,7 @@
|
|
|
2634
2634
|
// Inline function 'kotlin.arrayOf' call
|
|
2635
2635
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2636
2636
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2637
|
-
tmp.
|
|
2637
|
+
tmp.q8w_1 = [tmp_1, lazy(tmp_2, GoogleFunctionCallingConfig$Companion$$childSerializers$_anonymous__yqskj9_0)];
|
|
2638
2638
|
}
|
|
2639
2639
|
var Companion_instance_16;
|
|
2640
2640
|
function Companion_getInstance_19() {
|
|
@@ -2647,32 +2647,32 @@
|
|
|
2647
2647
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GoogleFunctionCallingConfig', this, 2);
|
|
2648
2648
|
tmp0_serialDesc.m16('mode', true);
|
|
2649
2649
|
tmp0_serialDesc.m16('allowedFunctionNames', true);
|
|
2650
|
-
this.
|
|
2650
|
+
this.r8w_1 = tmp0_serialDesc;
|
|
2651
2651
|
}
|
|
2652
|
-
protoOf($serializer_17).
|
|
2653
|
-
var tmp0_desc = this.
|
|
2652
|
+
protoOf($serializer_17).s8w = function (encoder, value) {
|
|
2653
|
+
var tmp0_desc = this.r8w_1;
|
|
2654
2654
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2655
|
-
var tmp2_cached = Companion_getInstance_19().
|
|
2656
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2657
|
-
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
2655
|
+
var tmp2_cached = Companion_getInstance_19().q8w_1;
|
|
2656
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.t8w_1 == null)) {
|
|
2657
|
+
tmp1_output.p10(tmp0_desc, 0, tmp2_cached[0].b1(), value.t8w_1);
|
|
2658
2658
|
}
|
|
2659
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2660
|
-
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
2659
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.u8w_1 == null)) {
|
|
2660
|
+
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.u8w_1);
|
|
2661
2661
|
}
|
|
2662
2662
|
tmp1_output.xy(tmp0_desc);
|
|
2663
2663
|
};
|
|
2664
2664
|
protoOf($serializer_17).gv = function (encoder, value) {
|
|
2665
|
-
return this.
|
|
2665
|
+
return this.s8w(encoder, value instanceof GoogleFunctionCallingConfig ? value : THROW_CCE());
|
|
2666
2666
|
};
|
|
2667
2667
|
protoOf($serializer_17).hv = function (decoder) {
|
|
2668
|
-
var tmp0_desc = this.
|
|
2668
|
+
var tmp0_desc = this.r8w_1;
|
|
2669
2669
|
var tmp1_flag = true;
|
|
2670
2670
|
var tmp2_index = 0;
|
|
2671
2671
|
var tmp3_bitMask0 = 0;
|
|
2672
2672
|
var tmp4_local0 = null;
|
|
2673
2673
|
var tmp5_local1 = null;
|
|
2674
2674
|
var tmp6_input = decoder.wy(tmp0_desc);
|
|
2675
|
-
var tmp7_cached = Companion_getInstance_19().
|
|
2675
|
+
var tmp7_cached = Companion_getInstance_19().q8w_1;
|
|
2676
2676
|
if (tmp6_input.mz()) {
|
|
2677
2677
|
tmp4_local0 = tmp6_input.kz(tmp0_desc, 0, tmp7_cached[0].b1(), tmp4_local0);
|
|
2678
2678
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2701,10 +2701,10 @@
|
|
|
2701
2701
|
return GoogleFunctionCallingConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2702
2702
|
};
|
|
2703
2703
|
protoOf($serializer_17).fv = function () {
|
|
2704
|
-
return this.
|
|
2704
|
+
return this.r8w_1;
|
|
2705
2705
|
};
|
|
2706
2706
|
protoOf($serializer_17).d17 = function () {
|
|
2707
|
-
var tmp0_cached = Companion_getInstance_19().
|
|
2707
|
+
var tmp0_cached = Companion_getInstance_19().q8w_1;
|
|
2708
2708
|
// Inline function 'kotlin.arrayOf' call
|
|
2709
2709
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2710
2710
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2718,16 +2718,16 @@
|
|
|
2718
2718
|
}
|
|
2719
2719
|
function GoogleFunctionCallingConfig_init_$Init$(seen0, mode, allowedFunctionNames, serializationConstructorMarker, $this) {
|
|
2720
2720
|
if (!(0 === (0 & seen0))) {
|
|
2721
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_17().
|
|
2721
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_17().r8w_1);
|
|
2722
2722
|
}
|
|
2723
2723
|
if (0 === (seen0 & 1))
|
|
2724
|
-
$this.
|
|
2724
|
+
$this.t8w_1 = null;
|
|
2725
2725
|
else
|
|
2726
|
-
$this.
|
|
2726
|
+
$this.t8w_1 = mode;
|
|
2727
2727
|
if (0 === (seen0 & 2))
|
|
2728
|
-
$this.
|
|
2728
|
+
$this.u8w_1 = null;
|
|
2729
2729
|
else
|
|
2730
|
-
$this.
|
|
2730
|
+
$this.u8w_1 = allowedFunctionNames;
|
|
2731
2731
|
return $this;
|
|
2732
2732
|
}
|
|
2733
2733
|
function GoogleFunctionCallingConfig_init_$Create$(seen0, mode, allowedFunctionNames, serializationConstructorMarker) {
|
|
@@ -2737,11 +2737,11 @@
|
|
|
2737
2737
|
Companion_getInstance_19();
|
|
2738
2738
|
mode = mode === VOID ? null : mode;
|
|
2739
2739
|
allowedFunctionNames = allowedFunctionNames === VOID ? null : allowedFunctionNames;
|
|
2740
|
-
this.
|
|
2741
|
-
this.
|
|
2740
|
+
this.t8w_1 = mode;
|
|
2741
|
+
this.u8w_1 = allowedFunctionNames;
|
|
2742
2742
|
}
|
|
2743
2743
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
2744
|
-
return $this.
|
|
2744
|
+
return $this.p8w_1.b1();
|
|
2745
2745
|
}
|
|
2746
2746
|
function GoogleFunctionCallingMode$Companion$_anonymous__psdx6v() {
|
|
2747
2747
|
var tmp = values();
|
|
@@ -2765,7 +2765,7 @@
|
|
|
2765
2765
|
Companion_instance_17 = this;
|
|
2766
2766
|
var tmp = this;
|
|
2767
2767
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2768
|
-
tmp.
|
|
2768
|
+
tmp.p8w_1 = lazy(tmp_0, GoogleFunctionCallingMode$Companion$_anonymous__psdx6v);
|
|
2769
2769
|
}
|
|
2770
2770
|
protoOf(Companion_17).q1j = function () {
|
|
2771
2771
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -2803,21 +2803,21 @@
|
|
|
2803
2803
|
$serializer_instance_18 = this;
|
|
2804
2804
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GoogleToolConfig', this, 1);
|
|
2805
2805
|
tmp0_serialDesc.m16('functionCallingConfig', true);
|
|
2806
|
-
this.
|
|
2806
|
+
this.v8w_1 = tmp0_serialDesc;
|
|
2807
2807
|
}
|
|
2808
|
-
protoOf($serializer_18).
|
|
2809
|
-
var tmp0_desc = this.
|
|
2808
|
+
protoOf($serializer_18).w8w = function (encoder, value) {
|
|
2809
|
+
var tmp0_desc = this.v8w_1;
|
|
2810
2810
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2811
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2812
|
-
tmp1_output.p10(tmp0_desc, 0, $serializer_getInstance_17(), value.
|
|
2811
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.x8w_1 == null)) {
|
|
2812
|
+
tmp1_output.p10(tmp0_desc, 0, $serializer_getInstance_17(), value.x8w_1);
|
|
2813
2813
|
}
|
|
2814
2814
|
tmp1_output.xy(tmp0_desc);
|
|
2815
2815
|
};
|
|
2816
2816
|
protoOf($serializer_18).gv = function (encoder, value) {
|
|
2817
|
-
return this.
|
|
2817
|
+
return this.w8w(encoder, value instanceof GoogleToolConfig ? value : THROW_CCE());
|
|
2818
2818
|
};
|
|
2819
2819
|
protoOf($serializer_18).hv = function (decoder) {
|
|
2820
|
-
var tmp0_desc = this.
|
|
2820
|
+
var tmp0_desc = this.v8w_1;
|
|
2821
2821
|
var tmp1_flag = true;
|
|
2822
2822
|
var tmp2_index = 0;
|
|
2823
2823
|
var tmp3_bitMask0 = 0;
|
|
@@ -2845,7 +2845,7 @@
|
|
|
2845
2845
|
return GoogleToolConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
2846
2846
|
};
|
|
2847
2847
|
protoOf($serializer_18).fv = function () {
|
|
2848
|
-
return this.
|
|
2848
|
+
return this.v8w_1;
|
|
2849
2849
|
};
|
|
2850
2850
|
protoOf($serializer_18).d17 = function () {
|
|
2851
2851
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2861,12 +2861,12 @@
|
|
|
2861
2861
|
}
|
|
2862
2862
|
function GoogleToolConfig_init_$Init$(seen0, functionCallingConfig, serializationConstructorMarker, $this) {
|
|
2863
2863
|
if (!(0 === (0 & seen0))) {
|
|
2864
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_18().
|
|
2864
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_18().v8w_1);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (0 === (seen0 & 1))
|
|
2867
|
-
$this.
|
|
2867
|
+
$this.x8w_1 = null;
|
|
2868
2868
|
else
|
|
2869
|
-
$this.
|
|
2869
|
+
$this.x8w_1 = functionCallingConfig;
|
|
2870
2870
|
return $this;
|
|
2871
2871
|
}
|
|
2872
2872
|
function GoogleToolConfig_init_$Create$(seen0, functionCallingConfig, serializationConstructorMarker) {
|
|
@@ -2874,7 +2874,7 @@
|
|
|
2874
2874
|
}
|
|
2875
2875
|
function GoogleToolConfig(functionCallingConfig) {
|
|
2876
2876
|
functionCallingConfig = functionCallingConfig === VOID ? null : functionCallingConfig;
|
|
2877
|
-
this.
|
|
2877
|
+
this.x8w_1 = functionCallingConfig;
|
|
2878
2878
|
}
|
|
2879
2879
|
function GooglePromptFeedback$Companion$$childSerializers$_anonymous__nnxabs() {
|
|
2880
2880
|
return new ArrayListSerializer($serializer_getInstance_20());
|
|
@@ -2886,7 +2886,7 @@
|
|
|
2886
2886
|
// Inline function 'kotlin.arrayOf' call
|
|
2887
2887
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2888
2888
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2889
|
-
tmp.
|
|
2889
|
+
tmp.y8w_1 = [null, lazy(tmp_0, GooglePromptFeedback$Companion$$childSerializers$_anonymous__nnxabs)];
|
|
2890
2890
|
}
|
|
2891
2891
|
var Companion_instance_19;
|
|
2892
2892
|
function Companion_getInstance_22() {
|
|
@@ -2899,32 +2899,32 @@
|
|
|
2899
2899
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.google.GooglePromptFeedback', this, 2);
|
|
2900
2900
|
tmp0_serialDesc.m16('blockReason', true);
|
|
2901
2901
|
tmp0_serialDesc.m16('safetyRatings', true);
|
|
2902
|
-
this.
|
|
2902
|
+
this.z8w_1 = tmp0_serialDesc;
|
|
2903
2903
|
}
|
|
2904
|
-
protoOf($serializer_19).
|
|
2905
|
-
var tmp0_desc = this.
|
|
2904
|
+
protoOf($serializer_19).a8x = function (encoder, value) {
|
|
2905
|
+
var tmp0_desc = this.z8w_1;
|
|
2906
2906
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2907
|
-
var tmp2_cached = Companion_getInstance_22().
|
|
2908
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2909
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
2907
|
+
var tmp2_cached = Companion_getInstance_22().y8w_1;
|
|
2908
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.b8x_1 == null)) {
|
|
2909
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.b8x_1);
|
|
2910
2910
|
}
|
|
2911
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2912
|
-
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
2911
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.c8x_1 == null)) {
|
|
2912
|
+
tmp1_output.p10(tmp0_desc, 1, tmp2_cached[1].b1(), value.c8x_1);
|
|
2913
2913
|
}
|
|
2914
2914
|
tmp1_output.xy(tmp0_desc);
|
|
2915
2915
|
};
|
|
2916
2916
|
protoOf($serializer_19).gv = function (encoder, value) {
|
|
2917
|
-
return this.
|
|
2917
|
+
return this.a8x(encoder, value instanceof GooglePromptFeedback ? value : THROW_CCE());
|
|
2918
2918
|
};
|
|
2919
2919
|
protoOf($serializer_19).hv = function (decoder) {
|
|
2920
|
-
var tmp0_desc = this.
|
|
2920
|
+
var tmp0_desc = this.z8w_1;
|
|
2921
2921
|
var tmp1_flag = true;
|
|
2922
2922
|
var tmp2_index = 0;
|
|
2923
2923
|
var tmp3_bitMask0 = 0;
|
|
2924
2924
|
var tmp4_local0 = null;
|
|
2925
2925
|
var tmp5_local1 = null;
|
|
2926
2926
|
var tmp6_input = decoder.wy(tmp0_desc);
|
|
2927
|
-
var tmp7_cached = Companion_getInstance_22().
|
|
2927
|
+
var tmp7_cached = Companion_getInstance_22().y8w_1;
|
|
2928
2928
|
if (tmp6_input.mz()) {
|
|
2929
2929
|
tmp4_local0 = tmp6_input.kz(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0);
|
|
2930
2930
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2953,10 +2953,10 @@
|
|
|
2953
2953
|
return GooglePromptFeedback_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2954
2954
|
};
|
|
2955
2955
|
protoOf($serializer_19).fv = function () {
|
|
2956
|
-
return this.
|
|
2956
|
+
return this.z8w_1;
|
|
2957
2957
|
};
|
|
2958
2958
|
protoOf($serializer_19).d17 = function () {
|
|
2959
|
-
var tmp0_cached = Companion_getInstance_22().
|
|
2959
|
+
var tmp0_cached = Companion_getInstance_22().y8w_1;
|
|
2960
2960
|
// Inline function 'kotlin.arrayOf' call
|
|
2961
2961
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2962
2962
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2970,16 +2970,16 @@
|
|
|
2970
2970
|
}
|
|
2971
2971
|
function GooglePromptFeedback_init_$Init$(seen0, blockReason, safetyRatings, serializationConstructorMarker, $this) {
|
|
2972
2972
|
if (!(0 === (0 & seen0))) {
|
|
2973
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_19().
|
|
2973
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_19().z8w_1);
|
|
2974
2974
|
}
|
|
2975
2975
|
if (0 === (seen0 & 1))
|
|
2976
|
-
$this.
|
|
2976
|
+
$this.b8x_1 = null;
|
|
2977
2977
|
else
|
|
2978
|
-
$this.
|
|
2978
|
+
$this.b8x_1 = blockReason;
|
|
2979
2979
|
if (0 === (seen0 & 2))
|
|
2980
|
-
$this.
|
|
2980
|
+
$this.c8x_1 = null;
|
|
2981
2981
|
else
|
|
2982
|
-
$this.
|
|
2982
|
+
$this.c8x_1 = safetyRatings;
|
|
2983
2983
|
return $this;
|
|
2984
2984
|
}
|
|
2985
2985
|
function GooglePromptFeedback_init_$Create$(seen0, blockReason, safetyRatings, serializationConstructorMarker) {
|
|
@@ -2989,8 +2989,8 @@
|
|
|
2989
2989
|
Companion_getInstance_22();
|
|
2990
2990
|
blockReason = blockReason === VOID ? null : blockReason;
|
|
2991
2991
|
safetyRatings = safetyRatings === VOID ? null : safetyRatings;
|
|
2992
|
-
this.
|
|
2993
|
-
this.
|
|
2992
|
+
this.b8x_1 = blockReason;
|
|
2993
|
+
this.c8x_1 = safetyRatings;
|
|
2994
2994
|
}
|
|
2995
2995
|
function GoogleGenerationConfigSerializer() {
|
|
2996
2996
|
GoogleGenerationConfigSerializer_instance = this;
|
|
@@ -3008,23 +3008,23 @@
|
|
|
3008
3008
|
tmp0_serialDesc.m16('category', false);
|
|
3009
3009
|
tmp0_serialDesc.m16('probability', false);
|
|
3010
3010
|
tmp0_serialDesc.m16('blocked', true);
|
|
3011
|
-
this.
|
|
3011
|
+
this.d8x_1 = tmp0_serialDesc;
|
|
3012
3012
|
}
|
|
3013
|
-
protoOf($serializer_20).
|
|
3014
|
-
var tmp0_desc = this.
|
|
3013
|
+
protoOf($serializer_20).e8x = function (encoder, value) {
|
|
3014
|
+
var tmp0_desc = this.d8x_1;
|
|
3015
3015
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3016
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3017
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
3018
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
3019
|
-
tmp1_output.p10(tmp0_desc, 2, BooleanSerializer_getInstance(), value.
|
|
3016
|
+
tmp1_output.l10(tmp0_desc, 0, value.f8x_1);
|
|
3017
|
+
tmp1_output.l10(tmp0_desc, 1, value.g8x_1);
|
|
3018
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.h8x_1 == null)) {
|
|
3019
|
+
tmp1_output.p10(tmp0_desc, 2, BooleanSerializer_getInstance(), value.h8x_1);
|
|
3020
3020
|
}
|
|
3021
3021
|
tmp1_output.xy(tmp0_desc);
|
|
3022
3022
|
};
|
|
3023
3023
|
protoOf($serializer_20).gv = function (encoder, value) {
|
|
3024
|
-
return this.
|
|
3024
|
+
return this.e8x(encoder, value instanceof GoogleSafetyRating ? value : THROW_CCE());
|
|
3025
3025
|
};
|
|
3026
3026
|
protoOf($serializer_20).hv = function (decoder) {
|
|
3027
|
-
var tmp0_desc = this.
|
|
3027
|
+
var tmp0_desc = this.d8x_1;
|
|
3028
3028
|
var tmp1_flag = true;
|
|
3029
3029
|
var tmp2_index = 0;
|
|
3030
3030
|
var tmp3_bitMask0 = 0;
|
|
@@ -3066,7 +3066,7 @@
|
|
|
3066
3066
|
return GoogleSafetyRating_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
3067
3067
|
};
|
|
3068
3068
|
protoOf($serializer_20).fv = function () {
|
|
3069
|
-
return this.
|
|
3069
|
+
return this.d8x_1;
|
|
3070
3070
|
};
|
|
3071
3071
|
protoOf($serializer_20).d17 = function () {
|
|
3072
3072
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3082,14 +3082,14 @@
|
|
|
3082
3082
|
}
|
|
3083
3083
|
function GoogleSafetyRating_init_$Init$(seen0, category, probability, blocked, serializationConstructorMarker, $this) {
|
|
3084
3084
|
if (!(3 === (3 & seen0))) {
|
|
3085
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_20().
|
|
3085
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_20().d8x_1);
|
|
3086
3086
|
}
|
|
3087
|
-
$this.
|
|
3088
|
-
$this.
|
|
3087
|
+
$this.f8x_1 = category;
|
|
3088
|
+
$this.g8x_1 = probability;
|
|
3089
3089
|
if (0 === (seen0 & 4))
|
|
3090
|
-
$this.
|
|
3090
|
+
$this.h8x_1 = null;
|
|
3091
3091
|
else
|
|
3092
|
-
$this.
|
|
3092
|
+
$this.h8x_1 = blocked;
|
|
3093
3093
|
return $this;
|
|
3094
3094
|
}
|
|
3095
3095
|
function GoogleSafetyRating_init_$Create$(seen0, category, probability, blocked, serializationConstructorMarker) {
|
|
@@ -3143,18 +3143,18 @@
|
|
|
3143
3143
|
return Unit_instance;
|
|
3144
3144
|
}
|
|
3145
3145
|
function GoogleLLMClient$executeStreaming$slambda$slambda$slambda(this$0, $this_streamFrameFlow, resultContinuation) {
|
|
3146
|
-
this.
|
|
3147
|
-
this.
|
|
3146
|
+
this.s8x_1 = this$0;
|
|
3147
|
+
this.t8x_1 = $this_streamFrameFlow;
|
|
3148
3148
|
CoroutineImpl.call(this, resultContinuation);
|
|
3149
3149
|
}
|
|
3150
|
-
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda$slambda).
|
|
3151
|
-
var tmp = this.
|
|
3150
|
+
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda$slambda).g7w = function (event, $completion) {
|
|
3151
|
+
var tmp = this.h7w(event, $completion);
|
|
3152
3152
|
tmp.z9_1 = Unit_instance;
|
|
3153
3153
|
tmp.aa_1 = null;
|
|
3154
3154
|
return tmp.fa();
|
|
3155
3155
|
};
|
|
3156
3156
|
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda$slambda).ra = function (p1, $completion) {
|
|
3157
|
-
return this.
|
|
3157
|
+
return this.g7w(p1 instanceof ServerSentEvent ? p1 : THROW_CCE(), $completion);
|
|
3158
3158
|
};
|
|
3159
3159
|
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda$slambda).fa = function () {
|
|
3160
3160
|
var suspendResult = this.z9_1;
|
|
@@ -3165,16 +3165,16 @@
|
|
|
3165
3165
|
case 0:
|
|
3166
3166
|
this.y9_1 = 11;
|
|
3167
3167
|
var tmp_0 = this;
|
|
3168
|
-
var this_0 = this.
|
|
3168
|
+
var this_0 = this.u8x_1;
|
|
3169
3169
|
var tmp_1;
|
|
3170
|
-
if (!(this_0.
|
|
3170
|
+
if (!(this_0.p62_1 === '[DONE]')) {
|
|
3171
3171
|
tmp_1 = this_0;
|
|
3172
3172
|
} else {
|
|
3173
3173
|
tmp_1 = null;
|
|
3174
3174
|
}
|
|
3175
3175
|
|
|
3176
3176
|
var tmp0_safe_receiver = tmp_1;
|
|
3177
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3177
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p62_1;
|
|
3178
3178
|
var tmp_2;
|
|
3179
3179
|
if (tmp1_safe_receiver == null) {
|
|
3180
3180
|
tmp_2 = null;
|
|
@@ -3187,57 +3187,57 @@
|
|
|
3187
3187
|
if (tmp2_safe_receiver == null) {
|
|
3188
3188
|
tmp_3 = null;
|
|
3189
3189
|
} else {
|
|
3190
|
-
var this_1 = this.
|
|
3190
|
+
var this_1 = this.s8x_1.a8z_1;
|
|
3191
3191
|
var this_2 = this_1.lz();
|
|
3192
3192
|
var this_3 = serializer(this_2, createKType(getKClass(GoogleResponse), arrayOf([]), false));
|
|
3193
3193
|
tmp_3 = this_1.hw(isInterface(this_3, KSerializer) ? this_3 : THROW_CCE(), tmp2_safe_receiver);
|
|
3194
3194
|
}
|
|
3195
3195
|
|
|
3196
|
-
tmp_0.
|
|
3197
|
-
if (this.
|
|
3198
|
-
this.
|
|
3196
|
+
tmp_0.v8x_1 = tmp_3;
|
|
3197
|
+
if (this.v8x_1 == null) {
|
|
3198
|
+
this.w8x_1 = null;
|
|
3199
3199
|
this.x9_1 = 10;
|
|
3200
3200
|
continue $sm;
|
|
3201
3201
|
} else {
|
|
3202
3202
|
var tmp_4 = this;
|
|
3203
|
-
tmp_4.
|
|
3204
|
-
this.
|
|
3203
|
+
tmp_4.x8x_1 = this.v8x_1;
|
|
3204
|
+
this.y8x_1 = this.x8x_1;
|
|
3205
3205
|
var tmp_5 = this;
|
|
3206
|
-
tmp_5.
|
|
3207
|
-
this.
|
|
3206
|
+
tmp_5.z8x_1 = this.y8x_1;
|
|
3207
|
+
this.a8y_1 = this.z8x_1;
|
|
3208
3208
|
var tmp_6 = this;
|
|
3209
|
-
var tmp0_safe_receiver_0 = this.
|
|
3209
|
+
var tmp0_safe_receiver_0 = this.a8y_1.y8s_1;
|
|
3210
3210
|
var tmp_7;
|
|
3211
3211
|
if (tmp0_safe_receiver_0 == null) {
|
|
3212
3212
|
tmp_7 = null;
|
|
3213
3213
|
} else {
|
|
3214
|
-
tmp_7 = Companion_getInstance().
|
|
3214
|
+
tmp_7 = Companion_getInstance().i45(this.s8x_1.z8y_1, tmp0_safe_receiver_0.o8t_1, tmp0_safe_receiver_0.k8t_1, tmp0_safe_receiver_0.l8t_1);
|
|
3215
3215
|
}
|
|
3216
|
-
tmp_6.
|
|
3217
|
-
this.
|
|
3218
|
-
if (this.
|
|
3219
|
-
this.
|
|
3216
|
+
tmp_6.b8y_1 = tmp_7;
|
|
3217
|
+
this.c8y_1 = firstOrNull(this.a8y_1.w8s_1);
|
|
3218
|
+
if (this.c8y_1 == null) {
|
|
3219
|
+
this.d8y_1 = null;
|
|
3220
3220
|
this.x9_1 = 9;
|
|
3221
3221
|
continue $sm;
|
|
3222
3222
|
} else {
|
|
3223
3223
|
var tmp_8 = this;
|
|
3224
|
-
tmp_8.
|
|
3225
|
-
this.
|
|
3224
|
+
tmp_8.e8y_1 = this.c8y_1;
|
|
3225
|
+
this.f8y_1 = this.e8y_1;
|
|
3226
3226
|
var tmp_9 = this;
|
|
3227
|
-
tmp_9.
|
|
3228
|
-
this.
|
|
3227
|
+
tmp_9.g8y_1 = this.f8y_1;
|
|
3228
|
+
this.h8y_1 = this.g8y_1;
|
|
3229
3229
|
var tmp_10 = this;
|
|
3230
|
-
var tmp0_safe_receiver_1 = this.
|
|
3231
|
-
tmp_10.
|
|
3232
|
-
if (this.
|
|
3233
|
-
this.
|
|
3230
|
+
var tmp0_safe_receiver_1 = this.h8y_1.s8t_1;
|
|
3231
|
+
tmp_10.i8y_1 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.t8u_1;
|
|
3232
|
+
if (this.i8y_1 == null) {
|
|
3233
|
+
this.j8y_1 = null;
|
|
3234
3234
|
this.x9_1 = 6;
|
|
3235
3235
|
continue $sm;
|
|
3236
3236
|
} else {
|
|
3237
3237
|
var tmp_11 = this;
|
|
3238
|
-
tmp_11.
|
|
3239
|
-
this.
|
|
3240
|
-
this.
|
|
3238
|
+
tmp_11.k8y_1 = this.i8y_1;
|
|
3239
|
+
this.l8y_1 = this.k8y_1;
|
|
3240
|
+
this.m8y_1 = this.l8y_1.p();
|
|
3241
3241
|
this.x9_1 = 1;
|
|
3242
3242
|
continue $sm;
|
|
3243
3243
|
}
|
|
@@ -3245,31 +3245,31 @@
|
|
|
3245
3245
|
}
|
|
3246
3246
|
|
|
3247
3247
|
case 1:
|
|
3248
|
-
if (!this.
|
|
3248
|
+
if (!this.m8y_1.q()) {
|
|
3249
3249
|
this.x9_1 = 5;
|
|
3250
3250
|
continue $sm;
|
|
3251
3251
|
}
|
|
3252
3252
|
|
|
3253
|
-
this.
|
|
3253
|
+
this.n8y_1 = this.m8y_1.r();
|
|
3254
3254
|
var tmp_12 = this;
|
|
3255
|
-
tmp_12.
|
|
3256
|
-
this.
|
|
3257
|
-
this.
|
|
3258
|
-
var tmp_13 = this.
|
|
3255
|
+
tmp_12.o8y_1 = this.n8y_1;
|
|
3256
|
+
this.p8y_1 = this.o8y_1;
|
|
3257
|
+
this.q8y_1 = this.p8y_1;
|
|
3258
|
+
var tmp_13 = this.q8y_1;
|
|
3259
3259
|
if (tmp_13 instanceof FunctionCall) {
|
|
3260
3260
|
this.x9_1 = 3;
|
|
3261
|
-
var tmp1_safe_receiver_0 = this.
|
|
3261
|
+
var tmp1_safe_receiver_0 = this.p8y_1.k8u_1.i8v_1;
|
|
3262
3262
|
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.toString();
|
|
3263
|
-
suspendResult = emitToolCall(this.
|
|
3263
|
+
suspendResult = emitToolCall(this.t8x_1, this.p8y_1.k8u_1.g8v_1, this.p8y_1.k8u_1.h8v_1, tmp2_elvis_lhs == null ? '{}' : tmp2_elvis_lhs, this);
|
|
3264
3264
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3265
3265
|
return suspendResult;
|
|
3266
3266
|
}
|
|
3267
3267
|
continue $sm;
|
|
3268
3268
|
} else {
|
|
3269
|
-
var tmp_14 = this.
|
|
3269
|
+
var tmp_14 = this.q8y_1;
|
|
3270
3270
|
if (tmp_14 instanceof Text_0) {
|
|
3271
3271
|
this.x9_1 = 2;
|
|
3272
|
-
suspendResult = emitAppend(this.
|
|
3272
|
+
suspendResult = emitAppend(this.t8x_1, this.p8y_1.y8t_1, this);
|
|
3273
3273
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3274
3274
|
return suspendResult;
|
|
3275
3275
|
}
|
|
@@ -3290,24 +3290,24 @@
|
|
|
3290
3290
|
this.x9_1 = 1;
|
|
3291
3291
|
continue $sm;
|
|
3292
3292
|
case 5:
|
|
3293
|
-
this.
|
|
3293
|
+
this.j8y_1 = Unit_instance;
|
|
3294
3294
|
this.x9_1 = 6;
|
|
3295
3295
|
continue $sm;
|
|
3296
3296
|
case 6:
|
|
3297
|
-
this.
|
|
3298
|
-
if (this.
|
|
3299
|
-
this.
|
|
3297
|
+
this.r8y_1 = this.h8y_1.t8t_1;
|
|
3298
|
+
if (this.r8y_1 == null) {
|
|
3299
|
+
this.s8y_1 = null;
|
|
3300
3300
|
this.x9_1 = 8;
|
|
3301
3301
|
continue $sm;
|
|
3302
3302
|
} else {
|
|
3303
3303
|
var tmp_15 = this;
|
|
3304
|
-
tmp_15.
|
|
3305
|
-
this.
|
|
3304
|
+
tmp_15.t8y_1 = this.r8y_1;
|
|
3305
|
+
this.u8y_1 = this.t8y_1;
|
|
3306
3306
|
var tmp_16 = this;
|
|
3307
|
-
tmp_16.
|
|
3308
|
-
this.
|
|
3307
|
+
tmp_16.v8y_1 = this.u8y_1;
|
|
3308
|
+
this.w8y_1 = this.v8y_1;
|
|
3309
3309
|
this.x9_1 = 7;
|
|
3310
|
-
suspendResult = emitEnd(this.
|
|
3310
|
+
suspendResult = emitEnd(this.t8x_1, this.w8y_1, this.b8y_1, this);
|
|
3311
3311
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3312
3312
|
return suspendResult;
|
|
3313
3313
|
}
|
|
@@ -3316,17 +3316,17 @@
|
|
|
3316
3316
|
|
|
3317
3317
|
case 7:
|
|
3318
3318
|
var tmp_17 = this;
|
|
3319
|
-
tmp_17.
|
|
3319
|
+
tmp_17.s8y_1 = Unit_instance;
|
|
3320
3320
|
this.x9_1 = 8;
|
|
3321
3321
|
continue $sm;
|
|
3322
3322
|
case 8:
|
|
3323
3323
|
var tmp_18 = this;
|
|
3324
|
-
tmp_18.
|
|
3324
|
+
tmp_18.d8y_1 = Unit_instance;
|
|
3325
3325
|
this.x9_1 = 9;
|
|
3326
3326
|
continue $sm;
|
|
3327
3327
|
case 9:
|
|
3328
3328
|
var tmp_19 = this;
|
|
3329
|
-
tmp_19.
|
|
3329
|
+
tmp_19.w8x_1 = Unit_instance;
|
|
3330
3330
|
this.x9_1 = 10;
|
|
3331
3331
|
continue $sm;
|
|
3332
3332
|
case 10:
|
|
@@ -3345,15 +3345,15 @@
|
|
|
3345
3345
|
}
|
|
3346
3346
|
while (true);
|
|
3347
3347
|
};
|
|
3348
|
-
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda$slambda).
|
|
3349
|
-
var i = new GoogleLLMClient$executeStreaming$slambda$slambda$slambda(this.
|
|
3350
|
-
i.
|
|
3348
|
+
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda$slambda).h7w = function (event, completion) {
|
|
3349
|
+
var i = new GoogleLLMClient$executeStreaming$slambda$slambda$slambda(this.s8x_1, this.t8x_1, completion);
|
|
3350
|
+
i.u8x_1 = event;
|
|
3351
3351
|
return i;
|
|
3352
3352
|
};
|
|
3353
3353
|
function GoogleLLMClient$executeStreaming$slambda$slambda$slambda_0(this$0, $this_streamFrameFlow, resultContinuation) {
|
|
3354
3354
|
var i = new GoogleLLMClient$executeStreaming$slambda$slambda$slambda(this$0, $this_streamFrameFlow, resultContinuation);
|
|
3355
3355
|
var l = function (event, $completion) {
|
|
3356
|
-
return i.
|
|
3356
|
+
return i.g7w(event, $completion);
|
|
3357
3357
|
};
|
|
3358
3358
|
l.$arity = 1;
|
|
3359
3359
|
return l;
|
|
@@ -3364,20 +3364,20 @@
|
|
|
3364
3364
|
};
|
|
3365
3365
|
}
|
|
3366
3366
|
function GoogleLLMClient$executeStreaming$slambda$lambda$lambda($this$headers) {
|
|
3367
|
-
$this$headers.
|
|
3368
|
-
$this$headers.
|
|
3367
|
+
$this$headers.s4y(HttpHeaders_getInstance().u58_1, 'no-cache');
|
|
3368
|
+
$this$headers.s4y(HttpHeaders_getInstance().v58_1, 'keep-alive');
|
|
3369
3369
|
return Unit_instance;
|
|
3370
3370
|
}
|
|
3371
3371
|
function GoogleLLMClient$executeStreaming$slambda$lambda_0($request) {
|
|
3372
3372
|
return function ($this$sse) {
|
|
3373
|
-
$this$sse.
|
|
3373
|
+
$this$sse.c65_1 = Companion_getInstance_0().r5c_1;
|
|
3374
3374
|
parameter($this$sse, 'alt', 'sse');
|
|
3375
|
-
accept($this$sse, Text_getInstance().
|
|
3375
|
+
accept($this$sse, Text_getInstance().z57_1);
|
|
3376
3376
|
headers(GoogleLLMClient$executeStreaming$slambda$lambda$lambda);
|
|
3377
3377
|
// Inline function 'io.ktor.client.request.setBody' call
|
|
3378
3378
|
var body = $request;
|
|
3379
3379
|
if (body == null) {
|
|
3380
|
-
$this$sse.
|
|
3380
|
+
$this$sse.e65_1 = NullBody_instance;
|
|
3381
3381
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
3382
3382
|
var tmp = getKClass(GoogleRequest);
|
|
3383
3383
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
@@ -3396,13 +3396,13 @@
|
|
|
3396
3396
|
}
|
|
3397
3397
|
var tmp$ret$0 = tmp_0;
|
|
3398
3398
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
3399
|
-
$this$sse.
|
|
3399
|
+
$this$sse.o6b(tmp$ret$1);
|
|
3400
3400
|
} else {
|
|
3401
3401
|
if (body instanceof OutgoingContent) {
|
|
3402
|
-
$this$sse.
|
|
3403
|
-
$this$sse.
|
|
3402
|
+
$this$sse.e65_1 = body;
|
|
3403
|
+
$this$sse.o6b(null);
|
|
3404
3404
|
} else {
|
|
3405
|
-
$this$sse.
|
|
3405
|
+
$this$sse.e65_1 = body;
|
|
3406
3406
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
3407
3407
|
var tmp_2 = getKClass(GoogleRequest);
|
|
3408
3408
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
@@ -3421,25 +3421,25 @@
|
|
|
3421
3421
|
}
|
|
3422
3422
|
var tmp$ret$2 = tmp_3;
|
|
3423
3423
|
var tmp$ret$3 = new TypeInfo(tmp_2, tmp$ret$2);
|
|
3424
|
-
$this$sse.
|
|
3424
|
+
$this$sse.o6b(tmp$ret$3);
|
|
3425
3425
|
}
|
|
3426
3426
|
}
|
|
3427
3427
|
return Unit_instance;
|
|
3428
3428
|
};
|
|
3429
3429
|
}
|
|
3430
3430
|
function GoogleLLMClient$executeStreaming$slambda$slambda(this$0, $this_streamFrameFlow, resultContinuation) {
|
|
3431
|
-
this.
|
|
3432
|
-
this.
|
|
3431
|
+
this.k8z_1 = this$0;
|
|
3432
|
+
this.l8z_1 = $this_streamFrameFlow;
|
|
3433
3433
|
CoroutineImpl.call(this, resultContinuation);
|
|
3434
3434
|
}
|
|
3435
|
-
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda).
|
|
3436
|
-
var tmp = this.
|
|
3435
|
+
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda).s7x = function ($this$sse, $completion) {
|
|
3436
|
+
var tmp = this.t7x($this$sse, $completion);
|
|
3437
3437
|
tmp.z9_1 = Unit_instance;
|
|
3438
3438
|
tmp.aa_1 = null;
|
|
3439
3439
|
return tmp.fa();
|
|
3440
3440
|
};
|
|
3441
3441
|
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda).ra = function (p1, $completion) {
|
|
3442
|
-
return this.
|
|
3442
|
+
return this.s7x(p1 instanceof ClientSSESession ? p1 : THROW_CCE(), $completion);
|
|
3443
3443
|
};
|
|
3444
3444
|
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda).fa = function () {
|
|
3445
3445
|
var suspendResult = this.z9_1;
|
|
@@ -3450,8 +3450,8 @@
|
|
|
3450
3450
|
case 0:
|
|
3451
3451
|
this.y9_1 = 2;
|
|
3452
3452
|
this.x9_1 = 1;
|
|
3453
|
-
var tmp_0 = this.
|
|
3454
|
-
var tmp_1 = GoogleLLMClient$executeStreaming$slambda$slambda$slambda_0(this.
|
|
3453
|
+
var tmp_0 = this.m8z_1.d6z();
|
|
3454
|
+
var tmp_1 = GoogleLLMClient$executeStreaming$slambda$slambda$slambda_0(this.k8z_1, this.l8z_1, null);
|
|
3455
3455
|
suspendResult = tmp_0.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
3456
3456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3457
3457
|
return suspendResult;
|
|
@@ -3474,22 +3474,22 @@
|
|
|
3474
3474
|
}
|
|
3475
3475
|
while (true);
|
|
3476
3476
|
};
|
|
3477
|
-
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda).
|
|
3478
|
-
var i = new GoogleLLMClient$executeStreaming$slambda$slambda(this.
|
|
3479
|
-
i.
|
|
3477
|
+
protoOf(GoogleLLMClient$executeStreaming$slambda$slambda).t7x = function ($this$sse, completion) {
|
|
3478
|
+
var i = new GoogleLLMClient$executeStreaming$slambda$slambda(this.k8z_1, this.l8z_1, completion);
|
|
3479
|
+
i.m8z_1 = $this$sse;
|
|
3480
3480
|
return i;
|
|
3481
3481
|
};
|
|
3482
3482
|
function GoogleLLMClient$executeStreaming$slambda$slambda_0(this$0, $this_streamFrameFlow, resultContinuation) {
|
|
3483
3483
|
var i = new GoogleLLMClient$executeStreaming$slambda$slambda(this$0, $this_streamFrameFlow, resultContinuation);
|
|
3484
3484
|
var l = function ($this$sse, $completion) {
|
|
3485
|
-
return i.
|
|
3485
|
+
return i.s7x($this$sse, $completion);
|
|
3486
3486
|
};
|
|
3487
3487
|
l.$arity = 1;
|
|
3488
3488
|
return l;
|
|
3489
3489
|
}
|
|
3490
3490
|
function GoogleLLMClient$executeStreaming$slambda$lambda_1($response, $e) {
|
|
3491
3491
|
return function () {
|
|
3492
|
-
return 'Error from GoogleAI API: ' + $response.
|
|
3492
|
+
return 'Error from GoogleAI API: ' + $response.f5i().toString() + ': ' + $e.c75_1;
|
|
3493
3493
|
};
|
|
3494
3494
|
}
|
|
3495
3495
|
function GoogleLLMClient$executeStreaming$slambda$lambda_2($e) {
|
|
@@ -3499,17 +3499,17 @@
|
|
|
3499
3499
|
}
|
|
3500
3500
|
function GoogleLLMClient$getGoogleResponse$slambda$lambda($response, $errorBody) {
|
|
3501
3501
|
return function () {
|
|
3502
|
-
return 'Error from GoogleAI API: ' + $response.
|
|
3502
|
+
return 'Error from GoogleAI API: ' + $response.f5i().toString() + ': ' + $errorBody;
|
|
3503
3503
|
};
|
|
3504
3504
|
}
|
|
3505
3505
|
function Companion_20() {
|
|
3506
3506
|
Companion_instance_20 = this;
|
|
3507
3507
|
var tmp = this;
|
|
3508
3508
|
var tmp_0 = KotlinLogging_instance;
|
|
3509
|
-
tmp.
|
|
3510
|
-
this.
|
|
3511
|
-
this.
|
|
3512
|
-
this.
|
|
3509
|
+
tmp.n8z_1 = tmp_0.f3i(GoogleLLMClient$Companion$logger$lambda);
|
|
3510
|
+
this.o8z_1 = 'v1beta/models';
|
|
3511
|
+
this.p8z_1 = 'generateContent';
|
|
3512
|
+
this.q8z_1 = 'streamGenerateContent';
|
|
3513
3513
|
var tmp0 = get_RegisteredBasicJsonSchemaGenerators();
|
|
3514
3514
|
var tmp2 = Google_getInstance();
|
|
3515
3515
|
// Inline function 'kotlin.collections.set' call
|
|
@@ -3539,22 +3539,22 @@
|
|
|
3539
3539
|
// Inline function 'kotlin.apply' call
|
|
3540
3540
|
var this_0 = ArrayList_init_$Create$();
|
|
3541
3541
|
// Inline function 'kotlin.collections.forEach' call
|
|
3542
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
3542
|
+
var _iterator__ex2g4s = _this__u8e3s4.j47_1.p();
|
|
3543
3543
|
while (_iterator__ex2g4s.q()) {
|
|
3544
3544
|
var element = _iterator__ex2g4s.r();
|
|
3545
3545
|
if (element instanceof Text) {
|
|
3546
|
-
this_0.h(new Text_0(element.
|
|
3546
|
+
this_0.h(new Text_0(element.c46_1));
|
|
3547
3547
|
} else {
|
|
3548
3548
|
if (element instanceof Image) {
|
|
3549
3549
|
// Inline function 'kotlin.require' call
|
|
3550
|
-
if (!model.
|
|
3551
|
-
var message = 'Model ' + model.
|
|
3550
|
+
if (!model.i3h_1.w(Image_getInstance())) {
|
|
3551
|
+
var message = 'Model ' + model.h3h_1 + ' does not support images';
|
|
3552
3552
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3553
3553
|
}
|
|
3554
|
-
var content = element.
|
|
3554
|
+
var content = element.g46_1;
|
|
3555
3555
|
var tmp;
|
|
3556
3556
|
if (isInterface(content, Binary)) {
|
|
3557
|
-
tmp = new Blob(element.
|
|
3557
|
+
tmp = new Blob(element.i46_1, content.z45());
|
|
3558
3558
|
} else {
|
|
3559
3559
|
throw IllegalArgumentException_init_$Create$('Unsupported image attachment content: ' + toString(getKClassFromExpression(content)));
|
|
3560
3560
|
}
|
|
@@ -3563,14 +3563,14 @@
|
|
|
3563
3563
|
} else {
|
|
3564
3564
|
if (element instanceof Audio) {
|
|
3565
3565
|
// Inline function 'kotlin.require' call
|
|
3566
|
-
if (!model.
|
|
3567
|
-
var message_0 = 'Model ' + model.
|
|
3566
|
+
if (!model.i3h_1.w(Audio_getInstance())) {
|
|
3567
|
+
var message_0 = 'Model ' + model.h3h_1 + ' does not support audio';
|
|
3568
3568
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3569
3569
|
}
|
|
3570
|
-
var content_0 = element.
|
|
3570
|
+
var content_0 = element.u46_1;
|
|
3571
3571
|
var tmp_0;
|
|
3572
3572
|
if (isInterface(content_0, Binary)) {
|
|
3573
|
-
tmp_0 = new Blob(element.
|
|
3573
|
+
tmp_0 = new Blob(element.w46_1, content_0.z45());
|
|
3574
3574
|
} else {
|
|
3575
3575
|
throw IllegalArgumentException_init_$Create$('Unsupported audio attachment content: ' + toString(getKClassFromExpression(content_0)));
|
|
3576
3576
|
}
|
|
@@ -3579,14 +3579,14 @@
|
|
|
3579
3579
|
} else {
|
|
3580
3580
|
if (element instanceof File) {
|
|
3581
3581
|
// Inline function 'kotlin.require' call
|
|
3582
|
-
if (!model.
|
|
3583
|
-
var message_1 = 'Model ' + model.
|
|
3582
|
+
if (!model.i3h_1.w(Document_getInstance())) {
|
|
3583
|
+
var message_1 = 'Model ' + model.h3h_1 + ' does not support documents';
|
|
3584
3584
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
3585
3585
|
}
|
|
3586
|
-
var content_1 = element.
|
|
3586
|
+
var content_1 = element.b47_1;
|
|
3587
3587
|
var tmp_1;
|
|
3588
3588
|
if (isInterface(content_1, Binary)) {
|
|
3589
|
-
tmp_1 = new Blob(element.
|
|
3589
|
+
tmp_1 = new Blob(element.d47_1, content_1.z45());
|
|
3590
3590
|
} else {
|
|
3591
3591
|
throw IllegalArgumentException_init_$Create$('Unsupported file attachment content: ' + toString(getKClassFromExpression(content_1)));
|
|
3592
3592
|
}
|
|
@@ -3595,14 +3595,14 @@
|
|
|
3595
3595
|
} else {
|
|
3596
3596
|
if (element instanceof Video) {
|
|
3597
3597
|
// Inline function 'kotlin.require' call
|
|
3598
|
-
if (!model.
|
|
3599
|
-
var message_2 = 'Model ' + model.
|
|
3598
|
+
if (!model.i3h_1.w(Video_getInstance())) {
|
|
3599
|
+
var message_2 = 'Model ' + model.h3h_1 + ' does not support video';
|
|
3600
3600
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
3601
3601
|
}
|
|
3602
|
-
var content_2 = element.
|
|
3602
|
+
var content_2 = element.n46_1;
|
|
3603
3603
|
var tmp_2;
|
|
3604
3604
|
if (isInterface(content_2, Binary)) {
|
|
3605
|
-
tmp_2 = new Blob(element.
|
|
3605
|
+
tmp_2 = new Blob(element.p46_1, content_2.z45());
|
|
3606
3606
|
} else {
|
|
3607
3607
|
throw IllegalArgumentException_init_$Create$('Unsupported video attachment content: ' + toString(getKClassFromExpression(content_2)));
|
|
3608
3608
|
}
|
|
@@ -3622,14 +3622,14 @@
|
|
|
3622
3622
|
function buildGoogleParamType($this, param) {
|
|
3623
3623
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
3624
3624
|
var builder = new JsonObjectBuilder();
|
|
3625
|
-
builder.g1k('description', JsonPrimitive(param.
|
|
3626
|
-
buildGoogleParamType$_anonymous_$putType_f6ydoy(builder, param.
|
|
3625
|
+
builder.g1k('description', JsonPrimitive(param.b7y_1));
|
|
3626
|
+
buildGoogleParamType$_anonymous_$putType_f6ydoy(builder, param.c7y_1);
|
|
3627
3627
|
return builder.s1i();
|
|
3628
3628
|
}
|
|
3629
3629
|
function processGoogleCandidate($this, candidate, metaInfo) {
|
|
3630
|
-
var tmp0_safe_receiver = candidate.
|
|
3630
|
+
var tmp0_safe_receiver = candidate.s8t_1;
|
|
3631
3631
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3632
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3632
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8u_1;
|
|
3633
3633
|
var parts = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3634
3634
|
// Inline function 'kotlin.collections.map' call
|
|
3635
3635
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3639,12 +3639,12 @@
|
|
|
3639
3639
|
var item = _iterator__ex2g4s.r();
|
|
3640
3640
|
var tmp;
|
|
3641
3641
|
if (item instanceof Text_0) {
|
|
3642
|
-
var tmp1_content = item.
|
|
3643
|
-
var tmp2_finishReason = candidate.
|
|
3642
|
+
var tmp1_content = item.y8t_1;
|
|
3643
|
+
var tmp2_finishReason = candidate.t8t_1;
|
|
3644
3644
|
tmp = Assistant_init_$Create$(tmp1_content, metaInfo, tmp2_finishReason);
|
|
3645
3645
|
} else {
|
|
3646
3646
|
if (item instanceof FunctionCall) {
|
|
3647
|
-
tmp = Call_init_$Create$(Companion_getInstance_1().et().toString(), item.
|
|
3647
|
+
tmp = Call_init_$Create$(Companion_getInstance_1().et().toString(), item.k8u_1.h8v_1, toString_0(item.k8u_1.i8v_1), metaInfo);
|
|
3648
3648
|
} else {
|
|
3649
3649
|
var message = 'Not supported part type: ' + toString(item);
|
|
3650
3650
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -3692,7 +3692,7 @@
|
|
|
3692
3692
|
tmp_0 = destination_0;
|
|
3693
3693
|
} else {
|
|
3694
3694
|
if (responses.m()) {
|
|
3695
|
-
var tmp1_finishReason = candidate.
|
|
3695
|
+
var tmp1_finishReason = candidate.t8t_1;
|
|
3696
3696
|
tmp_0 = listOf(Assistant_init_$Create$('', metaInfo, tmp1_finishReason));
|
|
3697
3697
|
} else {
|
|
3698
3698
|
tmp_0 = responses;
|
|
@@ -3701,22 +3701,22 @@
|
|
|
3701
3701
|
return tmp_0;
|
|
3702
3702
|
}
|
|
3703
3703
|
function processGoogleResponse($this, response) {
|
|
3704
|
-
if (response.
|
|
3705
|
-
var tmp = Companion_getInstance_23().
|
|
3706
|
-
tmp.
|
|
3704
|
+
if (response.w8s_1.m()) {
|
|
3705
|
+
var tmp = Companion_getInstance_23().n8z_1;
|
|
3706
|
+
tmp.w3h(GoogleLLMClient$processGoogleResponse$lambda);
|
|
3707
3707
|
// Inline function 'kotlin.error' call
|
|
3708
3708
|
var message = 'Empty candidates in Gemini response';
|
|
3709
3709
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3710
3710
|
}
|
|
3711
|
-
var tmp0_safe_receiver = response.
|
|
3712
|
-
var inputTokensCount = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3713
|
-
var tmp1_safe_receiver = response.
|
|
3714
|
-
var outputTokensCount = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3715
|
-
var tmp2_safe_receiver = response.
|
|
3716
|
-
var totalTokensCount = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
3717
|
-
var metaInfo = Companion_getInstance().
|
|
3711
|
+
var tmp0_safe_receiver = response.y8s_1;
|
|
3712
|
+
var inputTokensCount = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k8t_1;
|
|
3713
|
+
var tmp1_safe_receiver = response.y8s_1;
|
|
3714
|
+
var outputTokensCount = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l8t_1;
|
|
3715
|
+
var tmp2_safe_receiver = response.y8s_1;
|
|
3716
|
+
var totalTokensCount = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.o8t_1;
|
|
3717
|
+
var metaInfo = Companion_getInstance().i45($this.z8y_1, totalTokensCount, inputTokensCount, outputTokensCount);
|
|
3718
3718
|
// Inline function 'kotlin.collections.map' call
|
|
3719
|
-
var this_0 = response.
|
|
3719
|
+
var this_0 = response.w8s_1;
|
|
3720
3720
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3721
3721
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3722
3722
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -3728,13 +3728,13 @@
|
|
|
3728
3728
|
return destination;
|
|
3729
3729
|
}
|
|
3730
3730
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
3731
|
-
this.
|
|
3731
|
+
this.e90_1 = function_0;
|
|
3732
3732
|
}
|
|
3733
3733
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
|
|
3734
|
-
return this.
|
|
3734
|
+
return this.e90_1(value, $completion);
|
|
3735
3735
|
};
|
|
3736
3736
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
|
|
3737
|
-
return this.
|
|
3737
|
+
return this.e90_1;
|
|
3738
3738
|
};
|
|
3739
3739
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
3740
3740
|
var tmp;
|
|
@@ -3785,7 +3785,7 @@
|
|
|
3785
3785
|
put(_this__u8e3s4, 'type', 'array');
|
|
3786
3786
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
3787
3787
|
var builder = new JsonObjectBuilder();
|
|
3788
|
-
buildGoogleParamType$_anonymous_$putType_f6ydoy(builder, type.
|
|
3788
|
+
buildGoogleParamType$_anonymous_$putType_f6ydoy(builder, type.q7y_1);
|
|
3789
3789
|
var tmp$ret$1 = builder.s1i();
|
|
3790
3790
|
_this__u8e3s4.g1k('items', tmp$ret$1);
|
|
3791
3791
|
} else {
|
|
@@ -3794,15 +3794,15 @@
|
|
|
3794
3794
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
3795
3795
|
var builder_0 = new JsonObjectBuilder();
|
|
3796
3796
|
// Inline function 'kotlin.collections.forEach' call
|
|
3797
|
-
var _iterator__ex2g4s = type.
|
|
3797
|
+
var _iterator__ex2g4s = type.m7y_1.p();
|
|
3798
3798
|
while (_iterator__ex2g4s.q()) {
|
|
3799
3799
|
var element = _iterator__ex2g4s.r();
|
|
3800
3800
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
3801
3801
|
var builder_1 = new JsonObjectBuilder();
|
|
3802
|
-
buildGoogleParamType$_anonymous_$putType_f6ydoy(builder_1, element.
|
|
3803
|
-
put(builder_1, 'description', element.
|
|
3802
|
+
buildGoogleParamType$_anonymous_$putType_f6ydoy(builder_1, element.c7y_1);
|
|
3803
|
+
put(builder_1, 'description', element.b7y_1);
|
|
3804
3804
|
var tmp$ret$3 = builder_1.s1i();
|
|
3805
|
-
builder_0.g1k(element.
|
|
3805
|
+
builder_0.g1k(element.a7y_1, tmp$ret$3);
|
|
3806
3806
|
}
|
|
3807
3807
|
var tmp$ret$7 = builder_0.s1i();
|
|
3808
3808
|
_this__u8e3s4.g1k('properties', tmp$ret$7);
|
|
@@ -3825,34 +3825,34 @@
|
|
|
3825
3825
|
}
|
|
3826
3826
|
function GoogleLLMClient$httpClient$lambda$lambda(this$0) {
|
|
3827
3827
|
return function ($this$defaultRequest) {
|
|
3828
|
-
$this$defaultRequest.
|
|
3829
|
-
$this$defaultRequest.
|
|
3830
|
-
contentType($this$defaultRequest, Application_getInstance().
|
|
3828
|
+
$this$defaultRequest.u6f(this$0.y8y_1.f90_1);
|
|
3829
|
+
$this$defaultRequest.o6f_1.b5g_1.s4y('key', this$0.x8y_1);
|
|
3830
|
+
contentType($this$defaultRequest, Application_getInstance().m56_1);
|
|
3831
3831
|
return Unit_instance;
|
|
3832
3832
|
};
|
|
3833
3833
|
}
|
|
3834
3834
|
function GoogleLLMClient$httpClient$lambda$lambda_0(this$0) {
|
|
3835
3835
|
return function ($this$install) {
|
|
3836
|
-
json($this$install, this$0.
|
|
3836
|
+
json($this$install, this$0.a8z_1);
|
|
3837
3837
|
return Unit_instance;
|
|
3838
3838
|
};
|
|
3839
3839
|
}
|
|
3840
3840
|
function GoogleLLMClient$httpClient$lambda$lambda_1(this$0) {
|
|
3841
3841
|
return function ($this$install) {
|
|
3842
|
-
$this$install.
|
|
3843
|
-
$this$install.
|
|
3844
|
-
$this$install.
|
|
3842
|
+
$this$install.l6u(this$0.y8y_1.g90_1.u4e_1);
|
|
3843
|
+
$this$install.m6u(this$0.y8y_1.g90_1.v4e_1);
|
|
3844
|
+
$this$install.n6u(this$0.y8y_1.g90_1.w4e_1);
|
|
3845
3845
|
return Unit_instance;
|
|
3846
3846
|
};
|
|
3847
3847
|
}
|
|
3848
3848
|
function GoogleLLMClient$httpClient$lambda(this$0) {
|
|
3849
3849
|
return function ($this$config) {
|
|
3850
3850
|
defaultRequest($this$config, GoogleLLMClient$httpClient$lambda$lambda(this$0));
|
|
3851
|
-
$this$config.
|
|
3851
|
+
$this$config.w65(get_SSE());
|
|
3852
3852
|
var tmp = get_ContentNegotiation();
|
|
3853
|
-
$this$config.
|
|
3853
|
+
$this$config.j66(tmp, GoogleLLMClient$httpClient$lambda$lambda_0(this$0));
|
|
3854
3854
|
var tmp_0 = get_HttpTimeout();
|
|
3855
|
-
$this$config.
|
|
3855
|
+
$this$config.j66(tmp_0, GoogleLLMClient$httpClient$lambda$lambda_1(this$0));
|
|
3856
3856
|
return Unit_instance;
|
|
3857
3857
|
};
|
|
3858
3858
|
}
|
|
@@ -3862,19 +3862,19 @@
|
|
|
3862
3862
|
};
|
|
3863
3863
|
}
|
|
3864
3864
|
function GoogleLLMClient$executeStreaming$slambda($model, this$0, $prompt, resultContinuation) {
|
|
3865
|
-
this.
|
|
3866
|
-
this.
|
|
3867
|
-
this.
|
|
3865
|
+
this.p90_1 = $model;
|
|
3866
|
+
this.q90_1 = this$0;
|
|
3867
|
+
this.r90_1 = $prompt;
|
|
3868
3868
|
CoroutineImpl.call(this, resultContinuation);
|
|
3869
3869
|
}
|
|
3870
|
-
protoOf(GoogleLLMClient$executeStreaming$slambda).
|
|
3871
|
-
var tmp = this.
|
|
3870
|
+
protoOf(GoogleLLMClient$executeStreaming$slambda).e4d = function ($this$streamFrameFlow, $completion) {
|
|
3871
|
+
var tmp = this.f4d($this$streamFrameFlow, $completion);
|
|
3872
3872
|
tmp.z9_1 = Unit_instance;
|
|
3873
3873
|
tmp.aa_1 = null;
|
|
3874
3874
|
return tmp.fa();
|
|
3875
3875
|
};
|
|
3876
3876
|
protoOf(GoogleLLMClient$executeStreaming$slambda).ra = function (p1, $completion) {
|
|
3877
|
-
return this.
|
|
3877
|
+
return this.e4d((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
3878
3878
|
};
|
|
3879
3879
|
protoOf(GoogleLLMClient$executeStreaming$slambda).fa = function () {
|
|
3880
3880
|
var suspendResult = this.z9_1;
|
|
@@ -3884,19 +3884,19 @@
|
|
|
3884
3884
|
switch (tmp) {
|
|
3885
3885
|
case 0:
|
|
3886
3886
|
this.y9_1 = 4;
|
|
3887
|
-
var tmp_0 = Companion_getInstance_23().
|
|
3888
|
-
tmp_0.
|
|
3889
|
-
if (!this.
|
|
3890
|
-
var message = 'Model ' + this.
|
|
3887
|
+
var tmp_0 = Companion_getInstance_23().n8z_1;
|
|
3888
|
+
tmp_0.t3h(GoogleLLMClient$executeStreaming$slambda$lambda(this.r90_1, this.p90_1));
|
|
3889
|
+
if (!this.p90_1.i3h_1.w(Completion_getInstance())) {
|
|
3890
|
+
var message = 'Model ' + this.p90_1.h3h_1 + ' does not support chat completions';
|
|
3891
3891
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3892
3892
|
}
|
|
3893
3893
|
|
|
3894
|
-
this.
|
|
3894
|
+
this.t90_1 = this.q90_1.v90(this.r90_1, this.p90_1, emptyList());
|
|
3895
3895
|
this.y9_1 = 2;
|
|
3896
3896
|
this.x9_1 = 1;
|
|
3897
|
-
var tmp_1 = 'v1beta/models/' + this.
|
|
3898
|
-
var tmp_2 = GoogleLLMClient$executeStreaming$slambda$lambda_0(this.
|
|
3899
|
-
suspendResult = sse(this.
|
|
3897
|
+
var tmp_1 = 'v1beta/models/' + this.p90_1.h3h_1 + ':streamGenerateContent';
|
|
3898
|
+
var tmp_2 = GoogleLLMClient$executeStreaming$slambda$lambda_0(this.t90_1);
|
|
3899
|
+
suspendResult = sse(this.q90_1.b8z_1, tmp_1, tmp_2, VOID, VOID, VOID, GoogleLLMClient$executeStreaming$slambda$slambda_0(this.q90_1, this.s90_1, null), this);
|
|
3900
3900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3901
3901
|
return suspendResult;
|
|
3902
3902
|
}
|
|
@@ -3904,7 +3904,7 @@
|
|
|
3904
3904
|
continue $sm;
|
|
3905
3905
|
case 1:
|
|
3906
3906
|
var tmp_3 = this;
|
|
3907
|
-
tmp_3.
|
|
3907
|
+
tmp_3.u90_1 = Unit_instance;
|
|
3908
3908
|
this.y9_1 = 4;
|
|
3909
3909
|
this.x9_1 = 3;
|
|
3910
3910
|
continue $sm;
|
|
@@ -3914,17 +3914,17 @@
|
|
|
3914
3914
|
if (tmp_4 instanceof SSEClientException) {
|
|
3915
3915
|
var e = this.aa_1;
|
|
3916
3916
|
var tmp_5 = this;
|
|
3917
|
-
var tmp0_safe_receiver = e.
|
|
3917
|
+
var tmp0_safe_receiver = e.a75_1;
|
|
3918
3918
|
var tmp_6;
|
|
3919
3919
|
if (tmp0_safe_receiver == null) {
|
|
3920
3920
|
tmp_6 = null;
|
|
3921
3921
|
} else {
|
|
3922
|
-
var tmp_7 = Companion_getInstance_23().
|
|
3923
|
-
tmp_7.
|
|
3924
|
-
var message_0 = 'Error from GoogleAI API: ' + tmp0_safe_receiver.
|
|
3922
|
+
var tmp_7 = Companion_getInstance_23().n8z_1;
|
|
3923
|
+
tmp_7.w3h(GoogleLLMClient$executeStreaming$slambda$lambda_1(tmp0_safe_receiver, e));
|
|
3924
|
+
var message_0 = 'Error from GoogleAI API: ' + tmp0_safe_receiver.f5i().toString() + ': ' + e.c75_1;
|
|
3925
3925
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3926
3926
|
}
|
|
3927
|
-
tmp_5.
|
|
3927
|
+
tmp_5.u90_1 = tmp_6;
|
|
3928
3928
|
this.x9_1 = 3;
|
|
3929
3929
|
continue $sm;
|
|
3930
3930
|
} else {
|
|
@@ -3932,8 +3932,8 @@
|
|
|
3932
3932
|
if (tmp_8 instanceof Exception) {
|
|
3933
3933
|
var e_0 = this.aa_1;
|
|
3934
3934
|
var tmp_9 = this;
|
|
3935
|
-
var tmp_10 = Companion_getInstance_23().
|
|
3936
|
-
tmp_10.
|
|
3935
|
+
var tmp_10 = Companion_getInstance_23().n8z_1;
|
|
3936
|
+
tmp_10.w3h(GoogleLLMClient$executeStreaming$slambda$lambda_2(e_0));
|
|
3937
3937
|
var tmp1_elvis_lhs = e_0.message;
|
|
3938
3938
|
var message_1 = tmp1_elvis_lhs == null ? 'Unknown error during streaming' : tmp1_elvis_lhs;
|
|
3939
3939
|
throw IllegalStateException_init_$Create$(toString(message_1));
|
|
@@ -3959,33 +3959,33 @@
|
|
|
3959
3959
|
}
|
|
3960
3960
|
while (true);
|
|
3961
3961
|
};
|
|
3962
|
-
protoOf(GoogleLLMClient$executeStreaming$slambda).
|
|
3963
|
-
var i = new GoogleLLMClient$executeStreaming$slambda(this.
|
|
3964
|
-
i.
|
|
3962
|
+
protoOf(GoogleLLMClient$executeStreaming$slambda).f4d = function ($this$streamFrameFlow, completion) {
|
|
3963
|
+
var i = new GoogleLLMClient$executeStreaming$slambda(this.p90_1, this.q90_1, this.r90_1, completion);
|
|
3964
|
+
i.s90_1 = $this$streamFrameFlow;
|
|
3965
3965
|
return i;
|
|
3966
3966
|
};
|
|
3967
3967
|
function GoogleLLMClient$executeStreaming$slambda_0($model, this$0, $prompt, resultContinuation) {
|
|
3968
3968
|
var i = new GoogleLLMClient$executeStreaming$slambda($model, this$0, $prompt, resultContinuation);
|
|
3969
3969
|
var l = function ($this$streamFrameFlow, $completion) {
|
|
3970
|
-
return i.
|
|
3970
|
+
return i.e4d($this$streamFrameFlow, $completion);
|
|
3971
3971
|
};
|
|
3972
3972
|
l.$arity = 1;
|
|
3973
3973
|
return l;
|
|
3974
3974
|
}
|
|
3975
3975
|
function GoogleLLMClient$getGoogleResponse$slambda(this$0, $model, $request, resultContinuation) {
|
|
3976
|
-
this.
|
|
3977
|
-
this.
|
|
3978
|
-
this.
|
|
3976
|
+
this.e91_1 = this$0;
|
|
3977
|
+
this.f91_1 = $model;
|
|
3978
|
+
this.g91_1 = $request;
|
|
3979
3979
|
CoroutineImpl.call(this, resultContinuation);
|
|
3980
3980
|
}
|
|
3981
|
-
protoOf(GoogleLLMClient$getGoogleResponse$slambda).
|
|
3981
|
+
protoOf(GoogleLLMClient$getGoogleResponse$slambda).x91 = function ($this$withContext, $completion) {
|
|
3982
3982
|
var tmp = this.y2q($this$withContext, $completion);
|
|
3983
3983
|
tmp.z9_1 = Unit_instance;
|
|
3984
3984
|
tmp.aa_1 = null;
|
|
3985
3985
|
return tmp.fa();
|
|
3986
3986
|
};
|
|
3987
3987
|
protoOf(GoogleLLMClient$getGoogleResponse$slambda).ra = function (p1, $completion) {
|
|
3988
|
-
return this.
|
|
3988
|
+
return this.x91((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3989
3989
|
};
|
|
3990
3990
|
protoOf(GoogleLLMClient$getGoogleResponse$slambda).fa = function () {
|
|
3991
3991
|
var suspendResult = this.z9_1;
|
|
@@ -3996,21 +3996,21 @@
|
|
|
3996
3996
|
case 0:
|
|
3997
3997
|
this.y9_1 = 5;
|
|
3998
3998
|
var tmp_0 = this;
|
|
3999
|
-
tmp_0.
|
|
3999
|
+
tmp_0.i91_1 = this.e91_1.b8z_1;
|
|
4000
4000
|
var tmp_1 = this;
|
|
4001
|
-
tmp_1.
|
|
4002
|
-
this.
|
|
4003
|
-
this.
|
|
4001
|
+
tmp_1.j91_1 = 'v1beta/models/' + this.f91_1.h3h_1 + ':generateContent';
|
|
4002
|
+
this.k91_1 = this.i91_1;
|
|
4003
|
+
this.l91_1 = this.j91_1;
|
|
4004
4004
|
var tmp_2 = this;
|
|
4005
|
-
tmp_2.
|
|
4006
|
-
this.
|
|
4007
|
-
this.
|
|
4008
|
-
this.
|
|
4009
|
-
var $this$post = this.
|
|
4010
|
-
url($this$post, this.
|
|
4011
|
-
var body = this.
|
|
4005
|
+
tmp_2.m91_1 = this.k91_1;
|
|
4006
|
+
this.n91_1 = this.m91_1;
|
|
4007
|
+
this.o91_1 = new HttpRequestBuilder();
|
|
4008
|
+
this.o91_1.c65_1 = Companion_getInstance_0().r5c_1;
|
|
4009
|
+
var $this$post = this.o91_1;
|
|
4010
|
+
url($this$post, this.l91_1);
|
|
4011
|
+
var body = this.g91_1;
|
|
4012
4012
|
if (body == null) {
|
|
4013
|
-
$this$post.
|
|
4013
|
+
$this$post.e65_1 = NullBody_instance;
|
|
4014
4014
|
var tmp_3 = getKClass(GoogleRequest);
|
|
4015
4015
|
var tmp_4;
|
|
4016
4016
|
try {
|
|
@@ -4025,13 +4025,13 @@
|
|
|
4025
4025
|
}
|
|
4026
4026
|
tmp_4 = tmp_5;
|
|
4027
4027
|
}
|
|
4028
|
-
$this$post.
|
|
4028
|
+
$this$post.o6b(new TypeInfo(tmp_3, tmp_4));
|
|
4029
4029
|
} else {
|
|
4030
4030
|
if (body instanceof OutgoingContent) {
|
|
4031
|
-
$this$post.
|
|
4032
|
-
$this$post.
|
|
4031
|
+
$this$post.e65_1 = body;
|
|
4032
|
+
$this$post.o6b(null);
|
|
4033
4033
|
} else {
|
|
4034
|
-
$this$post.
|
|
4034
|
+
$this$post.e65_1 = body;
|
|
4035
4035
|
var tmp_6 = getKClass(GoogleRequest);
|
|
4036
4036
|
var tmp_7;
|
|
4037
4037
|
try {
|
|
@@ -4046,32 +4046,32 @@
|
|
|
4046
4046
|
}
|
|
4047
4047
|
tmp_7 = tmp_8;
|
|
4048
4048
|
}
|
|
4049
|
-
$this$post.
|
|
4049
|
+
$this$post.o6b(new TypeInfo(tmp_6, tmp_7));
|
|
4050
4050
|
}
|
|
4051
4051
|
}
|
|
4052
4052
|
|
|
4053
|
-
this.
|
|
4053
|
+
this.o91_1.c65_1 = Companion_getInstance_0().r5c_1;
|
|
4054
4054
|
var tmp_9 = this;
|
|
4055
|
-
tmp_9.
|
|
4055
|
+
tmp_9.p91_1 = this.n91_1;
|
|
4056
4056
|
var tmp_10 = this;
|
|
4057
|
-
tmp_10.
|
|
4058
|
-
this.
|
|
4059
|
-
this.
|
|
4057
|
+
tmp_10.q91_1 = this.o91_1;
|
|
4058
|
+
this.r91_1 = this.p91_1;
|
|
4059
|
+
this.s91_1 = this.q91_1;
|
|
4060
4060
|
this.x9_1 = 1;
|
|
4061
|
-
suspendResult = (new HttpStatement(this.
|
|
4061
|
+
suspendResult = (new HttpStatement(this.s91_1, this.r91_1)).i7f(this);
|
|
4062
4062
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4063
4063
|
return suspendResult;
|
|
4064
4064
|
}
|
|
4065
4065
|
|
|
4066
4066
|
continue $sm;
|
|
4067
4067
|
case 1:
|
|
4068
|
-
this.
|
|
4069
|
-
if (isSuccess(this.
|
|
4068
|
+
this.t91_1 = suspendResult;
|
|
4069
|
+
if (isSuccess(this.t91_1.f5i())) {
|
|
4070
4070
|
var tmp_11 = this;
|
|
4071
|
-
tmp_11.
|
|
4072
|
-
this.
|
|
4071
|
+
tmp_11.v91_1 = this.t91_1;
|
|
4072
|
+
this.w91_1 = this.v91_1;
|
|
4073
4073
|
this.x9_1 = 3;
|
|
4074
|
-
var tmp_12 = this.
|
|
4074
|
+
var tmp_12 = this.w91_1.r66();
|
|
4075
4075
|
var tmp_13 = getKClass(GoogleResponse);
|
|
4076
4076
|
var tmp_14;
|
|
4077
4077
|
try {
|
|
@@ -4086,14 +4086,14 @@
|
|
|
4086
4086
|
}
|
|
4087
4087
|
tmp_14 = tmp_15;
|
|
4088
4088
|
}
|
|
4089
|
-
suspendResult = tmp_12.
|
|
4089
|
+
suspendResult = tmp_12.o66(new TypeInfo(tmp_13, tmp_14), this);
|
|
4090
4090
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4091
4091
|
return suspendResult;
|
|
4092
4092
|
}
|
|
4093
4093
|
continue $sm;
|
|
4094
4094
|
} else {
|
|
4095
4095
|
this.x9_1 = 2;
|
|
4096
|
-
suspendResult = bodyAsText(this.
|
|
4096
|
+
suspendResult = bodyAsText(this.t91_1, VOID, this);
|
|
4097
4097
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4098
4098
|
return suspendResult;
|
|
4099
4099
|
}
|
|
@@ -4102,18 +4102,18 @@
|
|
|
4102
4102
|
|
|
4103
4103
|
case 2:
|
|
4104
4104
|
var errorBody = suspendResult;
|
|
4105
|
-
var tmp_16 = Companion_getInstance_23().
|
|
4106
|
-
tmp_16.
|
|
4105
|
+
var tmp_16 = Companion_getInstance_23().n8z_1;
|
|
4106
|
+
tmp_16.w3h(GoogleLLMClient$getGoogleResponse$slambda$lambda(this.t91_1, errorBody));
|
|
4107
4107
|
var tmp_17 = this;
|
|
4108
|
-
var message = 'Error from GoogleAI API: ' + this.
|
|
4108
|
+
var message = 'Error from GoogleAI API: ' + this.t91_1.f5i().toString() + ': ' + errorBody;
|
|
4109
4109
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4110
4110
|
case 3:
|
|
4111
4111
|
var tmp_18 = this;
|
|
4112
|
-
tmp_18.
|
|
4112
|
+
tmp_18.u91_1 = suspendResult instanceof GoogleResponse ? suspendResult : THROW_CCE();
|
|
4113
4113
|
this.x9_1 = 4;
|
|
4114
4114
|
continue $sm;
|
|
4115
4115
|
case 4:
|
|
4116
|
-
return this.
|
|
4116
|
+
return this.u91_1;
|
|
4117
4117
|
case 5:
|
|
4118
4118
|
throw this.aa_1;
|
|
4119
4119
|
}
|
|
@@ -4129,14 +4129,14 @@
|
|
|
4129
4129
|
while (true);
|
|
4130
4130
|
};
|
|
4131
4131
|
protoOf(GoogleLLMClient$getGoogleResponse$slambda).y2q = function ($this$withContext, completion) {
|
|
4132
|
-
var i = new GoogleLLMClient$getGoogleResponse$slambda(this.
|
|
4133
|
-
i.
|
|
4132
|
+
var i = new GoogleLLMClient$getGoogleResponse$slambda(this.e91_1, this.f91_1, this.g91_1, completion);
|
|
4133
|
+
i.h91_1 = $this$withContext;
|
|
4134
4134
|
return i;
|
|
4135
4135
|
};
|
|
4136
4136
|
function GoogleLLMClient$getGoogleResponse$slambda_0(this$0, $model, $request, resultContinuation) {
|
|
4137
4137
|
var i = new GoogleLLMClient$getGoogleResponse$slambda(this$0, $model, $request, resultContinuation);
|
|
4138
4138
|
var l = function ($this$withContext, $completion) {
|
|
4139
|
-
return i.
|
|
4139
|
+
return i.x91($this$withContext, $completion);
|
|
4140
4140
|
};
|
|
4141
4141
|
l.$arity = 1;
|
|
4142
4142
|
return l;
|
|
@@ -4149,13 +4149,13 @@
|
|
|
4149
4149
|
function GoogleLLMClient$createGoogleRequest$lambda($tool) {
|
|
4150
4150
|
return function ($this$putJsonArray) {
|
|
4151
4151
|
// Inline function 'kotlin.collections.map' call
|
|
4152
|
-
var this_0 = $tool.
|
|
4152
|
+
var this_0 = $tool.y7x_1;
|
|
4153
4153
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4154
4154
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4155
4155
|
var _iterator__ex2g4s = this_0.p();
|
|
4156
4156
|
while (_iterator__ex2g4s.q()) {
|
|
4157
4157
|
var item = _iterator__ex2g4s.r();
|
|
4158
|
-
var tmp$ret$0 = JsonPrimitive(item.
|
|
4158
|
+
var tmp$ret$0 = JsonPrimitive(item.a7y_1);
|
|
4159
4159
|
destination.h(tmp$ret$0);
|
|
4160
4160
|
}
|
|
4161
4161
|
$this$putJsonArray.j1k(destination);
|
|
@@ -4168,7 +4168,7 @@
|
|
|
4168
4168
|
function GoogleLLMClient$buildGoogleParamType$_anonymous_$putType$lambda_feev3c($type) {
|
|
4169
4169
|
return function ($this$putJsonArray) {
|
|
4170
4170
|
// Inline function 'kotlin.collections.forEach' call
|
|
4171
|
-
var indexedObject = $type.
|
|
4171
|
+
var indexedObject = $type.s7y_1;
|
|
4172
4172
|
var inductionVariable = 0;
|
|
4173
4173
|
var last = indexedObject.length;
|
|
4174
4174
|
while (inductionVariable < last) {
|
|
@@ -4181,10 +4181,10 @@
|
|
|
4181
4181
|
}
|
|
4182
4182
|
function $executeCOROUTINE$(_this__u8e3s4, prompt, model, tools, resultContinuation) {
|
|
4183
4183
|
CoroutineImpl.call(this, resultContinuation);
|
|
4184
|
-
this.
|
|
4185
|
-
this.
|
|
4186
|
-
this.
|
|
4187
|
-
this.
|
|
4184
|
+
this.g92_1 = _this__u8e3s4;
|
|
4185
|
+
this.h92_1 = prompt;
|
|
4186
|
+
this.i92_1 = model;
|
|
4187
|
+
this.j92_1 = tools;
|
|
4188
4188
|
}
|
|
4189
4189
|
protoOf($executeCOROUTINE$).fa = function () {
|
|
4190
4190
|
var suspendResult = this.z9_1;
|
|
@@ -4194,20 +4194,20 @@
|
|
|
4194
4194
|
switch (tmp) {
|
|
4195
4195
|
case 0:
|
|
4196
4196
|
this.y9_1 = 2;
|
|
4197
|
-
var tmp_0 = Companion_getInstance_23().
|
|
4198
|
-
tmp_0.
|
|
4199
|
-
if (!this.
|
|
4200
|
-
var message = 'Model ' + this.
|
|
4197
|
+
var tmp_0 = Companion_getInstance_23().n8z_1;
|
|
4198
|
+
tmp_0.t3h(GoogleLLMClient$execute$lambda(this.h92_1, this.j92_1, this.i92_1));
|
|
4199
|
+
if (!this.i92_1.i3h_1.w(Completion_getInstance())) {
|
|
4200
|
+
var message = 'Model ' + this.i92_1.h3h_1 + ' does not support chat completions';
|
|
4201
4201
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4202
4202
|
}
|
|
4203
4203
|
|
|
4204
|
-
if (!(this.
|
|
4205
|
-
var message_0 = 'Model ' + this.
|
|
4204
|
+
if (!(this.i92_1.i3h_1.w(Tools_getInstance()) || this.j92_1.m())) {
|
|
4205
|
+
var message_0 = 'Model ' + this.i92_1.h3h_1 + ' does not support tools';
|
|
4206
4206
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
4207
4207
|
}
|
|
4208
4208
|
|
|
4209
4209
|
this.x9_1 = 1;
|
|
4210
|
-
suspendResult = getGoogleResponse(this.
|
|
4210
|
+
suspendResult = getGoogleResponse(this.g92_1, this.h92_1, this.i92_1, this.j92_1, this);
|
|
4211
4211
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4212
4212
|
return suspendResult;
|
|
4213
4213
|
}
|
|
@@ -4215,7 +4215,7 @@
|
|
|
4215
4215
|
continue $sm;
|
|
4216
4216
|
case 1:
|
|
4217
4217
|
var response = suspendResult;
|
|
4218
|
-
return first(processGoogleResponse(this.
|
|
4218
|
+
return first(processGoogleResponse(this.g92_1, response));
|
|
4219
4219
|
case 2:
|
|
4220
4220
|
throw this.aa_1;
|
|
4221
4221
|
}
|
|
@@ -4232,10 +4232,10 @@
|
|
|
4232
4232
|
};
|
|
4233
4233
|
function $getGoogleResponseCOROUTINE$(_this__u8e3s4, prompt, model, tools, resultContinuation) {
|
|
4234
4234
|
CoroutineImpl.call(this, resultContinuation);
|
|
4235
|
-
this.
|
|
4236
|
-
this.
|
|
4237
|
-
this.
|
|
4238
|
-
this.
|
|
4235
|
+
this.z8z_1 = _this__u8e3s4;
|
|
4236
|
+
this.a90_1 = prompt;
|
|
4237
|
+
this.b90_1 = model;
|
|
4238
|
+
this.c90_1 = tools;
|
|
4239
4239
|
}
|
|
4240
4240
|
protoOf($getGoogleResponseCOROUTINE$).fa = function () {
|
|
4241
4241
|
var suspendResult = this.z9_1;
|
|
@@ -4245,10 +4245,10 @@
|
|
|
4245
4245
|
switch (tmp) {
|
|
4246
4246
|
case 0:
|
|
4247
4247
|
this.y9_1 = 2;
|
|
4248
|
-
this.
|
|
4248
|
+
this.d90_1 = this.z8z_1.v90(this.a90_1, this.b90_1, this.c90_1);
|
|
4249
4249
|
this.x9_1 = 1;
|
|
4250
4250
|
var tmp_0 = get_SuitableForIO(Dispatchers_getInstance());
|
|
4251
|
-
suspendResult = withContext(tmp_0, GoogleLLMClient$getGoogleResponse$slambda_0(this.
|
|
4251
|
+
suspendResult = withContext(tmp_0, GoogleLLMClient$getGoogleResponse$slambda_0(this.z8z_1, this.b90_1, this.d90_1, null), this);
|
|
4252
4252
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4253
4253
|
return suspendResult;
|
|
4254
4254
|
}
|
|
@@ -4257,8 +4257,8 @@
|
|
|
4257
4257
|
case 1:
|
|
4258
4258
|
var response = suspendResult;
|
|
4259
4259
|
var tmp_1;
|
|
4260
|
-
if (!response.
|
|
4261
|
-
var tmp0 = response.
|
|
4260
|
+
if (!response.w8s_1.m()) {
|
|
4261
|
+
var tmp0 = response.w8s_1;
|
|
4262
4262
|
var tmp$ret$0;
|
|
4263
4263
|
l$ret$1: do {
|
|
4264
4264
|
var tmp_2;
|
|
@@ -4274,8 +4274,8 @@
|
|
|
4274
4274
|
var _iterator__ex2g4s = tmp0.p();
|
|
4275
4275
|
while (_iterator__ex2g4s.q()) {
|
|
4276
4276
|
var element = _iterator__ex2g4s.r();
|
|
4277
|
-
var tmp0_safe_receiver = element.
|
|
4278
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
4277
|
+
var tmp0_safe_receiver = element.s8t_1;
|
|
4278
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t8u_1;
|
|
4279
4279
|
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m()) === true)) {
|
|
4280
4280
|
tmp$ret$0 = false;
|
|
4281
4281
|
break l$ret$1;
|
|
@@ -4290,8 +4290,8 @@
|
|
|
4290
4290
|
}
|
|
4291
4291
|
|
|
4292
4292
|
if (tmp_1) {
|
|
4293
|
-
var tmp_3 = Companion_getInstance_23().
|
|
4294
|
-
tmp_3.
|
|
4293
|
+
var tmp_3 = Companion_getInstance_23().n8z_1;
|
|
4294
|
+
tmp_3.v3h(GoogleLLMClient$getGoogleResponse$lambda(response));
|
|
4295
4295
|
}
|
|
4296
4296
|
|
|
4297
4297
|
return response;
|
|
@@ -4314,31 +4314,31 @@
|
|
|
4314
4314
|
settings = settings === VOID ? new GoogleClientSettings() : settings;
|
|
4315
4315
|
baseClient = baseClient === VOID ? HttpClient() : baseClient;
|
|
4316
4316
|
clock = clock === VOID ? System_instance : clock;
|
|
4317
|
-
this.
|
|
4318
|
-
this.
|
|
4319
|
-
this.
|
|
4317
|
+
this.x8y_1 = apiKey;
|
|
4318
|
+
this.y8y_1 = settings;
|
|
4319
|
+
this.z8y_1 = clock;
|
|
4320
4320
|
var tmp = this;
|
|
4321
|
-
tmp.
|
|
4321
|
+
tmp.a8z_1 = Json(VOID, GoogleLLMClient$json$lambda);
|
|
4322
4322
|
var tmp_0 = this;
|
|
4323
|
-
tmp_0.
|
|
4323
|
+
tmp_0.b8z_1 = baseClient.f66(GoogleLLMClient$httpClient$lambda(this));
|
|
4324
4324
|
}
|
|
4325
|
-
protoOf(GoogleLLMClient).
|
|
4325
|
+
protoOf(GoogleLLMClient).o4e = function (prompt, model, tools, $completion) {
|
|
4326
4326
|
var tmp = new $executeCOROUTINE$(this, prompt, model, tools, $completion);
|
|
4327
4327
|
tmp.z9_1 = Unit_instance;
|
|
4328
4328
|
tmp.aa_1 = null;
|
|
4329
4329
|
return tmp.fa();
|
|
4330
4330
|
};
|
|
4331
|
-
protoOf(GoogleLLMClient).
|
|
4331
|
+
protoOf(GoogleLLMClient).q4e = function (prompt, model, tools) {
|
|
4332
4332
|
return streamFrameFlow(GoogleLLMClient$executeStreaming$slambda_0(model, this, prompt, null));
|
|
4333
4333
|
};
|
|
4334
|
-
protoOf(GoogleLLMClient).
|
|
4334
|
+
protoOf(GoogleLLMClient).v90 = function (prompt, model, tools) {
|
|
4335
4335
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4336
4336
|
var systemMessageParts = ArrayList_init_$Create$();
|
|
4337
4337
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4338
4338
|
var contents = ArrayList_init_$Create$();
|
|
4339
4339
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4340
4340
|
var pendingCalls = ArrayList_init_$Create$();
|
|
4341
|
-
var _iterator__ex2g4s = prompt.
|
|
4341
|
+
var _iterator__ex2g4s = prompt.e44_1.p();
|
|
4342
4342
|
while (_iterator__ex2g4s.q()) {
|
|
4343
4343
|
var message = _iterator__ex2g4s.r();
|
|
4344
4344
|
if (message instanceof System) {
|
|
@@ -4359,11 +4359,11 @@
|
|
|
4359
4359
|
var builder = new JsonObjectBuilder();
|
|
4360
4360
|
put(builder, 'result', message.v1j());
|
|
4361
4361
|
var tmp$ret$4 = builder.s1i();
|
|
4362
|
-
var tmp2_parts = listOf(new FunctionResponse(new FunctionResponse_0(message.
|
|
4362
|
+
var tmp2_parts = listOf(new FunctionResponse(new FunctionResponse_0(message.u44_1, message.v44_1, tmp$ret$4)));
|
|
4363
4363
|
contents.h(new GoogleContent(tmp2_parts, 'user'));
|
|
4364
4364
|
} else {
|
|
4365
4365
|
if (message instanceof Call) {
|
|
4366
|
-
var tmp0 = this.
|
|
4366
|
+
var tmp0 = this.a8z_1;
|
|
4367
4367
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
4368
4368
|
var string = message.v1j();
|
|
4369
4369
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -4373,7 +4373,7 @@
|
|
|
4373
4373
|
var tmp$ret$6 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
|
|
4374
4374
|
var tmp$ret$7 = tmp0.hw(tmp$ret$6, string);
|
|
4375
4375
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
4376
|
-
var element = new FunctionCall(new FunctionCall_0(message.
|
|
4376
|
+
var element = new FunctionCall(new FunctionCall_0(message.o44_1, message.p44_1, tmp$ret$7));
|
|
4377
4377
|
pendingCalls.h(element);
|
|
4378
4378
|
} else {
|
|
4379
4379
|
noWhenBranchMatchedException();
|
|
@@ -4391,7 +4391,7 @@
|
|
|
4391
4391
|
while (_iterator__ex2g4s_0.q()) {
|
|
4392
4392
|
var item = _iterator__ex2g4s_0.r();
|
|
4393
4393
|
// Inline function 'kotlin.collections.associate' call
|
|
4394
|
-
var this_2 = plus(item.
|
|
4394
|
+
var this_2 = plus(item.y7x_1, item.z7x_1);
|
|
4395
4395
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_2, 10)), 16);
|
|
4396
4396
|
// Inline function 'kotlin.collections.associateTo' call
|
|
4397
4397
|
var destination_0 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -4399,8 +4399,8 @@
|
|
|
4399
4399
|
while (_iterator__ex2g4s_1.q()) {
|
|
4400
4400
|
var element_0 = _iterator__ex2g4s_1.r();
|
|
4401
4401
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
4402
|
-
var pair = to(element_0.
|
|
4403
|
-
destination_0.r2(pair.
|
|
4402
|
+
var pair = to(element_0.a7y_1, buildGoogleParamType(this, element_0));
|
|
4403
|
+
destination_0.r2(pair.oi_1, pair.pi_1);
|
|
4404
4404
|
}
|
|
4405
4405
|
var properties = destination_0;
|
|
4406
4406
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
@@ -4409,7 +4409,7 @@
|
|
|
4409
4409
|
builder_0.g1k('properties', new JsonObject(properties));
|
|
4410
4410
|
putJsonArray(builder_0, 'required', GoogleLLMClient$createGoogleRequest$lambda(item));
|
|
4411
4411
|
var tmp$ret$14 = builder_0.s1i();
|
|
4412
|
-
var tmp$ret$15 = new GoogleFunctionDeclaration(item.
|
|
4412
|
+
var tmp$ret$15 = new GoogleFunctionDeclaration(item.w7x_1, item.x7x_1, tmp$ret$14);
|
|
4413
4413
|
destination.h(tmp$ret$15);
|
|
4414
4414
|
}
|
|
4415
4415
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -4446,23 +4446,23 @@
|
|
|
4446
4446
|
tmp_2 = new GoogleContent(tmp4_safe_receiver);
|
|
4447
4447
|
}
|
|
4448
4448
|
var googleSystemInstruction = tmp_2;
|
|
4449
|
-
var tmp5_safe_receiver = prompt.
|
|
4449
|
+
var tmp5_safe_receiver = prompt.g44_1.d43_1;
|
|
4450
4450
|
var tmp_3;
|
|
4451
4451
|
if (tmp5_safe_receiver == null) {
|
|
4452
4452
|
tmp_3 = null;
|
|
4453
4453
|
} else {
|
|
4454
4454
|
// Inline function 'kotlin.let' call
|
|
4455
4455
|
// Inline function 'kotlin.require' call
|
|
4456
|
-
if (!model.
|
|
4457
|
-
var message_0 = 'Model ' + model.
|
|
4456
|
+
if (!model.i3h_1.w(tmp5_safe_receiver.m49())) {
|
|
4457
|
+
var message_0 = 'Model ' + model.h3h_1 + ' does not support structured output schema ' + tmp5_safe_receiver.m3d();
|
|
4458
4458
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
4459
4459
|
}
|
|
4460
4460
|
var tmp_4;
|
|
4461
4461
|
if (tmp5_safe_receiver instanceof Basic) {
|
|
4462
|
-
tmp_4 = new GoogleResponseFormat('application/json', tmp5_safe_receiver.
|
|
4462
|
+
tmp_4 = new GoogleResponseFormat('application/json', tmp5_safe_receiver.d49_1);
|
|
4463
4463
|
} else {
|
|
4464
4464
|
if (tmp5_safe_receiver instanceof Standard) {
|
|
4465
|
-
tmp_4 = new GoogleResponseFormat('application/json', VOID, tmp5_safe_receiver.
|
|
4465
|
+
tmp_4 = new GoogleResponseFormat('application/json', VOID, tmp5_safe_receiver.j49_1);
|
|
4466
4466
|
} else {
|
|
4467
4467
|
throw IllegalArgumentException_init_$Create$('Unsupported schema type: ' + toString(tmp5_safe_receiver));
|
|
4468
4468
|
}
|
|
@@ -4470,14 +4470,14 @@
|
|
|
4470
4470
|
tmp_3 = tmp_4;
|
|
4471
4471
|
}
|
|
4472
4472
|
var responseFormat = tmp_3;
|
|
4473
|
-
var tmp9_responseMimeType = responseFormat == null ? null : responseFormat.
|
|
4474
|
-
var tmp10_responseSchema = responseFormat == null ? null : responseFormat.
|
|
4475
|
-
var tmp11_responseJsonSchema = responseFormat == null ? null : responseFormat.
|
|
4476
|
-
var tmp12_temperature = model.
|
|
4477
|
-
var tmp13_candidateCount = model.
|
|
4478
|
-
var tmp14_maxOutputTokens = prompt.
|
|
4473
|
+
var tmp9_responseMimeType = responseFormat == null ? null : responseFormat.k92_1;
|
|
4474
|
+
var tmp10_responseSchema = responseFormat == null ? null : responseFormat.l92_1;
|
|
4475
|
+
var tmp11_responseJsonSchema = responseFormat == null ? null : responseFormat.m92_1;
|
|
4476
|
+
var tmp12_temperature = model.i3h_1.w(Temperature_getInstance()) ? prompt.g44_1.z42_1 : null;
|
|
4477
|
+
var tmp13_candidateCount = model.i3h_1.w(MultipleChoices_getInstance()) ? prompt.g44_1.b43_1 : null;
|
|
4478
|
+
var tmp14_maxOutputTokens = prompt.g44_1.a43_1;
|
|
4479
4479
|
// Inline function 'kotlin.takeIf' call
|
|
4480
|
-
var this_3 = prompt.
|
|
4480
|
+
var this_3 = prompt.g44_1.g43_1;
|
|
4481
4481
|
var tmp_5;
|
|
4482
4482
|
if (this_3 === true) {
|
|
4483
4483
|
tmp_5 = this_3;
|
|
@@ -4486,17 +4486,17 @@
|
|
|
4486
4486
|
}
|
|
4487
4487
|
var tmp$ret$33 = tmp_5;
|
|
4488
4488
|
// Inline function 'kotlin.takeIf' call
|
|
4489
|
-
var this_4 = new GoogleThinkingConfig(tmp$ret$33, prompt.
|
|
4489
|
+
var this_4 = new GoogleThinkingConfig(tmp$ret$33, prompt.g44_1.h43_1);
|
|
4490
4490
|
var tmp_6;
|
|
4491
|
-
if (!(this_4.
|
|
4491
|
+
if (!(this_4.n8w_1 == null) || !(this_4.o8w_1 == null)) {
|
|
4492
4492
|
tmp_6 = this_4;
|
|
4493
4493
|
} else {
|
|
4494
4494
|
tmp_6 = null;
|
|
4495
4495
|
}
|
|
4496
4496
|
var tmp15_thinkingConfig = tmp_6;
|
|
4497
|
-
var tmp16_additionalProperties = prompt.
|
|
4497
|
+
var tmp16_additionalProperties = prompt.g44_1.i43_1;
|
|
4498
4498
|
var generationConfig = new GoogleGenerationConfig(tmp9_responseMimeType, tmp10_responseSchema, tmp11_responseJsonSchema, tmp14_maxOutputTokens, tmp12_temperature, tmp13_candidateCount, VOID, VOID, tmp15_thinkingConfig, tmp16_additionalProperties);
|
|
4499
|
-
var toolChoice = prompt.
|
|
4499
|
+
var toolChoice = prompt.g44_1.e43_1;
|
|
4500
4500
|
var tmp_7;
|
|
4501
4501
|
if (equals(toolChoice, Auto_getInstance())) {
|
|
4502
4502
|
tmp_7 = new GoogleFunctionCallingConfig(GoogleFunctionCallingMode_AUTO_getInstance());
|
|
@@ -4508,7 +4508,7 @@
|
|
|
4508
4508
|
tmp_7 = new GoogleFunctionCallingConfig(GoogleFunctionCallingMode_ANY_getInstance());
|
|
4509
4509
|
} else {
|
|
4510
4510
|
if (toolChoice instanceof Named) {
|
|
4511
|
-
tmp_7 = new GoogleFunctionCallingConfig(GoogleFunctionCallingMode_ANY_getInstance(), listOf(toolChoice.
|
|
4511
|
+
tmp_7 = new GoogleFunctionCallingConfig(GoogleFunctionCallingMode_ANY_getInstance(), listOf(toolChoice.r49_1));
|
|
4512
4512
|
} else {
|
|
4513
4513
|
if (toolChoice == null) {
|
|
4514
4514
|
tmp_7 = null;
|
|
@@ -4526,8 +4526,8 @@
|
|
|
4526
4526
|
function GoogleClientSettings(baseUrl, timeoutConfig) {
|
|
4527
4527
|
baseUrl = baseUrl === VOID ? 'https://generativelanguage.googleapis.com' : baseUrl;
|
|
4528
4528
|
timeoutConfig = timeoutConfig === VOID ? new ConnectionTimeoutConfig() : timeoutConfig;
|
|
4529
|
-
this.
|
|
4530
|
-
this.
|
|
4529
|
+
this.f90_1 = baseUrl;
|
|
4530
|
+
this.g90_1 = timeoutConfig;
|
|
4531
4531
|
}
|
|
4532
4532
|
function Companion_21() {
|
|
4533
4533
|
Companion_instance_21 = this;
|
|
@@ -4543,8 +4543,8 @@
|
|
|
4543
4543
|
Companion_getInstance_24();
|
|
4544
4544
|
BasicJsonSchemaGenerator.call(this);
|
|
4545
4545
|
}
|
|
4546
|
-
protoOf(GoogleBasicJsonSchemaGenerator).
|
|
4547
|
-
var schema = toMutableMap(protoOf(BasicJsonSchemaGenerator).
|
|
4546
|
+
protoOf(GoogleBasicJsonSchemaGenerator).n88 = function (context) {
|
|
4547
|
+
var schema = toMutableMap(protoOf(BasicJsonSchemaGenerator).n88.call(this, context));
|
|
4548
4548
|
schema.s2('additionalProperties');
|
|
4549
4549
|
return new JsonObject(schema);
|
|
4550
4550
|
};
|
|
@@ -4562,8 +4562,8 @@
|
|
|
4562
4562
|
Companion_getInstance_25();
|
|
4563
4563
|
StandardJsonSchemaGenerator.call(this);
|
|
4564
4564
|
}
|
|
4565
|
-
protoOf(GoogleStandardJsonSchemaGenerator).
|
|
4566
|
-
var refObject = toMutableMap(protoOf(StandardJsonSchemaGenerator).
|
|
4565
|
+
protoOf(GoogleStandardJsonSchemaGenerator).n88 = function (context) {
|
|
4566
|
+
var refObject = toMutableMap(protoOf(StandardJsonSchemaGenerator).n88.call(this, context));
|
|
4567
4567
|
var tmp;
|
|
4568
4568
|
// Inline function 'kotlin.collections.contains' call
|
|
4569
4569
|
// Inline function 'kotlin.collections.containsKey' call
|
|
@@ -4587,13 +4587,13 @@
|
|
|
4587
4587
|
}
|
|
4588
4588
|
return new JsonObject(refObject);
|
|
4589
4589
|
};
|
|
4590
|
-
protoOf(GoogleStandardJsonSchemaGenerator).
|
|
4590
|
+
protoOf(GoogleStandardJsonSchemaGenerator).d89 = function (context) {
|
|
4591
4591
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
4592
4592
|
var builder = new JsonObjectBuilder();
|
|
4593
4593
|
put(builder, 'type', 'string');
|
|
4594
4594
|
// Inline function 'kotlinx.serialization.json.buildJsonArray' call
|
|
4595
4595
|
var builder_0 = new JsonArrayBuilder();
|
|
4596
|
-
add(builder_0, context.
|
|
4596
|
+
add(builder_0, context.s88_1.fw());
|
|
4597
4597
|
var tmp$ret$1 = builder_0.s1i();
|
|
4598
4598
|
builder.g1k('enum', tmp$ret$1);
|
|
4599
4599
|
return builder.s1i();
|
|
@@ -4601,17 +4601,17 @@
|
|
|
4601
4601
|
function GoogleResponseFormat(responseMimeType, responseSchema, responseJsonSchema) {
|
|
4602
4602
|
responseSchema = responseSchema === VOID ? null : responseSchema;
|
|
4603
4603
|
responseJsonSchema = responseJsonSchema === VOID ? null : responseJsonSchema;
|
|
4604
|
-
this.
|
|
4605
|
-
this.
|
|
4606
|
-
this.
|
|
4604
|
+
this.k92_1 = responseMimeType;
|
|
4605
|
+
this.l92_1 = responseSchema;
|
|
4606
|
+
this.m92_1 = responseJsonSchema;
|
|
4607
4607
|
}
|
|
4608
4608
|
protoOf(GoogleResponseFormat).toString = function () {
|
|
4609
|
-
return 'GoogleResponseFormat(responseMimeType=' + this.
|
|
4609
|
+
return 'GoogleResponseFormat(responseMimeType=' + this.k92_1 + ', responseSchema=' + toString_0(this.l92_1) + ', responseJsonSchema=' + toString_0(this.m92_1) + ')';
|
|
4610
4610
|
};
|
|
4611
4611
|
protoOf(GoogleResponseFormat).hashCode = function () {
|
|
4612
|
-
var result = getStringHashCode(this.
|
|
4613
|
-
result = imul(result, 31) + (this.
|
|
4614
|
-
result = imul(result, 31) + (this.
|
|
4612
|
+
var result = getStringHashCode(this.k92_1);
|
|
4613
|
+
result = imul(result, 31) + (this.l92_1 == null ? 0 : this.l92_1.hashCode()) | 0;
|
|
4614
|
+
result = imul(result, 31) + (this.m92_1 == null ? 0 : this.m92_1.hashCode()) | 0;
|
|
4615
4615
|
return result;
|
|
4616
4616
|
};
|
|
4617
4617
|
protoOf(GoogleResponseFormat).equals = function (other) {
|
|
@@ -4620,11 +4620,11 @@
|
|
|
4620
4620
|
if (!(other instanceof GoogleResponseFormat))
|
|
4621
4621
|
return false;
|
|
4622
4622
|
var tmp0_other_with_cast = other instanceof GoogleResponseFormat ? other : THROW_CCE();
|
|
4623
|
-
if (!(this.
|
|
4623
|
+
if (!(this.k92_1 === tmp0_other_with_cast.k92_1))
|
|
4624
4624
|
return false;
|
|
4625
|
-
if (!equals(this.
|
|
4625
|
+
if (!equals(this.l92_1, tmp0_other_with_cast.l92_1))
|
|
4626
4626
|
return false;
|
|
4627
|
-
if (!equals(this.
|
|
4627
|
+
if (!equals(this.m92_1, tmp0_other_with_cast.m92_1))
|
|
4628
4628
|
return false;
|
|
4629
4629
|
return true;
|
|
4630
4630
|
};
|