@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-anthropic-client.js
CHANGED
|
@@ -62,39 +62,39 @@
|
|
|
62
62
|
//region block: imports
|
|
63
63
|
var imul = Math.imul;
|
|
64
64
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
65
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
66
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
67
|
-
var trim = kotlin_kotlin.$_$.
|
|
68
|
-
var toString = kotlin_kotlin.$_$.
|
|
65
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
66
|
+
var isCharSequence = kotlin_kotlin.$_$.ie;
|
|
67
|
+
var trim = kotlin_kotlin.$_$.ck;
|
|
68
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
69
69
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
70
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
70
|
+
var arrayOf = kotlin_kotlin.$_$.rl;
|
|
71
71
|
var createKType = kotlin_kotlin.$_$.c;
|
|
72
72
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j4;
|
|
73
73
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x3;
|
|
74
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
74
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
75
75
|
var Companion_getInstance = kotlin_ai_koog_prompt_model.$_$.d2;
|
|
76
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
77
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
76
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
77
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
78
78
|
var ServerSentEvent = kotlin_io_ktor_ktor_sse.$_$.a;
|
|
79
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
79
|
+
var toString_0 = kotlin_kotlin.$_$.km;
|
|
80
80
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
81
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
81
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
82
82
|
var VOID = kotlin_kotlin.$_$.h;
|
|
83
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
83
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
84
84
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
85
85
|
var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.j;
|
|
86
86
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
87
|
-
var accept = kotlin_io_ktor_ktor_client_core.$_$.
|
|
88
|
-
var headers = kotlin_io_ktor_ktor_client_core.$_$.
|
|
87
|
+
var accept = kotlin_io_ktor_ktor_client_core.$_$.t;
|
|
88
|
+
var headers = kotlin_io_ktor_ktor_client_core.$_$.u;
|
|
89
89
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.t5;
|
|
90
90
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
91
91
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.x;
|
|
92
92
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
93
|
-
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.
|
|
93
|
+
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
94
94
|
var KotlinLogging_instance = kotlin_io_github_oshai_kotlin_logging.$_$.b;
|
|
95
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
95
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
96
96
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
97
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
97
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dm;
|
|
98
98
|
var Companion_getInstance_1 = kotlin_kotlin.$_$.z5;
|
|
99
99
|
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
100
100
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b1;
|
|
@@ -103,20 +103,20 @@
|
|
|
103
103
|
var Result = kotlin_ai_koog_prompt_model.$_$.p;
|
|
104
104
|
var Assistant = kotlin_ai_koog_prompt_model.$_$.l;
|
|
105
105
|
var User = kotlin_ai_koog_prompt_model.$_$.r;
|
|
106
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
106
|
+
var charSequenceLength = kotlin_kotlin.$_$.ld;
|
|
107
107
|
var System = kotlin_ai_koog_prompt_model.$_$.n;
|
|
108
108
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.p7;
|
|
109
109
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.s;
|
|
110
110
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
111
|
-
var plus = kotlin_kotlin.$_$.
|
|
111
|
+
var plus = kotlin_kotlin.$_$.ja;
|
|
112
112
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.s;
|
|
113
|
-
var to = kotlin_kotlin.$_$.
|
|
113
|
+
var to = kotlin_kotlin.$_$.lm;
|
|
114
114
|
var mapOf = kotlin_kotlin.$_$.w9;
|
|
115
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
115
|
+
var plus_0 = kotlin_kotlin.$_$.fa;
|
|
116
116
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.r;
|
|
117
117
|
var Named = kotlin_ai_koog_prompt_model.$_$.v;
|
|
118
118
|
var Required_getInstance = kotlin_ai_koog_prompt_model.$_$.g2;
|
|
119
|
-
var equals = kotlin_kotlin.$_$.
|
|
119
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
120
120
|
var None_getInstance = kotlin_ai_koog_prompt_model.$_$.f2;
|
|
121
121
|
var Auto_getInstance = kotlin_ai_koog_prompt_model.$_$.e2;
|
|
122
122
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
@@ -143,51 +143,51 @@
|
|
|
143
143
|
var Integer_getInstance = kotlin_ai_koog_agents_tools.$_$.m;
|
|
144
144
|
var Float_getInstance = kotlin_ai_koog_agents_tools.$_$.l;
|
|
145
145
|
var Boolean_getInstance = kotlin_ai_koog_agents_tools.$_$.k;
|
|
146
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
147
|
-
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
148
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
149
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
146
|
+
var FunctionAdapter = kotlin_kotlin.$_$.cd;
|
|
147
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
148
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
149
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
150
150
|
var Builtins_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
|
|
151
151
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
|
|
152
152
|
var contentType = kotlin_io_ktor_ktor_http.$_$.w1;
|
|
153
|
-
var header = kotlin_io_ktor_ktor_client_core.$_$.
|
|
153
|
+
var header = kotlin_io_ktor_ktor_client_core.$_$.v;
|
|
154
154
|
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
155
|
-
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.
|
|
156
|
-
var get_SSE = kotlin_io_ktor_ktor_client_core.$_$.
|
|
155
|
+
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
156
|
+
var get_SSE = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
157
157
|
var get_ContentNegotiation = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
|
|
158
|
-
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.
|
|
159
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
160
|
-
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.
|
|
161
|
-
var url = kotlin_io_ktor_ktor_client_core.$_$.
|
|
162
|
-
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.
|
|
158
|
+
var get_HttpTimeout = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
159
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
160
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
161
|
+
var url = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
162
|
+
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
163
163
|
var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
164
164
|
var isSuccess = kotlin_io_ktor_ktor_http.$_$.d2;
|
|
165
165
|
var StreamFrameFlowBuilder = kotlin_ai_koog_prompt_model.$_$.a1;
|
|
166
166
|
var sse = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
167
|
-
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.
|
|
167
|
+
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
168
168
|
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
169
169
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.x;
|
|
170
170
|
var Completion_getInstance = kotlin_ai_koog_prompt_llm.$_$.d;
|
|
171
171
|
var Tools_getInstance = kotlin_ai_koog_prompt_llm.$_$.p;
|
|
172
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
172
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
173
173
|
var get_SuitableForIO = kotlin_ai_koog_utils.$_$.a;
|
|
174
|
-
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
174
|
+
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
175
175
|
var buildStreamFrameFlow = kotlin_ai_koog_prompt_model.$_$.c1;
|
|
176
|
-
var Exception = kotlin_kotlin.$_$.
|
|
177
|
-
var SSEClientException = kotlin_io_ktor_ktor_client_core.$_$.
|
|
178
|
-
var emptyFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
176
|
+
var Exception = kotlin_kotlin.$_$.sk;
|
|
177
|
+
var SSEClientException = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
178
|
+
var emptyFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
179
179
|
var LLMClient = kotlin_ai_koog_prompt_executor_clients.$_$.c;
|
|
180
180
|
var ConnectionTimeoutConfig = kotlin_ai_koog_prompt_executor_clients.$_$.b;
|
|
181
181
|
var Anthropic_getInstance = kotlin_ai_koog_prompt_llm.$_$.s;
|
|
182
182
|
var Temperature_getInstance = kotlin_ai_koog_prompt_llm.$_$.n;
|
|
183
183
|
var ToolChoice_getInstance = kotlin_ai_koog_prompt_llm.$_$.o;
|
|
184
184
|
var listOf_0 = kotlin_kotlin.$_$.u9;
|
|
185
|
-
var Long = kotlin_kotlin.$_$.
|
|
185
|
+
var Long = kotlin_kotlin.$_$.wk;
|
|
186
186
|
var LLModel = kotlin_ai_koog_prompt_llm.$_$.a;
|
|
187
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
187
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
188
188
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z2;
|
|
189
189
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.o;
|
|
190
|
-
var lazy = kotlin_kotlin.$_$.
|
|
190
|
+
var lazy = kotlin_kotlin.$_$.bm;
|
|
191
191
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3;
|
|
192
192
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
|
|
193
193
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
|
|
@@ -195,20 +195,20 @@
|
|
|
195
195
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b3;
|
|
196
196
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3;
|
|
197
197
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3;
|
|
198
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
199
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
198
|
+
var objectCreate = kotlin_kotlin.$_$.ye;
|
|
199
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
200
200
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
|
|
201
201
|
var JsonObjectSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.i;
|
|
202
202
|
var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
|
|
203
203
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j3;
|
|
204
204
|
var ObjectSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
|
|
205
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
205
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
206
206
|
var JsonElementSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
|
|
207
207
|
var LinkedHashMapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f3;
|
|
208
208
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
209
209
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
210
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
211
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
210
|
+
var getNumberHashCode = kotlin_kotlin.$_$.td;
|
|
211
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.rd;
|
|
212
212
|
var AdditionalPropertiesFlatteningSerializer = kotlin_ai_koog_prompt_executor_clients.$_$.a;
|
|
213
213
|
//endregion
|
|
214
214
|
//region block: pre-declaration
|
|
@@ -309,11 +309,11 @@
|
|
|
309
309
|
}
|
|
310
310
|
function AnthropicLLMClient$execute$slambda$lambda($response, $errorBody) {
|
|
311
311
|
return function () {
|
|
312
|
-
return 'Error from Anthropic API: ' + $response.
|
|
312
|
+
return 'Error from Anthropic API: ' + $response.f5i().toString() + ': ' + $errorBody;
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
function invoke$decodeResponse(this$0, event) {
|
|
316
|
-
var tmp0_safe_receiver = event.
|
|
316
|
+
var tmp0_safe_receiver = event.p62_1;
|
|
317
317
|
var tmp;
|
|
318
318
|
if (tmp0_safe_receiver == null) {
|
|
319
319
|
tmp = null;
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
} else {
|
|
329
329
|
// Inline function 'kotlin.let' call
|
|
330
330
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
331
|
-
var this_0 = this$0.
|
|
331
|
+
var this_0 = this$0.o7u_1;
|
|
332
332
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
333
333
|
var this_1 = this_0.lz();
|
|
334
334
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -339,9 +339,9 @@
|
|
|
339
339
|
return tmp_0;
|
|
340
340
|
}
|
|
341
341
|
function invoke$updateUsage(inputTokens, outputTokens, usage) {
|
|
342
|
-
var tmp0_elvis_lhs = usage.
|
|
342
|
+
var tmp0_elvis_lhs = usage.q7u_1;
|
|
343
343
|
inputTokens._v = tmp0_elvis_lhs == null ? inputTokens._v : tmp0_elvis_lhs;
|
|
344
|
-
var tmp1_elvis_lhs = usage.
|
|
344
|
+
var tmp1_elvis_lhs = usage.r7u_1;
|
|
345
345
|
outputTokens._v = tmp1_elvis_lhs == null ? outputTokens._v : tmp1_elvis_lhs;
|
|
346
346
|
}
|
|
347
347
|
function invoke$getMetaInfo(this$0, inputTokens, outputTokens) {
|
|
@@ -355,23 +355,23 @@
|
|
|
355
355
|
tmp_0 = tmp0_safe_receiver + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
356
356
|
}
|
|
357
357
|
var tmp2_elvis_lhs = tmp_0;
|
|
358
|
-
return tmp.
|
|
358
|
+
return tmp.i45(this$0.n7u_1, tmp2_elvis_lhs == null ? outputTokens._v : tmp2_elvis_lhs, inputTokens._v, outputTokens._v);
|
|
359
359
|
}
|
|
360
360
|
function AnthropicLLMClient$executeStreaming$slambda$slambda$slambda($this_buildStreamFrameFlow, this$0, $inputTokens, $outputTokens, resultContinuation) {
|
|
361
|
-
this.
|
|
362
|
-
this.
|
|
363
|
-
this.
|
|
364
|
-
this.
|
|
361
|
+
this.a7v_1 = $this_buildStreamFrameFlow;
|
|
362
|
+
this.b7v_1 = this$0;
|
|
363
|
+
this.c7v_1 = $inputTokens;
|
|
364
|
+
this.d7v_1 = $outputTokens;
|
|
365
365
|
CoroutineImpl.call(this, resultContinuation);
|
|
366
366
|
}
|
|
367
|
-
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda$slambda).
|
|
368
|
-
var tmp = this.
|
|
367
|
+
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda$slambda).g7w = function (event, $completion) {
|
|
368
|
+
var tmp = this.h7w(event, $completion);
|
|
369
369
|
tmp.z9_1 = Unit_instance;
|
|
370
370
|
tmp.aa_1 = null;
|
|
371
371
|
return tmp.fa();
|
|
372
372
|
};
|
|
373
373
|
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda$slambda).ra = function (p1, $completion) {
|
|
374
|
-
return this.
|
|
374
|
+
return this.g7w(p1 instanceof ServerSentEvent ? p1 : THROW_CCE(), $completion);
|
|
375
375
|
};
|
|
376
376
|
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda$slambda).fa = function () {
|
|
377
377
|
var suspendResult = this.z9_1;
|
|
@@ -381,46 +381,46 @@
|
|
|
381
381
|
switch (tmp) {
|
|
382
382
|
case 0:
|
|
383
383
|
this.y9_1 = 14;
|
|
384
|
-
this.
|
|
385
|
-
if (this.
|
|
386
|
-
var tmp1_safe_receiver = invoke$decodeResponse(this.
|
|
387
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
388
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
384
|
+
this.f7v_1 = this.e7v_1.q62_1;
|
|
385
|
+
if (this.f7v_1 === 'message_start') {
|
|
386
|
+
var tmp1_safe_receiver = invoke$decodeResponse(this.b7v_1, this.e7v_1);
|
|
387
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m7w_1;
|
|
388
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.e7x_1;
|
|
389
389
|
if (tmp3_safe_receiver == null)
|
|
390
390
|
null;
|
|
391
391
|
else {
|
|
392
|
-
invoke$updateUsage(this.
|
|
392
|
+
invoke$updateUsage(this.c7v_1, this.d7v_1, tmp3_safe_receiver);
|
|
393
393
|
}
|
|
394
394
|
this.x9_1 = 13;
|
|
395
395
|
continue $sm;
|
|
396
396
|
} else {
|
|
397
|
-
if (this.
|
|
398
|
-
this.
|
|
399
|
-
if (this.
|
|
400
|
-
this.
|
|
397
|
+
if (this.f7v_1 === 'content_block_start') {
|
|
398
|
+
this.g7v_1 = invoke$decodeResponse(this.b7v_1, this.e7v_1);
|
|
399
|
+
if (this.g7v_1 == null) {
|
|
400
|
+
this.h7v_1 = null;
|
|
401
401
|
this.x9_1 = 12;
|
|
402
402
|
continue $sm;
|
|
403
403
|
} else {
|
|
404
404
|
var tmp_0 = this;
|
|
405
|
-
tmp_0.
|
|
406
|
-
this.
|
|
405
|
+
tmp_0.i7v_1 = this.g7v_1;
|
|
406
|
+
this.j7v_1 = this.i7v_1;
|
|
407
407
|
var tmp_1 = this;
|
|
408
|
-
tmp_1.
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
411
|
-
var tmp_2 = this.
|
|
408
|
+
tmp_1.k7v_1 = this.j7v_1;
|
|
409
|
+
this.l7v_1 = this.k7v_1;
|
|
410
|
+
this.m7v_1 = this.l7v_1.k7w_1;
|
|
411
|
+
var tmp_2 = this.m7v_1;
|
|
412
412
|
if (tmp_2 instanceof Text_0) {
|
|
413
413
|
this.x9_1 = 10;
|
|
414
|
-
suspendResult = this.
|
|
414
|
+
suspendResult = this.a7v_1.p4c(this.m7v_1.x7w_1, this);
|
|
415
415
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
416
416
|
return suspendResult;
|
|
417
417
|
}
|
|
418
418
|
continue $sm;
|
|
419
419
|
} else {
|
|
420
|
-
var tmp_3 = this.
|
|
420
|
+
var tmp_3 = this.m7v_1;
|
|
421
421
|
if (tmp_3 instanceof ToolUse) {
|
|
422
422
|
this.x9_1 = 9;
|
|
423
|
-
var tmp0_elvis_lhs = this.
|
|
423
|
+
var tmp0_elvis_lhs = this.l7v_1.j7w_1;
|
|
424
424
|
var tmp_4;
|
|
425
425
|
if (tmp0_elvis_lhs == null) {
|
|
426
426
|
var message = 'Tool index is missing';
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
} else {
|
|
429
429
|
tmp_4 = tmp0_elvis_lhs;
|
|
430
430
|
}
|
|
431
|
-
suspendResult = this.
|
|
431
|
+
suspendResult = this.a7v_1.s4c(tmp_4, this.m7v_1.u7w_1, this.m7v_1.v7w_1, VOID, this);
|
|
432
432
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
433
433
|
return suspendResult;
|
|
434
434
|
}
|
|
@@ -440,35 +440,35 @@
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
} else {
|
|
443
|
-
if (this.
|
|
444
|
-
this.
|
|
445
|
-
if (this.
|
|
446
|
-
this.
|
|
443
|
+
if (this.f7v_1 === 'content_block_delta') {
|
|
444
|
+
this.n7v_1 = invoke$decodeResponse(this.b7v_1, this.e7v_1);
|
|
445
|
+
if (this.n7v_1 == null) {
|
|
446
|
+
this.o7v_1 = null;
|
|
447
447
|
this.x9_1 = 8;
|
|
448
448
|
continue $sm;
|
|
449
449
|
} else {
|
|
450
450
|
var tmp_5 = this;
|
|
451
|
-
tmp_5.
|
|
452
|
-
this.
|
|
451
|
+
tmp_5.p7v_1 = this.n7v_1;
|
|
452
|
+
this.q7v_1 = this.p7v_1;
|
|
453
453
|
var tmp_6 = this;
|
|
454
|
-
tmp_6.
|
|
455
|
-
this.
|
|
456
|
-
this.
|
|
457
|
-
if (this.
|
|
458
|
-
this.
|
|
454
|
+
tmp_6.r7v_1 = this.q7v_1;
|
|
455
|
+
this.s7v_1 = this.r7v_1;
|
|
456
|
+
this.t7v_1 = this.s7v_1.l7w_1;
|
|
457
|
+
if (this.t7v_1 == null) {
|
|
458
|
+
this.u7v_1 = null;
|
|
459
459
|
this.x9_1 = 7;
|
|
460
460
|
continue $sm;
|
|
461
461
|
} else {
|
|
462
462
|
var tmp_7 = this;
|
|
463
|
-
tmp_7.
|
|
464
|
-
this.
|
|
463
|
+
tmp_7.v7v_1 = this.t7v_1;
|
|
464
|
+
this.w7v_1 = this.v7v_1;
|
|
465
465
|
var tmp_8 = this;
|
|
466
|
-
tmp_8.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
469
|
-
if (this.
|
|
466
|
+
tmp_8.x7v_1 = this.w7v_1;
|
|
467
|
+
this.y7v_1 = this.x7v_1;
|
|
468
|
+
this.z7v_1 = this.y7v_1.p7w_1;
|
|
469
|
+
if (this.z7v_1 === 'input_json_delta') {
|
|
470
470
|
this.x9_1 = 5;
|
|
471
|
-
var tmp1_elvis_lhs = this.
|
|
471
|
+
var tmp1_elvis_lhs = this.s7v_1.j7w_1;
|
|
472
472
|
var tmp_9;
|
|
473
473
|
if (tmp1_elvis_lhs == null) {
|
|
474
474
|
var message_0 = 'Tool index is missing';
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
tmp_9 = tmp1_elvis_lhs;
|
|
478
478
|
}
|
|
479
479
|
var tmp_10 = tmp_9;
|
|
480
|
-
var tmp2_elvis_lhs = this.
|
|
480
|
+
var tmp2_elvis_lhs = this.y7v_1.r7w_1;
|
|
481
481
|
var tmp_11;
|
|
482
482
|
if (tmp2_elvis_lhs == null) {
|
|
483
483
|
var message_1 = 'Tool args are missing';
|
|
@@ -485,15 +485,15 @@
|
|
|
485
485
|
} else {
|
|
486
486
|
tmp_11 = tmp2_elvis_lhs;
|
|
487
487
|
}
|
|
488
|
-
suspendResult = this.
|
|
488
|
+
suspendResult = this.a7v_1.s4c(tmp_10, VOID, VOID, tmp_11, this);
|
|
489
489
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
490
490
|
return suspendResult;
|
|
491
491
|
}
|
|
492
492
|
continue $sm;
|
|
493
493
|
} else {
|
|
494
|
-
if (this.
|
|
494
|
+
if (this.z7v_1 === 'text_delta') {
|
|
495
495
|
this.x9_1 = 4;
|
|
496
|
-
var tmp3_elvis_lhs = this.
|
|
496
|
+
var tmp3_elvis_lhs = this.y7v_1.q7w_1;
|
|
497
497
|
var tmp_12;
|
|
498
498
|
if (tmp3_elvis_lhs == null) {
|
|
499
499
|
var message_2 = 'Text delta is missing';
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
} else {
|
|
502
502
|
tmp_12 = tmp3_elvis_lhs;
|
|
503
503
|
}
|
|
504
|
-
suspendResult = this.
|
|
504
|
+
suspendResult = this.a7v_1.p4c(tmp_12, this);
|
|
505
505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
506
506
|
return suspendResult;
|
|
507
507
|
}
|
|
@@ -514,45 +514,45 @@
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
} else {
|
|
517
|
-
if (this.
|
|
517
|
+
if (this.f7v_1 === 'content_block_stop') {
|
|
518
518
|
this.x9_1 = 3;
|
|
519
|
-
suspendResult = this.
|
|
519
|
+
suspendResult = this.a7v_1.f4b(this);
|
|
520
520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
521
521
|
return suspendResult;
|
|
522
522
|
}
|
|
523
523
|
continue $sm;
|
|
524
524
|
} else {
|
|
525
|
-
if (this.
|
|
526
|
-
this.
|
|
527
|
-
if (this.
|
|
528
|
-
this.
|
|
525
|
+
if (this.f7v_1 === 'message_delta') {
|
|
526
|
+
this.a7w_1 = invoke$decodeResponse(this.b7v_1, this.e7v_1);
|
|
527
|
+
if (this.a7w_1 == null) {
|
|
528
|
+
this.b7w_1 = null;
|
|
529
529
|
this.x9_1 = 2;
|
|
530
530
|
continue $sm;
|
|
531
531
|
} else {
|
|
532
532
|
var tmp_13 = this;
|
|
533
|
-
tmp_13.
|
|
534
|
-
this.
|
|
533
|
+
tmp_13.c7w_1 = this.a7w_1;
|
|
534
|
+
this.d7w_1 = this.c7w_1;
|
|
535
535
|
var tmp_14 = this;
|
|
536
|
-
tmp_14.
|
|
537
|
-
this.
|
|
538
|
-
var tmp0_safe_receiver = this.
|
|
536
|
+
tmp_14.e7w_1 = this.d7w_1;
|
|
537
|
+
this.f7w_1 = this.e7w_1;
|
|
538
|
+
var tmp0_safe_receiver = this.f7w_1.n7w_1;
|
|
539
539
|
if (tmp0_safe_receiver == null)
|
|
540
540
|
null;
|
|
541
541
|
else {
|
|
542
|
-
invoke$updateUsage(this.
|
|
542
|
+
invoke$updateUsage(this.c7v_1, this.d7v_1, tmp0_safe_receiver);
|
|
543
543
|
}
|
|
544
544
|
this.x9_1 = 1;
|
|
545
|
-
var tmp1_safe_receiver_0 = this.
|
|
546
|
-
suspendResult = this.
|
|
545
|
+
var tmp1_safe_receiver_0 = this.f7w_1.l7w_1;
|
|
546
|
+
suspendResult = this.a7v_1.q4c(tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.s7w_1, invoke$getMetaInfo(this.b7v_1, this.c7v_1, this.d7v_1), this);
|
|
547
547
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
548
548
|
return suspendResult;
|
|
549
549
|
}
|
|
550
550
|
continue $sm;
|
|
551
551
|
}
|
|
552
552
|
} else {
|
|
553
|
-
if (this.
|
|
554
|
-
var tmp7_safe_receiver = invoke$decodeResponse(this.
|
|
555
|
-
var message_3 = 'Anthropic error: ' + toString_0(tmp7_safe_receiver == null ? null : tmp7_safe_receiver.
|
|
553
|
+
if (this.f7v_1 === 'error') {
|
|
554
|
+
var tmp7_safe_receiver = invoke$decodeResponse(this.b7v_1, this.e7v_1);
|
|
555
|
+
var message_3 = 'Anthropic error: ' + toString_0(tmp7_safe_receiver == null ? null : tmp7_safe_receiver.o7w_1);
|
|
556
556
|
throw IllegalStateException_init_$Create$(toString(message_3));
|
|
557
557
|
} else {
|
|
558
558
|
this.x9_1 = 13;
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
|
|
567
567
|
case 1:
|
|
568
568
|
var tmp_15 = this;
|
|
569
|
-
tmp_15.
|
|
569
|
+
tmp_15.b7w_1 = Unit_instance;
|
|
570
570
|
this.x9_1 = 2;
|
|
571
571
|
continue $sm;
|
|
572
572
|
case 2:
|
|
@@ -583,12 +583,12 @@
|
|
|
583
583
|
continue $sm;
|
|
584
584
|
case 6:
|
|
585
585
|
var tmp_16 = this;
|
|
586
|
-
tmp_16.
|
|
586
|
+
tmp_16.u7v_1 = Unit_instance;
|
|
587
587
|
this.x9_1 = 7;
|
|
588
588
|
continue $sm;
|
|
589
589
|
case 7:
|
|
590
590
|
var tmp_17 = this;
|
|
591
|
-
tmp_17.
|
|
591
|
+
tmp_17.o7v_1 = Unit_instance;
|
|
592
592
|
this.x9_1 = 8;
|
|
593
593
|
continue $sm;
|
|
594
594
|
case 8:
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
continue $sm;
|
|
603
603
|
case 11:
|
|
604
604
|
var tmp_18 = this;
|
|
605
|
-
tmp_18.
|
|
605
|
+
tmp_18.h7v_1 = Unit_instance;
|
|
606
606
|
this.x9_1 = 12;
|
|
607
607
|
continue $sm;
|
|
608
608
|
case 12:
|
|
@@ -624,33 +624,33 @@
|
|
|
624
624
|
}
|
|
625
625
|
while (true);
|
|
626
626
|
};
|
|
627
|
-
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda$slambda).
|
|
628
|
-
var i = new AnthropicLLMClient$executeStreaming$slambda$slambda$slambda(this.
|
|
629
|
-
i.
|
|
627
|
+
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda$slambda).h7w = function (event, completion) {
|
|
628
|
+
var i = new AnthropicLLMClient$executeStreaming$slambda$slambda$slambda(this.a7v_1, this.b7v_1, this.c7v_1, this.d7v_1, completion);
|
|
629
|
+
i.e7v_1 = event;
|
|
630
630
|
return i;
|
|
631
631
|
};
|
|
632
632
|
function AnthropicLLMClient$executeStreaming$slambda$slambda$slambda_0($this_buildStreamFrameFlow, this$0, $inputTokens, $outputTokens, resultContinuation) {
|
|
633
633
|
var i = new AnthropicLLMClient$executeStreaming$slambda$slambda$slambda($this_buildStreamFrameFlow, this$0, $inputTokens, $outputTokens, resultContinuation);
|
|
634
634
|
var l = function (event, $completion) {
|
|
635
|
-
return i.
|
|
635
|
+
return i.g7w(event, $completion);
|
|
636
636
|
};
|
|
637
637
|
l.$arity = 1;
|
|
638
638
|
return l;
|
|
639
639
|
}
|
|
640
640
|
function AnthropicLLMClient$executeStreaming$slambda$lambda$lambda($this$headers) {
|
|
641
|
-
$this$headers.
|
|
642
|
-
$this$headers.
|
|
641
|
+
$this$headers.s4y(HttpHeaders_getInstance().u58_1, 'no-cache');
|
|
642
|
+
$this$headers.s4y(HttpHeaders_getInstance().v58_1, 'keep-alive');
|
|
643
643
|
return Unit_instance;
|
|
644
644
|
}
|
|
645
645
|
function AnthropicLLMClient$executeStreaming$slambda$lambda($request) {
|
|
646
646
|
return function ($this$sse) {
|
|
647
|
-
$this$sse.
|
|
648
|
-
accept($this$sse, Text_getInstance().
|
|
647
|
+
$this$sse.c65_1 = Companion_getInstance_0().r5c_1;
|
|
648
|
+
accept($this$sse, Text_getInstance().z57_1);
|
|
649
649
|
headers($this$sse, AnthropicLLMClient$executeStreaming$slambda$lambda$lambda);
|
|
650
650
|
// Inline function 'io.ktor.client.request.setBody' call
|
|
651
651
|
var body = $request;
|
|
652
652
|
if (body == null) {
|
|
653
|
-
$this$sse.
|
|
653
|
+
$this$sse.e65_1 = NullBody_instance;
|
|
654
654
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
655
655
|
var tmp = PrimitiveClasses_getInstance().fd();
|
|
656
656
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
@@ -669,13 +669,13 @@
|
|
|
669
669
|
}
|
|
670
670
|
var tmp$ret$0 = tmp_0;
|
|
671
671
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
672
|
-
$this$sse.
|
|
672
|
+
$this$sse.o6b(tmp$ret$1);
|
|
673
673
|
} else {
|
|
674
674
|
if (body instanceof OutgoingContent) {
|
|
675
|
-
$this$sse.
|
|
676
|
-
$this$sse.
|
|
675
|
+
$this$sse.e65_1 = body;
|
|
676
|
+
$this$sse.o6b(null);
|
|
677
677
|
} else {
|
|
678
|
-
$this$sse.
|
|
678
|
+
$this$sse.e65_1 = body;
|
|
679
679
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
680
680
|
var tmp_2 = PrimitiveClasses_getInstance().fd();
|
|
681
681
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
@@ -694,25 +694,25 @@
|
|
|
694
694
|
}
|
|
695
695
|
var tmp$ret$2 = tmp_3;
|
|
696
696
|
var tmp$ret$3 = new TypeInfo(tmp_2, tmp$ret$2);
|
|
697
|
-
$this$sse.
|
|
697
|
+
$this$sse.o6b(tmp$ret$3);
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
return Unit_instance;
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
703
|
function AnthropicLLMClient$executeStreaming$slambda$slambda($this_buildStreamFrameFlow, this$0, resultContinuation) {
|
|
704
|
-
this.
|
|
705
|
-
this.
|
|
704
|
+
this.n7x_1 = $this_buildStreamFrameFlow;
|
|
705
|
+
this.o7x_1 = this$0;
|
|
706
706
|
CoroutineImpl.call(this, resultContinuation);
|
|
707
707
|
}
|
|
708
|
-
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda).
|
|
709
|
-
var tmp = this.
|
|
708
|
+
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda).s7x = function ($this$sse, $completion) {
|
|
709
|
+
var tmp = this.t7x($this$sse, $completion);
|
|
710
710
|
tmp.z9_1 = Unit_instance;
|
|
711
711
|
tmp.aa_1 = null;
|
|
712
712
|
return tmp.fa();
|
|
713
713
|
};
|
|
714
714
|
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda).ra = function (p1, $completion) {
|
|
715
|
-
return this.
|
|
715
|
+
return this.s7x(p1 instanceof ClientSSESession ? p1 : THROW_CCE(), $completion);
|
|
716
716
|
};
|
|
717
717
|
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda).fa = function () {
|
|
718
718
|
var suspendResult = this.z9_1;
|
|
@@ -722,11 +722,11 @@
|
|
|
722
722
|
switch (tmp) {
|
|
723
723
|
case 0:
|
|
724
724
|
this.y9_1 = 2;
|
|
725
|
-
this.
|
|
726
|
-
this.
|
|
725
|
+
this.q7x_1 = {_v: null};
|
|
726
|
+
this.r7x_1 = {_v: null};
|
|
727
727
|
this.x9_1 = 1;
|
|
728
|
-
var tmp_0 = this.
|
|
729
|
-
var tmp_1 = AnthropicLLMClient$executeStreaming$slambda$slambda$slambda_0(this.
|
|
728
|
+
var tmp_0 = this.p7x_1.d6z();
|
|
729
|
+
var tmp_1 = AnthropicLLMClient$executeStreaming$slambda$slambda$slambda_0(this.n7x_1, this.o7x_1, this.q7x_1, this.r7x_1, null);
|
|
730
730
|
suspendResult = tmp_0.g2k(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
731
731
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
732
732
|
return suspendResult;
|
|
@@ -749,15 +749,15 @@
|
|
|
749
749
|
}
|
|
750
750
|
while (true);
|
|
751
751
|
};
|
|
752
|
-
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda).
|
|
753
|
-
var i = new AnthropicLLMClient$executeStreaming$slambda$slambda(this.
|
|
754
|
-
i.
|
|
752
|
+
protoOf(AnthropicLLMClient$executeStreaming$slambda$slambda).t7x = function ($this$sse, completion) {
|
|
753
|
+
var i = new AnthropicLLMClient$executeStreaming$slambda$slambda(this.n7x_1, this.o7x_1, completion);
|
|
754
|
+
i.p7x_1 = $this$sse;
|
|
755
755
|
return i;
|
|
756
756
|
};
|
|
757
757
|
function AnthropicLLMClient$executeStreaming$slambda$slambda_0($this_buildStreamFrameFlow, this$0, resultContinuation) {
|
|
758
758
|
var i = new AnthropicLLMClient$executeStreaming$slambda$slambda($this_buildStreamFrameFlow, this$0, resultContinuation);
|
|
759
759
|
var l = function ($this$sse, $completion) {
|
|
760
|
-
return i.
|
|
760
|
+
return i.s7x($this$sse, $completion);
|
|
761
761
|
};
|
|
762
762
|
l.$arity = 1;
|
|
763
763
|
return l;
|
|
@@ -766,8 +766,8 @@
|
|
|
766
766
|
Companion_instance = this;
|
|
767
767
|
var tmp = this;
|
|
768
768
|
var tmp_0 = KotlinLogging_instance;
|
|
769
|
-
tmp.
|
|
770
|
-
this.
|
|
769
|
+
tmp.u7x_1 = tmp_0.f3i(AnthropicLLMClient$Companion$logger$lambda);
|
|
770
|
+
this.v7x_1 = 'v1/messages';
|
|
771
771
|
}
|
|
772
772
|
var Companion_instance;
|
|
773
773
|
function Companion_getInstance_2() {
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
var systemMessage = ArrayList_init_$Create$();
|
|
781
781
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
782
782
|
var messages = ArrayList_init_$Create$();
|
|
783
|
-
var _iterator__ex2g4s = prompt.
|
|
783
|
+
var _iterator__ex2g4s = prompt.e44_1.p();
|
|
784
784
|
while (_iterator__ex2g4s.q()) {
|
|
785
785
|
var message = _iterator__ex2g4s.r();
|
|
786
786
|
if (message instanceof System) {
|
|
@@ -797,12 +797,12 @@
|
|
|
797
797
|
messages.h(new AnthropicMessage('assistant', listOf(new Text_0(message.v1j()))));
|
|
798
798
|
} else {
|
|
799
799
|
if (message instanceof Result) {
|
|
800
|
-
var tmp1_elvis_lhs = message.
|
|
800
|
+
var tmp1_elvis_lhs = message.u44_1;
|
|
801
801
|
messages.h(new AnthropicMessage('user', listOf(new ToolResult(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs, message.v1j()))));
|
|
802
802
|
} else {
|
|
803
803
|
if (message instanceof Call) {
|
|
804
|
-
var tmp2_elvis_lhs = message.
|
|
805
|
-
messages.h(new AnthropicMessage('assistant', listOf(new ToolUse(tmp2_elvis_lhs == null ? Companion_getInstance_1().et().toString() : tmp2_elvis_lhs, message.
|
|
804
|
+
var tmp2_elvis_lhs = message.o44_1;
|
|
805
|
+
messages.h(new AnthropicMessage('assistant', listOf(new ToolUse(tmp2_elvis_lhs == null ? Companion_getInstance_1().et().toString() : tmp2_elvis_lhs, message.p44_1, get_jsonObject(Default_getInstance().k1h(message.v1j()))))));
|
|
806
806
|
} else {
|
|
807
807
|
noWhenBranchMatchedException();
|
|
808
808
|
}
|
|
@@ -820,31 +820,31 @@
|
|
|
820
820
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
821
821
|
var properties = LinkedHashMap_init_$Create$();
|
|
822
822
|
// Inline function 'kotlin.collections.forEach' call
|
|
823
|
-
var _iterator__ex2g4s_1 = plus(item.
|
|
823
|
+
var _iterator__ex2g4s_1 = plus(item.y7x_1, item.z7x_1).p();
|
|
824
824
|
while (_iterator__ex2g4s_1.q()) {
|
|
825
825
|
var element = _iterator__ex2g4s_1.r();
|
|
826
|
-
var typeMap = getTypeMapForParameter($this, element.
|
|
827
|
-
var tmp2 = element.
|
|
826
|
+
var typeMap = getTypeMapForParameter($this, element.c7y_1);
|
|
827
|
+
var tmp2 = element.a7y_1;
|
|
828
828
|
// Inline function 'kotlin.collections.set' call
|
|
829
|
-
var value = new JsonObject(plus_0(mapOf(to('description', JsonPrimitive(element.
|
|
829
|
+
var value = new JsonObject(plus_0(mapOf(to('description', JsonPrimitive(element.b7y_1))), typeMap));
|
|
830
830
|
properties.r2(tmp2, value);
|
|
831
831
|
}
|
|
832
832
|
var tmp = new JsonObject(properties);
|
|
833
833
|
// Inline function 'kotlin.collections.map' call
|
|
834
|
-
var this_1 = item.
|
|
834
|
+
var this_1 = item.y7x_1;
|
|
835
835
|
// Inline function 'kotlin.collections.mapTo' call
|
|
836
836
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
837
837
|
var _iterator__ex2g4s_2 = this_1.p();
|
|
838
838
|
while (_iterator__ex2g4s_2.q()) {
|
|
839
839
|
var item_0 = _iterator__ex2g4s_2.r();
|
|
840
|
-
var tmp$ret$7 = item_0.
|
|
840
|
+
var tmp$ret$7 = item_0.a7y_1;
|
|
841
841
|
destination_0.h(tmp$ret$7);
|
|
842
842
|
}
|
|
843
|
-
var tmp$ret$10 = new AnthropicTool(item.
|
|
843
|
+
var tmp$ret$10 = new AnthropicTool(item.w7x_1, item.x7x_1, new AnthropicToolSchema(tmp, destination_0));
|
|
844
844
|
destination.h(tmp$ret$10);
|
|
845
845
|
}
|
|
846
846
|
var anthropicTools = destination;
|
|
847
|
-
var toolChoice = prompt.
|
|
847
|
+
var toolChoice = prompt.g44_1.e43_1;
|
|
848
848
|
var tmp_0;
|
|
849
849
|
if (equals(toolChoice, Auto_getInstance())) {
|
|
850
850
|
tmp_0 = Auto_getInstance_0();
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
tmp_0 = Any_getInstance();
|
|
857
857
|
} else {
|
|
858
858
|
if (toolChoice instanceof Named) {
|
|
859
|
-
tmp_0 = new Tool(toolChoice.
|
|
859
|
+
tmp_0 = new Tool(toolChoice.r49_1);
|
|
860
860
|
} else {
|
|
861
861
|
if (toolChoice == null) {
|
|
862
862
|
tmp_0 = null;
|
|
@@ -869,11 +869,11 @@
|
|
|
869
869
|
}
|
|
870
870
|
var toolChoice_0 = tmp_0;
|
|
871
871
|
// Inline function 'kotlin.require' call
|
|
872
|
-
if (!(prompt.
|
|
872
|
+
if (!(prompt.g44_1.d43_1 == null)) {
|
|
873
873
|
var message_0 = 'Anthropic does not currently support native structured output.';
|
|
874
874
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
875
875
|
}
|
|
876
|
-
var tmp3_elvis_lhs = $this.
|
|
876
|
+
var tmp3_elvis_lhs = $this.m7u_1.d7y_1.j2(model);
|
|
877
877
|
var tmp_1;
|
|
878
878
|
if (tmp3_elvis_lhs == null) {
|
|
879
879
|
throw IllegalArgumentException_init_$Create$('Unsupported model: ' + model.toString());
|
|
@@ -881,7 +881,7 @@
|
|
|
881
881
|
tmp_1 = tmp3_elvis_lhs;
|
|
882
882
|
}
|
|
883
883
|
var tmp_2 = tmp_1;
|
|
884
|
-
var tmp4_elvis_lhs = prompt.
|
|
884
|
+
var tmp4_elvis_lhs = prompt.g44_1.a43_1;
|
|
885
885
|
var tmp_3 = tmp4_elvis_lhs == null ? 2048 : tmp4_elvis_lhs;
|
|
886
886
|
var tmp_4;
|
|
887
887
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -890,8 +890,8 @@
|
|
|
890
890
|
} else {
|
|
891
891
|
tmp_4 = emptyList();
|
|
892
892
|
}
|
|
893
|
-
var request = new AnthropicMessageRequest(tmp_2, messages, tmp_3, prompt.
|
|
894
|
-
return $this.
|
|
893
|
+
var request = new AnthropicMessageRequest(tmp_2, messages, tmp_3, prompt.g44_1.z42_1, systemMessage, tmp_4, stream, toolChoice_0, prompt.g44_1.i43_1);
|
|
894
|
+
return $this.o7u_1.gw(AnthropicMessageRequestSerializer_getInstance(), request);
|
|
895
895
|
}
|
|
896
896
|
function toAnthropicUserMessage($this, _this__u8e3s4, model) {
|
|
897
897
|
// Inline function 'kotlin.collections.buildList' call
|
|
@@ -899,25 +899,25 @@
|
|
|
899
899
|
// Inline function 'kotlin.apply' call
|
|
900
900
|
var this_0 = ArrayList_init_$Create$();
|
|
901
901
|
// Inline function 'kotlin.collections.forEach' call
|
|
902
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
902
|
+
var _iterator__ex2g4s = _this__u8e3s4.j47_1.p();
|
|
903
903
|
while (_iterator__ex2g4s.q()) {
|
|
904
904
|
var element = _iterator__ex2g4s.r();
|
|
905
905
|
if (element instanceof Text)
|
|
906
|
-
this_0.h(new Text_0(element.
|
|
906
|
+
this_0.h(new Text_0(element.c46_1));
|
|
907
907
|
else {
|
|
908
908
|
if (element instanceof Image) {
|
|
909
909
|
// Inline function 'kotlin.require' call
|
|
910
|
-
if (!model.
|
|
911
|
-
var message = 'Model ' + model.
|
|
910
|
+
if (!model.i3h_1.w(Image_getInstance())) {
|
|
911
|
+
var message = 'Model ' + model.h3h_1 + ' does not support images';
|
|
912
912
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
913
913
|
}
|
|
914
|
-
var content = element.
|
|
914
|
+
var content = element.g46_1;
|
|
915
915
|
var tmp;
|
|
916
916
|
if (content instanceof URL) {
|
|
917
|
-
tmp = new Url(content.
|
|
917
|
+
tmp = new Url(content.q45_1);
|
|
918
918
|
} else {
|
|
919
919
|
if (isInterface(content, Binary)) {
|
|
920
|
-
tmp = new Base64(content.
|
|
920
|
+
tmp = new Base64(content.y45(), element.i46_1);
|
|
921
921
|
} else {
|
|
922
922
|
throw IllegalArgumentException_init_$Create$('Unsupported image attachment content: ' + toString(getKClassFromExpression(content)));
|
|
923
923
|
}
|
|
@@ -927,20 +927,20 @@
|
|
|
927
927
|
} else {
|
|
928
928
|
if (element instanceof File) {
|
|
929
929
|
// Inline function 'kotlin.require' call
|
|
930
|
-
if (!model.
|
|
931
|
-
var message_0 = 'Model ' + model.
|
|
930
|
+
if (!model.i3h_1.w(Document_getInstance())) {
|
|
931
|
+
var message_0 = 'Model ' + model.h3h_1 + ' does not support files';
|
|
932
932
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
933
933
|
}
|
|
934
|
-
var content_0 = element.
|
|
934
|
+
var content_0 = element.b47_1;
|
|
935
935
|
var tmp_0;
|
|
936
936
|
if (content_0 instanceof URL) {
|
|
937
|
-
tmp_0 = new Url_0(content_0.
|
|
937
|
+
tmp_0 = new Url_0(content_0.q45_1);
|
|
938
938
|
} else {
|
|
939
939
|
if (isInterface(content_0, Binary)) {
|
|
940
|
-
tmp_0 = new Base64_0(content_0.
|
|
940
|
+
tmp_0 = new Base64_0(content_0.y45(), element.d47_1);
|
|
941
941
|
} else {
|
|
942
942
|
if (content_0 instanceof PlainText) {
|
|
943
|
-
tmp_0 = new PlainText_0(content_0.
|
|
943
|
+
tmp_0 = new PlainText_0(content_0.n45_1, element.d47_1);
|
|
944
944
|
} else {
|
|
945
945
|
noWhenBranchMatchedException();
|
|
946
946
|
}
|
|
@@ -958,30 +958,30 @@
|
|
|
958
958
|
return new AnthropicMessage('user', listOfContent);
|
|
959
959
|
}
|
|
960
960
|
function processAnthropicResponse($this, response) {
|
|
961
|
-
var tmp0_safe_receiver = response.
|
|
962
|
-
var inputTokensCount = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
963
|
-
var tmp1_safe_receiver = response.
|
|
964
|
-
var outputTokensCount = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
965
|
-
var tmp2_safe_receiver = response.
|
|
961
|
+
var tmp0_safe_receiver = response.e7x_1;
|
|
962
|
+
var inputTokensCount = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q7u_1;
|
|
963
|
+
var tmp1_safe_receiver = response.e7x_1;
|
|
964
|
+
var outputTokensCount = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r7u_1;
|
|
965
|
+
var tmp2_safe_receiver = response.e7x_1;
|
|
966
966
|
var tmp;
|
|
967
967
|
if (tmp2_safe_receiver == null) {
|
|
968
968
|
tmp = null;
|
|
969
969
|
} else {
|
|
970
970
|
// Inline function 'kotlin.let' call
|
|
971
|
-
var tmp0_safe_receiver_0 = tmp2_safe_receiver.
|
|
971
|
+
var tmp0_safe_receiver_0 = tmp2_safe_receiver.q7u_1;
|
|
972
972
|
var tmp_0;
|
|
973
973
|
if (tmp0_safe_receiver_0 == null) {
|
|
974
974
|
tmp_0 = null;
|
|
975
975
|
} else {
|
|
976
|
-
var tmp1_elvis_lhs = tmp2_safe_receiver.
|
|
976
|
+
var tmp1_elvis_lhs = tmp2_safe_receiver.r7u_1;
|
|
977
977
|
tmp_0 = tmp0_safe_receiver_0 + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
978
978
|
}
|
|
979
979
|
var tmp2_elvis_lhs = tmp_0;
|
|
980
|
-
tmp = tmp2_elvis_lhs == null ? tmp2_safe_receiver.
|
|
980
|
+
tmp = tmp2_elvis_lhs == null ? tmp2_safe_receiver.r7u_1 : tmp2_elvis_lhs;
|
|
981
981
|
}
|
|
982
982
|
var totalTokensCount = tmp;
|
|
983
983
|
// Inline function 'kotlin.collections.map' call
|
|
984
|
-
var this_0 = response.
|
|
984
|
+
var this_0 = response.b7x_1;
|
|
985
985
|
// Inline function 'kotlin.collections.mapTo' call
|
|
986
986
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
987
987
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -989,13 +989,13 @@
|
|
|
989
989
|
var item = _iterator__ex2g4s.r();
|
|
990
990
|
var tmp_1;
|
|
991
991
|
if (item instanceof Text_1) {
|
|
992
|
-
var tmp1_content = item.
|
|
993
|
-
var tmp2_finishReason = response.
|
|
994
|
-
var tmp3_metaInfo = Companion_getInstance().
|
|
992
|
+
var tmp1_content = item.k7y_1;
|
|
993
|
+
var tmp2_finishReason = response.d7x_1;
|
|
994
|
+
var tmp3_metaInfo = Companion_getInstance().i45($this.n7u_1, totalTokensCount, inputTokensCount, outputTokensCount);
|
|
995
995
|
tmp_1 = Assistant_init_$Create$(tmp1_content, tmp3_metaInfo, tmp2_finishReason);
|
|
996
996
|
} else {
|
|
997
997
|
if (item instanceof ToolUse_0) {
|
|
998
|
-
tmp_1 = Call_init_$Create$(item.
|
|
998
|
+
tmp_1 = Call_init_$Create$(item.h7y_1, item.i7y_1, item.j7y_1.toString(), Companion_getInstance().i45($this.n7u_1, totalTokensCount, inputTokensCount, outputTokensCount));
|
|
999
999
|
} else {
|
|
1000
1000
|
noWhenBranchMatchedException();
|
|
1001
1001
|
}
|
|
@@ -1042,8 +1042,8 @@
|
|
|
1042
1042
|
tmp_2 = destination_0;
|
|
1043
1043
|
} else {
|
|
1044
1044
|
if (responses.m()) {
|
|
1045
|
-
var tmp3_finishReason = response.
|
|
1046
|
-
var tmp4_metaInfo = Companion_getInstance().
|
|
1045
|
+
var tmp3_finishReason = response.d7x_1;
|
|
1046
|
+
var tmp4_metaInfo = Companion_getInstance().i45($this.n7u_1, totalTokensCount, inputTokensCount, outputTokensCount);
|
|
1047
1047
|
tmp_2 = listOf(Assistant_init_$Create$('', tmp4_metaInfo, tmp3_finishReason));
|
|
1048
1048
|
} else {
|
|
1049
1049
|
tmp_2 = responses;
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
if (type instanceof Enum) {
|
|
1069
1069
|
var tmp_0 = to('type', JsonPrimitive('string'));
|
|
1070
1070
|
// Inline function 'kotlin.collections.map' call
|
|
1071
|
-
var this_0 = type.
|
|
1071
|
+
var this_0 = type.s7y_1;
|
|
1072
1072
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1073
1073
|
var destination = ArrayList_init_$Create$_0(this_0.length);
|
|
1074
1074
|
var inductionVariable = 0;
|
|
@@ -1085,15 +1085,15 @@
|
|
|
1085
1085
|
tmp = new JsonObject(mapOf_0([tmp_0, to('enum', new JsonArray(destination))]));
|
|
1086
1086
|
} else {
|
|
1087
1087
|
if (type instanceof List) {
|
|
1088
|
-
tmp = new JsonObject(mapOf_0([to('type', JsonPrimitive('array')), to('items', getTypeMapForParameter($this, type.
|
|
1088
|
+
tmp = new JsonObject(mapOf_0([to('type', JsonPrimitive('array')), to('items', getTypeMapForParameter($this, type.q7y_1))]));
|
|
1089
1089
|
} else {
|
|
1090
1090
|
if (type instanceof Object_0) {
|
|
1091
1091
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1092
1092
|
var propertiesMap = LinkedHashMap_init_$Create$();
|
|
1093
|
-
var _iterator__ex2g4s = type.
|
|
1093
|
+
var _iterator__ex2g4s = type.m7y_1.p();
|
|
1094
1094
|
while (_iterator__ex2g4s.q()) {
|
|
1095
1095
|
var prop = _iterator__ex2g4s.r();
|
|
1096
|
-
var typeInfo = getTypeMapForParameter($this, prop.
|
|
1096
|
+
var typeInfo = getTypeMapForParameter($this, prop.c7y_1);
|
|
1097
1097
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1098
1098
|
var propMap = LinkedHashMap_init_$Create$();
|
|
1099
1099
|
var _iterator__ex2g4s_0 = typeInfo.z().p();
|
|
@@ -1106,9 +1106,9 @@
|
|
|
1106
1106
|
}
|
|
1107
1107
|
var tmp2_0 = 'description';
|
|
1108
1108
|
// Inline function 'kotlin.collections.set' call
|
|
1109
|
-
var value_0 = JsonPrimitive(prop.
|
|
1109
|
+
var value_0 = JsonPrimitive(prop.b7y_1);
|
|
1110
1110
|
propMap.r2(tmp2_0, value_0);
|
|
1111
|
-
var tmp2_1 = prop.
|
|
1111
|
+
var tmp2_1 = prop.a7y_1;
|
|
1112
1112
|
// Inline function 'kotlin.collections.set' call
|
|
1113
1113
|
var value_1 = new JsonObject(propMap);
|
|
1114
1114
|
propertiesMap.r2(tmp2_1, value_1);
|
|
@@ -1123,10 +1123,10 @@
|
|
|
1123
1123
|
var value_3 = new JsonObject(propertiesMap);
|
|
1124
1124
|
objectMap.r2(tmp2_2, value_3);
|
|
1125
1125
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1126
|
-
if (!type.
|
|
1126
|
+
if (!type.n7y_1.m()) {
|
|
1127
1127
|
var tmp2_3 = 'required';
|
|
1128
1128
|
// Inline function 'kotlin.collections.map' call
|
|
1129
|
-
var this_1 = type.
|
|
1129
|
+
var this_1 = type.n7y_1;
|
|
1130
1130
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1131
1131
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
1132
1132
|
var _iterator__ex2g4s_1 = this_1.p();
|
|
@@ -1140,7 +1140,7 @@
|
|
|
1140
1140
|
objectMap.r2(tmp2_3, value_4);
|
|
1141
1141
|
}
|
|
1142
1142
|
var tmp2_4 = 'additionalProperties';
|
|
1143
|
-
var tmp1_elvis_lhs = type.
|
|
1143
|
+
var tmp1_elvis_lhs = type.o7y_1;
|
|
1144
1144
|
// Inline function 'kotlin.collections.set' call
|
|
1145
1145
|
var value_5 = JsonPrimitive_0(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
1146
1146
|
objectMap.r2(tmp2_4, value_5);
|
|
@@ -1157,13 +1157,13 @@
|
|
|
1157
1157
|
return tmp;
|
|
1158
1158
|
}
|
|
1159
1159
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
1160
|
-
this.
|
|
1160
|
+
this.t7y_1 = function_0;
|
|
1161
1161
|
}
|
|
1162
1162
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b2l = function (value, $completion) {
|
|
1163
|
-
return this.
|
|
1163
|
+
return this.t7y_1(value, $completion);
|
|
1164
1164
|
};
|
|
1165
1165
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
|
|
1166
|
-
return this.
|
|
1166
|
+
return this.t7y_1;
|
|
1167
1167
|
};
|
|
1168
1168
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
1169
1169
|
var tmp;
|
|
@@ -1193,35 +1193,35 @@
|
|
|
1193
1193
|
}
|
|
1194
1194
|
function AnthropicLLMClient$httpClient$lambda$lambda(this$0) {
|
|
1195
1195
|
return function ($this$defaultRequest) {
|
|
1196
|
-
$this$defaultRequest.
|
|
1197
|
-
contentType($this$defaultRequest, Application_getInstance().
|
|
1198
|
-
header($this$defaultRequest, 'x-api-key', this$0.
|
|
1199
|
-
header($this$defaultRequest, 'anthropic-version', this$0.
|
|
1196
|
+
$this$defaultRequest.u6f(this$0.m7u_1.e7y_1);
|
|
1197
|
+
contentType($this$defaultRequest, Application_getInstance().m56_1);
|
|
1198
|
+
header($this$defaultRequest, 'x-api-key', this$0.l7u_1);
|
|
1199
|
+
header($this$defaultRequest, 'anthropic-version', this$0.m7u_1.f7y_1);
|
|
1200
1200
|
return Unit_instance;
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
function AnthropicLLMClient$httpClient$lambda$lambda_0(this$0) {
|
|
1204
1204
|
return function ($this$install) {
|
|
1205
|
-
json($this$install, this$0.
|
|
1205
|
+
json($this$install, this$0.o7u_1);
|
|
1206
1206
|
return Unit_instance;
|
|
1207
1207
|
};
|
|
1208
1208
|
}
|
|
1209
1209
|
function AnthropicLLMClient$httpClient$lambda$lambda_1(this$0) {
|
|
1210
1210
|
return function ($this$install) {
|
|
1211
|
-
$this$install.
|
|
1212
|
-
$this$install.
|
|
1213
|
-
$this$install.
|
|
1211
|
+
$this$install.l6u(this$0.m7u_1.g7y_1.u4e_1);
|
|
1212
|
+
$this$install.m6u(this$0.m7u_1.g7y_1.v4e_1);
|
|
1213
|
+
$this$install.n6u(this$0.m7u_1.g7y_1.w4e_1);
|
|
1214
1214
|
return Unit_instance;
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
1217
|
function AnthropicLLMClient$httpClient$lambda(this$0) {
|
|
1218
1218
|
return function ($this$config) {
|
|
1219
1219
|
defaultRequest($this$config, AnthropicLLMClient$httpClient$lambda$lambda(this$0));
|
|
1220
|
-
$this$config.
|
|
1220
|
+
$this$config.w65(get_SSE());
|
|
1221
1221
|
var tmp = get_ContentNegotiation();
|
|
1222
|
-
$this$config.
|
|
1222
|
+
$this$config.j66(tmp, AnthropicLLMClient$httpClient$lambda$lambda_0(this$0));
|
|
1223
1223
|
var tmp_0 = get_HttpTimeout();
|
|
1224
|
-
$this$config.
|
|
1224
|
+
$this$config.j66(tmp_0, AnthropicLLMClient$httpClient$lambda$lambda_1(this$0));
|
|
1225
1225
|
return Unit_instance;
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
@@ -1231,18 +1231,18 @@
|
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
1233
|
function AnthropicLLMClient$execute$slambda(this$0, $request, resultContinuation) {
|
|
1234
|
-
this.
|
|
1235
|
-
this.
|
|
1234
|
+
this.c7z_1 = this$0;
|
|
1235
|
+
this.d7z_1 = $request;
|
|
1236
1236
|
CoroutineImpl.call(this, resultContinuation);
|
|
1237
1237
|
}
|
|
1238
|
-
protoOf(AnthropicLLMClient$execute$slambda).
|
|
1238
|
+
protoOf(AnthropicLLMClient$execute$slambda).u7z = function ($this$withContext, $completion) {
|
|
1239
1239
|
var tmp = this.y2q($this$withContext, $completion);
|
|
1240
1240
|
tmp.z9_1 = Unit_instance;
|
|
1241
1241
|
tmp.aa_1 = null;
|
|
1242
1242
|
return tmp.fa();
|
|
1243
1243
|
};
|
|
1244
1244
|
protoOf(AnthropicLLMClient$execute$slambda).ra = function (p1, $completion) {
|
|
1245
|
-
return this.
|
|
1245
|
+
return this.u7z((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1246
1246
|
};
|
|
1247
1247
|
protoOf(AnthropicLLMClient$execute$slambda).fa = function () {
|
|
1248
1248
|
var suspendResult = this.z9_1;
|
|
@@ -1253,21 +1253,21 @@
|
|
|
1253
1253
|
case 0:
|
|
1254
1254
|
this.y9_1 = 5;
|
|
1255
1255
|
var tmp_0 = this;
|
|
1256
|
-
tmp_0.
|
|
1256
|
+
tmp_0.f7z_1 = this.c7z_1.p7u_1;
|
|
1257
1257
|
var tmp_1 = this;
|
|
1258
|
-
tmp_1.
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1258
|
+
tmp_1.g7z_1 = 'v1/messages';
|
|
1259
|
+
this.h7z_1 = this.f7z_1;
|
|
1260
|
+
this.i7z_1 = this.g7z_1;
|
|
1261
1261
|
var tmp_2 = this;
|
|
1262
|
-
tmp_2.
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1266
|
-
var $this$post = this.
|
|
1267
|
-
url($this$post, this.
|
|
1268
|
-
var body = this.
|
|
1262
|
+
tmp_2.j7z_1 = this.h7z_1;
|
|
1263
|
+
this.k7z_1 = this.j7z_1;
|
|
1264
|
+
this.l7z_1 = new HttpRequestBuilder();
|
|
1265
|
+
this.l7z_1.c65_1 = Companion_getInstance_0().r5c_1;
|
|
1266
|
+
var $this$post = this.l7z_1;
|
|
1267
|
+
url($this$post, this.i7z_1);
|
|
1268
|
+
var body = this.d7z_1;
|
|
1269
1269
|
if (body == null) {
|
|
1270
|
-
$this$post.
|
|
1270
|
+
$this$post.e65_1 = NullBody_instance;
|
|
1271
1271
|
var tmp_3 = PrimitiveClasses_getInstance().fd();
|
|
1272
1272
|
var tmp_4;
|
|
1273
1273
|
try {
|
|
@@ -1282,13 +1282,13 @@
|
|
|
1282
1282
|
}
|
|
1283
1283
|
tmp_4 = tmp_5;
|
|
1284
1284
|
}
|
|
1285
|
-
$this$post.
|
|
1285
|
+
$this$post.o6b(new TypeInfo(tmp_3, tmp_4));
|
|
1286
1286
|
} else {
|
|
1287
1287
|
if (body instanceof OutgoingContent) {
|
|
1288
|
-
$this$post.
|
|
1289
|
-
$this$post.
|
|
1288
|
+
$this$post.e65_1 = body;
|
|
1289
|
+
$this$post.o6b(null);
|
|
1290
1290
|
} else {
|
|
1291
|
-
$this$post.
|
|
1291
|
+
$this$post.e65_1 = body;
|
|
1292
1292
|
var tmp_6 = PrimitiveClasses_getInstance().fd();
|
|
1293
1293
|
var tmp_7;
|
|
1294
1294
|
try {
|
|
@@ -1303,32 +1303,32 @@
|
|
|
1303
1303
|
}
|
|
1304
1304
|
tmp_7 = tmp_8;
|
|
1305
1305
|
}
|
|
1306
|
-
$this$post.
|
|
1306
|
+
$this$post.o6b(new TypeInfo(tmp_6, tmp_7));
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
1309
|
|
|
1310
|
-
this.
|
|
1310
|
+
this.l7z_1.c65_1 = Companion_getInstance_0().r5c_1;
|
|
1311
1311
|
var tmp_9 = this;
|
|
1312
|
-
tmp_9.
|
|
1312
|
+
tmp_9.m7z_1 = this.k7z_1;
|
|
1313
1313
|
var tmp_10 = this;
|
|
1314
|
-
tmp_10.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1314
|
+
tmp_10.n7z_1 = this.l7z_1;
|
|
1315
|
+
this.o7z_1 = this.m7z_1;
|
|
1316
|
+
this.p7z_1 = this.n7z_1;
|
|
1317
1317
|
this.x9_1 = 1;
|
|
1318
|
-
suspendResult = (new HttpStatement(this.
|
|
1318
|
+
suspendResult = (new HttpStatement(this.p7z_1, this.o7z_1)).i7f(this);
|
|
1319
1319
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1320
1320
|
return suspendResult;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
1323
|
continue $sm;
|
|
1324
1324
|
case 1:
|
|
1325
|
-
this.
|
|
1326
|
-
if (isSuccess(this.
|
|
1325
|
+
this.q7z_1 = suspendResult;
|
|
1326
|
+
if (isSuccess(this.q7z_1.f5i())) {
|
|
1327
1327
|
var tmp_11 = this;
|
|
1328
|
-
tmp_11.
|
|
1329
|
-
this.
|
|
1328
|
+
tmp_11.s7z_1 = this.q7z_1;
|
|
1329
|
+
this.t7z_1 = this.s7z_1;
|
|
1330
1330
|
this.x9_1 = 3;
|
|
1331
|
-
var tmp_12 = this.
|
|
1331
|
+
var tmp_12 = this.t7z_1.r66();
|
|
1332
1332
|
var tmp_13 = getKClass(AnthropicResponse);
|
|
1333
1333
|
var tmp_14;
|
|
1334
1334
|
try {
|
|
@@ -1343,14 +1343,14 @@
|
|
|
1343
1343
|
}
|
|
1344
1344
|
tmp_14 = tmp_15;
|
|
1345
1345
|
}
|
|
1346
|
-
suspendResult = tmp_12.
|
|
1346
|
+
suspendResult = tmp_12.o66(new TypeInfo(tmp_13, tmp_14), this);
|
|
1347
1347
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1348
1348
|
return suspendResult;
|
|
1349
1349
|
}
|
|
1350
1350
|
continue $sm;
|
|
1351
1351
|
} else {
|
|
1352
1352
|
this.x9_1 = 2;
|
|
1353
|
-
suspendResult = bodyAsText(this.
|
|
1353
|
+
suspendResult = bodyAsText(this.q7z_1, VOID, this);
|
|
1354
1354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1355
1355
|
return suspendResult;
|
|
1356
1356
|
}
|
|
@@ -1359,18 +1359,18 @@
|
|
|
1359
1359
|
|
|
1360
1360
|
case 2:
|
|
1361
1361
|
var errorBody = suspendResult;
|
|
1362
|
-
var tmp_16 = Companion_getInstance_2().
|
|
1363
|
-
tmp_16.
|
|
1362
|
+
var tmp_16 = Companion_getInstance_2().u7x_1;
|
|
1363
|
+
tmp_16.w3h(AnthropicLLMClient$execute$slambda$lambda(this.q7z_1, errorBody));
|
|
1364
1364
|
var tmp_17 = this;
|
|
1365
|
-
var message = 'Error from Anthropic API: ' + this.
|
|
1365
|
+
var message = 'Error from Anthropic API: ' + this.q7z_1.f5i().toString() + ': ' + errorBody;
|
|
1366
1366
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1367
1367
|
case 3:
|
|
1368
1368
|
var anthropicResponse = suspendResult instanceof AnthropicResponse ? suspendResult : THROW_CCE();
|
|
1369
|
-
this.
|
|
1369
|
+
this.r7z_1 = processAnthropicResponse(this.c7z_1, anthropicResponse);
|
|
1370
1370
|
this.x9_1 = 4;
|
|
1371
1371
|
continue $sm;
|
|
1372
1372
|
case 4:
|
|
1373
|
-
return this.
|
|
1373
|
+
return this.r7z_1;
|
|
1374
1374
|
case 5:
|
|
1375
1375
|
throw this.aa_1;
|
|
1376
1376
|
}
|
|
@@ -1386,14 +1386,14 @@
|
|
|
1386
1386
|
while (true);
|
|
1387
1387
|
};
|
|
1388
1388
|
protoOf(AnthropicLLMClient$execute$slambda).y2q = function ($this$withContext, completion) {
|
|
1389
|
-
var i = new AnthropicLLMClient$execute$slambda(this.
|
|
1390
|
-
i.
|
|
1389
|
+
var i = new AnthropicLLMClient$execute$slambda(this.c7z_1, this.d7z_1, completion);
|
|
1390
|
+
i.e7z_1 = $this$withContext;
|
|
1391
1391
|
return i;
|
|
1392
1392
|
};
|
|
1393
1393
|
function AnthropicLLMClient$execute$slambda_0(this$0, $request, resultContinuation) {
|
|
1394
1394
|
var i = new AnthropicLLMClient$execute$slambda(this$0, $request, resultContinuation);
|
|
1395
1395
|
var l = function ($this$withContext, $completion) {
|
|
1396
|
-
return i.
|
|
1396
|
+
return i.u7z($this$withContext, $completion);
|
|
1397
1397
|
};
|
|
1398
1398
|
l.$arity = 1;
|
|
1399
1399
|
return l;
|
|
@@ -1409,25 +1409,25 @@
|
|
|
1409
1409
|
var _iterator__ex2g4s = this_0.p();
|
|
1410
1410
|
while (_iterator__ex2g4s.q()) {
|
|
1411
1411
|
var item = _iterator__ex2g4s.r();
|
|
1412
|
-
var tmp$ret$0 = item.
|
|
1412
|
+
var tmp$ret$0 = item.w7x_1;
|
|
1413
1413
|
destination.h(tmp$ret$0);
|
|
1414
1414
|
}
|
|
1415
1415
|
return 'Executing streaming prompt: ' + tmp + ' with model: ' + tmp_0 + ' with tools: ' + toString(destination);
|
|
1416
1416
|
};
|
|
1417
1417
|
}
|
|
1418
1418
|
function AnthropicLLMClient$executeStreaming$slambda(this$0, $request, resultContinuation) {
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1419
|
+
this.d80_1 = this$0;
|
|
1420
|
+
this.e80_1 = $request;
|
|
1421
1421
|
CoroutineImpl.call(this, resultContinuation);
|
|
1422
1422
|
}
|
|
1423
|
-
protoOf(AnthropicLLMClient$executeStreaming$slambda).
|
|
1424
|
-
var tmp = this.
|
|
1423
|
+
protoOf(AnthropicLLMClient$executeStreaming$slambda).g80 = function ($this$buildStreamFrameFlow, $completion) {
|
|
1424
|
+
var tmp = this.h80($this$buildStreamFrameFlow, $completion);
|
|
1425
1425
|
tmp.z9_1 = Unit_instance;
|
|
1426
1426
|
tmp.aa_1 = null;
|
|
1427
1427
|
return tmp.fa();
|
|
1428
1428
|
};
|
|
1429
1429
|
protoOf(AnthropicLLMClient$executeStreaming$slambda).ra = function (p1, $completion) {
|
|
1430
|
-
return this.
|
|
1430
|
+
return this.g80(p1 instanceof StreamFrameFlowBuilder ? p1 : THROW_CCE(), $completion);
|
|
1431
1431
|
};
|
|
1432
1432
|
protoOf(AnthropicLLMClient$executeStreaming$slambda).fa = function () {
|
|
1433
1433
|
var suspendResult = this.z9_1;
|
|
@@ -1438,8 +1438,8 @@
|
|
|
1438
1438
|
case 0:
|
|
1439
1439
|
this.y9_1 = 2;
|
|
1440
1440
|
this.x9_1 = 1;
|
|
1441
|
-
var tmp_0 = AnthropicLLMClient$executeStreaming$slambda$lambda(this.
|
|
1442
|
-
suspendResult = sse(this.
|
|
1441
|
+
var tmp_0 = AnthropicLLMClient$executeStreaming$slambda$lambda(this.e80_1);
|
|
1442
|
+
suspendResult = sse(this.d80_1.p7u_1, 'v1/messages', tmp_0, VOID, VOID, VOID, AnthropicLLMClient$executeStreaming$slambda$slambda_0(this.f80_1, this.d80_1, null), this);
|
|
1443
1443
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1444
1444
|
return suspendResult;
|
|
1445
1445
|
}
|
|
@@ -1461,22 +1461,22 @@
|
|
|
1461
1461
|
}
|
|
1462
1462
|
while (true);
|
|
1463
1463
|
};
|
|
1464
|
-
protoOf(AnthropicLLMClient$executeStreaming$slambda).
|
|
1465
|
-
var i = new AnthropicLLMClient$executeStreaming$slambda(this.
|
|
1466
|
-
i.
|
|
1464
|
+
protoOf(AnthropicLLMClient$executeStreaming$slambda).h80 = function ($this$buildStreamFrameFlow, completion) {
|
|
1465
|
+
var i = new AnthropicLLMClient$executeStreaming$slambda(this.d80_1, this.e80_1, completion);
|
|
1466
|
+
i.f80_1 = $this$buildStreamFrameFlow;
|
|
1467
1467
|
return i;
|
|
1468
1468
|
};
|
|
1469
1469
|
function AnthropicLLMClient$executeStreaming$slambda_0(this$0, $request, resultContinuation) {
|
|
1470
1470
|
var i = new AnthropicLLMClient$executeStreaming$slambda(this$0, $request, resultContinuation);
|
|
1471
1471
|
var l = function ($this$buildStreamFrameFlow, $completion) {
|
|
1472
|
-
return i.
|
|
1472
|
+
return i.g80($this$buildStreamFrameFlow, $completion);
|
|
1473
1473
|
};
|
|
1474
1474
|
l.$arity = 1;
|
|
1475
1475
|
return l;
|
|
1476
1476
|
}
|
|
1477
1477
|
function AnthropicLLMClient$executeStreaming$lambda_0($response, $e) {
|
|
1478
1478
|
return function () {
|
|
1479
|
-
return 'Error from Anthropic API: ' + $response.
|
|
1479
|
+
return 'Error from Anthropic API: ' + $response.f5i().toString() + ': ' + $e.c75_1;
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
1482
|
function AnthropicLLMClient$executeStreaming$lambda_1($e) {
|
|
@@ -1489,37 +1489,37 @@
|
|
|
1489
1489
|
settings = settings === VOID ? new AnthropicClientSettings() : settings;
|
|
1490
1490
|
baseClient = baseClient === VOID ? HttpClient() : baseClient;
|
|
1491
1491
|
clock = clock === VOID ? System_instance : clock;
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1492
|
+
this.l7u_1 = apiKey;
|
|
1493
|
+
this.m7u_1 = settings;
|
|
1494
|
+
this.n7u_1 = clock;
|
|
1495
1495
|
var tmp = this;
|
|
1496
|
-
tmp.
|
|
1496
|
+
tmp.o7u_1 = Json(VOID, AnthropicLLMClient$json$lambda);
|
|
1497
1497
|
var tmp_0 = this;
|
|
1498
|
-
tmp_0.
|
|
1498
|
+
tmp_0.p7u_1 = baseClient.f66(AnthropicLLMClient$httpClient$lambda(this));
|
|
1499
1499
|
}
|
|
1500
|
-
protoOf(AnthropicLLMClient).
|
|
1501
|
-
var tmp = Companion_getInstance_2().
|
|
1502
|
-
tmp.
|
|
1500
|
+
protoOf(AnthropicLLMClient).o4e = function (prompt, model, tools, $completion) {
|
|
1501
|
+
var tmp = Companion_getInstance_2().u7x_1;
|
|
1502
|
+
tmp.t3h(AnthropicLLMClient$execute$lambda(prompt, tools, model));
|
|
1503
1503
|
// Inline function 'kotlin.require' call
|
|
1504
|
-
if (!model.
|
|
1505
|
-
var message = 'Model ' + model.
|
|
1504
|
+
if (!model.i3h_1.w(Completion_getInstance())) {
|
|
1505
|
+
var message = 'Model ' + model.h3h_1 + ' does not support chat completions';
|
|
1506
1506
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1507
1507
|
}
|
|
1508
1508
|
// Inline function 'kotlin.require' call
|
|
1509
|
-
if (!model.
|
|
1510
|
-
var message_0 = 'Model ' + model.
|
|
1509
|
+
if (!model.i3h_1.w(Tools_getInstance())) {
|
|
1510
|
+
var message_0 = 'Model ' + model.h3h_1 + ' does not support tools';
|
|
1511
1511
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1512
1512
|
}
|
|
1513
1513
|
var request = createAnthropicRequest(this, prompt, tools, model, false);
|
|
1514
1514
|
var tmp_0 = get_SuitableForIO(Dispatchers_getInstance());
|
|
1515
1515
|
return withContext(tmp_0, AnthropicLLMClient$execute$slambda_0(this, request, null), $completion);
|
|
1516
1516
|
};
|
|
1517
|
-
protoOf(AnthropicLLMClient).
|
|
1518
|
-
var tmp = Companion_getInstance_2().
|
|
1519
|
-
tmp.
|
|
1517
|
+
protoOf(AnthropicLLMClient).q4e = function (prompt, model, tools) {
|
|
1518
|
+
var tmp = Companion_getInstance_2().u7x_1;
|
|
1519
|
+
tmp.t3h(AnthropicLLMClient$executeStreaming$lambda(prompt, model, tools));
|
|
1520
1520
|
// Inline function 'kotlin.require' call
|
|
1521
|
-
if (!model.
|
|
1522
|
-
var message = 'Model ' + model.
|
|
1521
|
+
if (!model.i3h_1.w(Completion_getInstance())) {
|
|
1522
|
+
var message = 'Model ' + model.h3h_1 + ' does not support chat completions';
|
|
1523
1523
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1524
1524
|
}
|
|
1525
1525
|
var request = createAnthropicRequest(this, prompt, tools, model, true);
|
|
@@ -1528,21 +1528,21 @@
|
|
|
1528
1528
|
} catch ($p) {
|
|
1529
1529
|
if ($p instanceof SSEClientException) {
|
|
1530
1530
|
var e = $p;
|
|
1531
|
-
var tmp0_safe_receiver = e.
|
|
1531
|
+
var tmp0_safe_receiver = e.a75_1;
|
|
1532
1532
|
if (tmp0_safe_receiver == null)
|
|
1533
1533
|
null;
|
|
1534
1534
|
else {
|
|
1535
1535
|
// Inline function 'kotlin.let' call
|
|
1536
|
-
var tmp_0 = Companion_getInstance_2().
|
|
1537
|
-
tmp_0.
|
|
1538
|
-
var message_0 = 'Error from Anthropic API: ' + tmp0_safe_receiver.
|
|
1536
|
+
var tmp_0 = Companion_getInstance_2().u7x_1;
|
|
1537
|
+
tmp_0.w3h(AnthropicLLMClient$executeStreaming$lambda_0(tmp0_safe_receiver, e));
|
|
1538
|
+
var message_0 = 'Error from Anthropic API: ' + tmp0_safe_receiver.f5i().toString() + ': ' + e.c75_1;
|
|
1539
1539
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
1540
1540
|
}
|
|
1541
1541
|
} else {
|
|
1542
1542
|
if ($p instanceof Exception) {
|
|
1543
1543
|
var e_0 = $p;
|
|
1544
|
-
var tmp_1 = Companion_getInstance_2().
|
|
1545
|
-
tmp_1.
|
|
1544
|
+
var tmp_1 = Companion_getInstance_2().u7x_1;
|
|
1545
|
+
tmp_1.w3h(AnthropicLLMClient$executeStreaming$lambda_1(e_0));
|
|
1546
1546
|
var tmp1_elvis_lhs = e_0.message;
|
|
1547
1547
|
// Inline function 'kotlin.error' call
|
|
1548
1548
|
var message_1 = tmp1_elvis_lhs == null ? 'Unknown error during streaming' : tmp1_elvis_lhs;
|
|
@@ -1559,10 +1559,10 @@
|
|
|
1559
1559
|
baseUrl = baseUrl === VOID ? 'https://api.anthropic.com' : baseUrl;
|
|
1560
1560
|
apiVersion = apiVersion === VOID ? '2023-06-01' : apiVersion;
|
|
1561
1561
|
timeoutConfig = timeoutConfig === VOID ? new ConnectionTimeoutConfig() : timeoutConfig;
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1562
|
+
this.d7y_1 = modelVersionsMap;
|
|
1563
|
+
this.e7y_1 = baseUrl;
|
|
1564
|
+
this.f7y_1 = apiVersion;
|
|
1565
|
+
this.g7y_1 = timeoutConfig;
|
|
1566
1566
|
}
|
|
1567
1567
|
function get_DEFAULT_ANTHROPIC_MODEL_VERSIONS_MAP() {
|
|
1568
1568
|
_init_properties_AnthropicModels_kt__tozwos();
|
|
@@ -1571,16 +1571,16 @@
|
|
|
1571
1571
|
var DEFAULT_ANTHROPIC_MODEL_VERSIONS_MAP;
|
|
1572
1572
|
function AnthropicModels() {
|
|
1573
1573
|
AnthropicModels_instance = this;
|
|
1574
|
-
this.
|
|
1575
|
-
this.
|
|
1576
|
-
this.
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1574
|
+
this.i80_1 = new LLModel(Anthropic_getInstance(), 'claude-3-opus', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(4096, 0));
|
|
1575
|
+
this.j80_1 = new LLModel(Anthropic_getInstance(), 'claude-3-haiku', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(4096, 0));
|
|
1576
|
+
this.k80_1 = new LLModel(Anthropic_getInstance(), 'claude-3-5-sonnet', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(8192, 0));
|
|
1577
|
+
this.l80_1 = new LLModel(Anthropic_getInstance(), 'claude-3-5-haiku', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(8192, 0));
|
|
1578
|
+
this.m80_1 = new LLModel(Anthropic_getInstance(), 'claude-3-7-sonnet', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(64000, 0));
|
|
1579
|
+
this.n80_1 = new LLModel(Anthropic_getInstance(), 'claude-sonnet-4-0', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(64000, 0));
|
|
1580
|
+
this.o80_1 = new LLModel(Anthropic_getInstance(), 'claude-opus-4-0', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(32000, 0));
|
|
1581
|
+
this.p80_1 = new LLModel(Anthropic_getInstance(), 'claude-opus-4-1', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(32000, 0));
|
|
1582
|
+
this.q80_1 = new LLModel(Anthropic_getInstance(), 'claude-sonnet-4-5', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(64000, 0));
|
|
1583
|
+
this.r80_1 = new LLModel(Anthropic_getInstance(), 'claude-haiku-4-5', listOf_0([Temperature_getInstance(), Tools_getInstance(), ToolChoice_getInstance(), Image_getInstance(), Document_getInstance(), Completion_getInstance()]), new Long(200000, 0), new Long(64000, 0));
|
|
1584
1584
|
}
|
|
1585
1585
|
var AnthropicModels_instance;
|
|
1586
1586
|
function AnthropicModels_getInstance() {
|
|
@@ -1592,7 +1592,7 @@
|
|
|
1592
1592
|
function _init_properties_AnthropicModels_kt__tozwos() {
|
|
1593
1593
|
if (!properties_initialized_AnthropicModels_kt_z39nae) {
|
|
1594
1594
|
properties_initialized_AnthropicModels_kt_z39nae = true;
|
|
1595
|
-
DEFAULT_ANTHROPIC_MODEL_VERSIONS_MAP = mapOf_0([to(AnthropicModels_getInstance().
|
|
1595
|
+
DEFAULT_ANTHROPIC_MODEL_VERSIONS_MAP = mapOf_0([to(AnthropicModels_getInstance().i80_1, 'claude-3-opus-20240229'), to(AnthropicModels_getInstance().j80_1, 'claude-3-haiku-20240307'), to(AnthropicModels_getInstance().k80_1, 'claude-3-5-sonnet-20241022'), to(AnthropicModels_getInstance().l80_1, 'claude-3-5-haiku-20241022'), to(AnthropicModels_getInstance().m80_1, 'claude-3-7-sonnet-20250219'), to(AnthropicModels_getInstance().n80_1, 'claude-sonnet-4-20250514'), to(AnthropicModels_getInstance().o80_1, 'claude-opus-4-20250514'), to(AnthropicModels_getInstance().p80_1, 'claude-opus-4-1-20250805'), to(AnthropicModels_getInstance().q80_1, 'claude-sonnet-4-5-20250929'), to(AnthropicModels_getInstance().r80_1, 'claude-haiku-4-5-20251001')]);
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
1598
|
function AnthropicResponse$Companion$$childSerializers$_anonymous__24nmal() {
|
|
@@ -1605,7 +1605,7 @@
|
|
|
1605
1605
|
// Inline function 'kotlin.arrayOf' call
|
|
1606
1606
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1607
1607
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1608
|
-
tmp.
|
|
1608
|
+
tmp.t80_1 = [null, null, null, lazy(tmp_0, AnthropicResponse$Companion$$childSerializers$_anonymous__24nmal), null, null, null];
|
|
1609
1609
|
}
|
|
1610
1610
|
var Companion_instance_0;
|
|
1611
1611
|
function Companion_getInstance_3() {
|
|
@@ -1623,30 +1623,30 @@
|
|
|
1623
1623
|
tmp0_serialDesc.m16('model', false);
|
|
1624
1624
|
tmp0_serialDesc.m16('stopReason', true);
|
|
1625
1625
|
tmp0_serialDesc.m16('usage', true);
|
|
1626
|
-
this.
|
|
1626
|
+
this.u80_1 = tmp0_serialDesc;
|
|
1627
1627
|
}
|
|
1628
|
-
protoOf($serializer).
|
|
1629
|
-
var tmp0_desc = this.
|
|
1628
|
+
protoOf($serializer).v80 = function (encoder, value) {
|
|
1629
|
+
var tmp0_desc = this.u80_1;
|
|
1630
1630
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1631
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
1632
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
1633
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
1634
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
1635
|
-
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.
|
|
1636
|
-
tmp1_output.l10(tmp0_desc, 4, value.
|
|
1637
|
-
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.
|
|
1638
|
-
tmp1_output.p10(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
1631
|
+
var tmp2_cached = Companion_getInstance_3().t80_1;
|
|
1632
|
+
tmp1_output.l10(tmp0_desc, 0, value.y7w_1);
|
|
1633
|
+
tmp1_output.l10(tmp0_desc, 1, value.z7w_1);
|
|
1634
|
+
tmp1_output.l10(tmp0_desc, 2, value.a7x_1);
|
|
1635
|
+
tmp1_output.n10(tmp0_desc, 3, tmp2_cached[3].b1(), value.b7x_1);
|
|
1636
|
+
tmp1_output.l10(tmp0_desc, 4, value.c7x_1);
|
|
1637
|
+
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.d7x_1 == null)) {
|
|
1638
|
+
tmp1_output.p10(tmp0_desc, 5, StringSerializer_getInstance(), value.d7x_1);
|
|
1639
1639
|
}
|
|
1640
|
-
if (tmp1_output.t10(tmp0_desc, 6) ? true : !(value.
|
|
1641
|
-
tmp1_output.p10(tmp0_desc, 6, $serializer_getInstance_1(), value.
|
|
1640
|
+
if (tmp1_output.t10(tmp0_desc, 6) ? true : !(value.e7x_1 == null)) {
|
|
1641
|
+
tmp1_output.p10(tmp0_desc, 6, $serializer_getInstance_1(), value.e7x_1);
|
|
1642
1642
|
}
|
|
1643
1643
|
tmp1_output.xy(tmp0_desc);
|
|
1644
1644
|
};
|
|
1645
1645
|
protoOf($serializer).gv = function (encoder, value) {
|
|
1646
|
-
return this.
|
|
1646
|
+
return this.v80(encoder, value instanceof AnthropicResponse ? value : THROW_CCE());
|
|
1647
1647
|
};
|
|
1648
1648
|
protoOf($serializer).hv = function (decoder) {
|
|
1649
|
-
var tmp0_desc = this.
|
|
1649
|
+
var tmp0_desc = this.u80_1;
|
|
1650
1650
|
var tmp1_flag = true;
|
|
1651
1651
|
var tmp2_index = 0;
|
|
1652
1652
|
var tmp3_bitMask0 = 0;
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
var tmp9_local5 = null;
|
|
1659
1659
|
var tmp10_local6 = null;
|
|
1660
1660
|
var tmp11_input = decoder.wy(tmp0_desc);
|
|
1661
|
-
var tmp12_cached = Companion_getInstance_3().
|
|
1661
|
+
var tmp12_cached = Companion_getInstance_3().t80_1;
|
|
1662
1662
|
if (tmp11_input.mz()) {
|
|
1663
1663
|
tmp4_local0 = tmp11_input.gz(tmp0_desc, 0);
|
|
1664
1664
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1717,10 +1717,10 @@
|
|
|
1717
1717
|
return AnthropicResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
|
|
1718
1718
|
};
|
|
1719
1719
|
protoOf($serializer).fv = function () {
|
|
1720
|
-
return this.
|
|
1720
|
+
return this.u80_1;
|
|
1721
1721
|
};
|
|
1722
1722
|
protoOf($serializer).d17 = function () {
|
|
1723
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
1723
|
+
var tmp0_cached = Companion_getInstance_3().t80_1;
|
|
1724
1724
|
// Inline function 'kotlin.arrayOf' call
|
|
1725
1725
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1726
1726
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1734,21 +1734,21 @@
|
|
|
1734
1734
|
}
|
|
1735
1735
|
function AnthropicResponse_init_$Init$(seen0, id, type, role, content, model, stopReason, usage, serializationConstructorMarker, $this) {
|
|
1736
1736
|
if (!(31 === (31 & seen0))) {
|
|
1737
|
-
throwMissingFieldException(seen0, 31, $serializer_getInstance().
|
|
1737
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance().u80_1);
|
|
1738
1738
|
}
|
|
1739
|
-
$this.
|
|
1740
|
-
$this.
|
|
1741
|
-
$this.
|
|
1742
|
-
$this.
|
|
1743
|
-
$this.
|
|
1739
|
+
$this.y7w_1 = id;
|
|
1740
|
+
$this.z7w_1 = type;
|
|
1741
|
+
$this.a7x_1 = role;
|
|
1742
|
+
$this.b7x_1 = content;
|
|
1743
|
+
$this.c7x_1 = model;
|
|
1744
1744
|
if (0 === (seen0 & 32))
|
|
1745
|
-
$this.
|
|
1745
|
+
$this.d7x_1 = null;
|
|
1746
1746
|
else
|
|
1747
|
-
$this.
|
|
1747
|
+
$this.d7x_1 = stopReason;
|
|
1748
1748
|
if (0 === (seen0 & 64))
|
|
1749
|
-
$this.
|
|
1749
|
+
$this.e7x_1 = null;
|
|
1750
1750
|
else
|
|
1751
|
-
$this.
|
|
1751
|
+
$this.e7x_1 = usage;
|
|
1752
1752
|
return $this;
|
|
1753
1753
|
}
|
|
1754
1754
|
function AnthropicResponse_init_$Create$(seen0, id, type, role, content, model, stopReason, usage, serializationConstructorMarker) {
|
|
@@ -1758,25 +1758,25 @@
|
|
|
1758
1758
|
Companion_getInstance_3();
|
|
1759
1759
|
stopReason = stopReason === VOID ? null : stopReason;
|
|
1760
1760
|
usage = usage === VOID ? null : usage;
|
|
1761
|
-
this.
|
|
1762
|
-
this.
|
|
1763
|
-
this.
|
|
1764
|
-
this.
|
|
1765
|
-
this.
|
|
1766
|
-
this.
|
|
1767
|
-
this.
|
|
1761
|
+
this.y7w_1 = id;
|
|
1762
|
+
this.z7w_1 = type;
|
|
1763
|
+
this.a7x_1 = role;
|
|
1764
|
+
this.b7x_1 = content;
|
|
1765
|
+
this.c7x_1 = model;
|
|
1766
|
+
this.d7x_1 = stopReason;
|
|
1767
|
+
this.e7x_1 = usage;
|
|
1768
1768
|
}
|
|
1769
1769
|
protoOf(AnthropicResponse).toString = function () {
|
|
1770
|
-
return 'AnthropicResponse(id=' + this.
|
|
1770
|
+
return 'AnthropicResponse(id=' + this.y7w_1 + ', type=' + this.z7w_1 + ', role=' + this.a7x_1 + ', content=' + toString(this.b7x_1) + ', model=' + this.c7x_1 + ', stopReason=' + this.d7x_1 + ', usage=' + toString_0(this.e7x_1) + ')';
|
|
1771
1771
|
};
|
|
1772
1772
|
protoOf(AnthropicResponse).hashCode = function () {
|
|
1773
|
-
var result = getStringHashCode(this.
|
|
1774
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1775
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1776
|
-
result = imul(result, 31) + hashCode(this.
|
|
1777
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1778
|
-
result = imul(result, 31) + (this.
|
|
1779
|
-
result = imul(result, 31) + (this.
|
|
1773
|
+
var result = getStringHashCode(this.y7w_1);
|
|
1774
|
+
result = imul(result, 31) + getStringHashCode(this.z7w_1) | 0;
|
|
1775
|
+
result = imul(result, 31) + getStringHashCode(this.a7x_1) | 0;
|
|
1776
|
+
result = imul(result, 31) + hashCode(this.b7x_1) | 0;
|
|
1777
|
+
result = imul(result, 31) + getStringHashCode(this.c7x_1) | 0;
|
|
1778
|
+
result = imul(result, 31) + (this.d7x_1 == null ? 0 : getStringHashCode(this.d7x_1)) | 0;
|
|
1779
|
+
result = imul(result, 31) + (this.e7x_1 == null ? 0 : this.e7x_1.hashCode()) | 0;
|
|
1780
1780
|
return result;
|
|
1781
1781
|
};
|
|
1782
1782
|
protoOf(AnthropicResponse).equals = function (other) {
|
|
@@ -1785,19 +1785,19 @@
|
|
|
1785
1785
|
if (!(other instanceof AnthropicResponse))
|
|
1786
1786
|
return false;
|
|
1787
1787
|
var tmp0_other_with_cast = other instanceof AnthropicResponse ? other : THROW_CCE();
|
|
1788
|
-
if (!(this.
|
|
1788
|
+
if (!(this.y7w_1 === tmp0_other_with_cast.y7w_1))
|
|
1789
1789
|
return false;
|
|
1790
|
-
if (!(this.
|
|
1790
|
+
if (!(this.z7w_1 === tmp0_other_with_cast.z7w_1))
|
|
1791
1791
|
return false;
|
|
1792
|
-
if (!(this.
|
|
1792
|
+
if (!(this.a7x_1 === tmp0_other_with_cast.a7x_1))
|
|
1793
1793
|
return false;
|
|
1794
|
-
if (!equals(this.
|
|
1794
|
+
if (!equals(this.b7x_1, tmp0_other_with_cast.b7x_1))
|
|
1795
1795
|
return false;
|
|
1796
|
-
if (!(this.
|
|
1796
|
+
if (!(this.c7x_1 === tmp0_other_with_cast.c7x_1))
|
|
1797
1797
|
return false;
|
|
1798
|
-
if (!(this.
|
|
1798
|
+
if (!(this.d7x_1 == tmp0_other_with_cast.d7x_1))
|
|
1799
1799
|
return false;
|
|
1800
|
-
if (!equals(this.
|
|
1800
|
+
if (!equals(this.e7x_1, tmp0_other_with_cast.e7x_1))
|
|
1801
1801
|
return false;
|
|
1802
1802
|
return true;
|
|
1803
1803
|
};
|
|
@@ -1811,7 +1811,7 @@
|
|
|
1811
1811
|
// Inline function 'kotlin.arrayOf' call
|
|
1812
1812
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1813
1813
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1814
|
-
tmp.
|
|
1814
|
+
tmp.x80_1 = [null, null, lazy(tmp_0, AnthropicStreamResponse$Companion$$childSerializers$_anonymous__af1xc3), null, null, null, null];
|
|
1815
1815
|
}
|
|
1816
1816
|
var Companion_instance_1;
|
|
1817
1817
|
function Companion_getInstance_4() {
|
|
@@ -1829,38 +1829,38 @@
|
|
|
1829
1829
|
tmp0_serialDesc.m16('message', true);
|
|
1830
1830
|
tmp0_serialDesc.m16('usage', true);
|
|
1831
1831
|
tmp0_serialDesc.m16('error', true);
|
|
1832
|
-
this.
|
|
1832
|
+
this.y80_1 = tmp0_serialDesc;
|
|
1833
1833
|
}
|
|
1834
|
-
protoOf($serializer_0).
|
|
1835
|
-
var tmp0_desc = this.
|
|
1834
|
+
protoOf($serializer_0).z80 = function (encoder, value) {
|
|
1835
|
+
var tmp0_desc = this.y80_1;
|
|
1836
1836
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1837
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
1838
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
1839
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
1840
|
-
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.
|
|
1837
|
+
var tmp2_cached = Companion_getInstance_4().x80_1;
|
|
1838
|
+
tmp1_output.l10(tmp0_desc, 0, value.i7w_1);
|
|
1839
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.j7w_1 == null)) {
|
|
1840
|
+
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.j7w_1);
|
|
1841
1841
|
}
|
|
1842
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
1843
|
-
tmp1_output.p10(tmp0_desc, 2, tmp2_cached[2].b1(), value.
|
|
1842
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.k7w_1 == null)) {
|
|
1843
|
+
tmp1_output.p10(tmp0_desc, 2, tmp2_cached[2].b1(), value.k7w_1);
|
|
1844
1844
|
}
|
|
1845
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
1846
|
-
tmp1_output.p10(tmp0_desc, 3, $serializer_getInstance_7(), value.
|
|
1845
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.l7w_1 == null)) {
|
|
1846
|
+
tmp1_output.p10(tmp0_desc, 3, $serializer_getInstance_7(), value.l7w_1);
|
|
1847
1847
|
}
|
|
1848
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
1849
|
-
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance(), value.
|
|
1848
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.m7w_1 == null)) {
|
|
1849
|
+
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance(), value.m7w_1);
|
|
1850
1850
|
}
|
|
1851
|
-
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.
|
|
1852
|
-
tmp1_output.p10(tmp0_desc, 5, $serializer_getInstance_1(), value.
|
|
1851
|
+
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.n7w_1 == null)) {
|
|
1852
|
+
tmp1_output.p10(tmp0_desc, 5, $serializer_getInstance_1(), value.n7w_1);
|
|
1853
1853
|
}
|
|
1854
|
-
if (tmp1_output.t10(tmp0_desc, 6) ? true : !(value.
|
|
1855
|
-
tmp1_output.p10(tmp0_desc, 6, $serializer_getInstance_8(), value.
|
|
1854
|
+
if (tmp1_output.t10(tmp0_desc, 6) ? true : !(value.o7w_1 == null)) {
|
|
1855
|
+
tmp1_output.p10(tmp0_desc, 6, $serializer_getInstance_8(), value.o7w_1);
|
|
1856
1856
|
}
|
|
1857
1857
|
tmp1_output.xy(tmp0_desc);
|
|
1858
1858
|
};
|
|
1859
1859
|
protoOf($serializer_0).gv = function (encoder, value) {
|
|
1860
|
-
return this.
|
|
1860
|
+
return this.z80(encoder, value instanceof AnthropicStreamResponse ? value : THROW_CCE());
|
|
1861
1861
|
};
|
|
1862
1862
|
protoOf($serializer_0).hv = function (decoder) {
|
|
1863
|
-
var tmp0_desc = this.
|
|
1863
|
+
var tmp0_desc = this.y80_1;
|
|
1864
1864
|
var tmp1_flag = true;
|
|
1865
1865
|
var tmp2_index = 0;
|
|
1866
1866
|
var tmp3_bitMask0 = 0;
|
|
@@ -1872,7 +1872,7 @@
|
|
|
1872
1872
|
var tmp9_local5 = null;
|
|
1873
1873
|
var tmp10_local6 = null;
|
|
1874
1874
|
var tmp11_input = decoder.wy(tmp0_desc);
|
|
1875
|
-
var tmp12_cached = Companion_getInstance_4().
|
|
1875
|
+
var tmp12_cached = Companion_getInstance_4().x80_1;
|
|
1876
1876
|
if (tmp11_input.mz()) {
|
|
1877
1877
|
tmp4_local0 = tmp11_input.gz(tmp0_desc, 0);
|
|
1878
1878
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1931,10 +1931,10 @@
|
|
|
1931
1931
|
return AnthropicStreamResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
|
|
1932
1932
|
};
|
|
1933
1933
|
protoOf($serializer_0).fv = function () {
|
|
1934
|
-
return this.
|
|
1934
|
+
return this.y80_1;
|
|
1935
1935
|
};
|
|
1936
1936
|
protoOf($serializer_0).d17 = function () {
|
|
1937
|
-
var tmp0_cached = Companion_getInstance_4().
|
|
1937
|
+
var tmp0_cached = Companion_getInstance_4().x80_1;
|
|
1938
1938
|
// Inline function 'kotlin.arrayOf' call
|
|
1939
1939
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1940
1940
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1948,33 +1948,33 @@
|
|
|
1948
1948
|
}
|
|
1949
1949
|
function AnthropicStreamResponse_init_$Init$(seen0, type, index, contentBlock, delta, message, usage, error, serializationConstructorMarker, $this) {
|
|
1950
1950
|
if (!(1 === (1 & seen0))) {
|
|
1951
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
1951
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().y80_1);
|
|
1952
1952
|
}
|
|
1953
|
-
$this.
|
|
1953
|
+
$this.i7w_1 = type;
|
|
1954
1954
|
if (0 === (seen0 & 2))
|
|
1955
|
-
$this.
|
|
1955
|
+
$this.j7w_1 = null;
|
|
1956
1956
|
else
|
|
1957
|
-
$this.
|
|
1957
|
+
$this.j7w_1 = index;
|
|
1958
1958
|
if (0 === (seen0 & 4))
|
|
1959
|
-
$this.
|
|
1959
|
+
$this.k7w_1 = null;
|
|
1960
1960
|
else
|
|
1961
|
-
$this.
|
|
1961
|
+
$this.k7w_1 = contentBlock;
|
|
1962
1962
|
if (0 === (seen0 & 8))
|
|
1963
|
-
$this.
|
|
1963
|
+
$this.l7w_1 = null;
|
|
1964
1964
|
else
|
|
1965
|
-
$this.
|
|
1965
|
+
$this.l7w_1 = delta;
|
|
1966
1966
|
if (0 === (seen0 & 16))
|
|
1967
|
-
$this.
|
|
1967
|
+
$this.m7w_1 = null;
|
|
1968
1968
|
else
|
|
1969
|
-
$this.
|
|
1969
|
+
$this.m7w_1 = message;
|
|
1970
1970
|
if (0 === (seen0 & 32))
|
|
1971
|
-
$this.
|
|
1971
|
+
$this.n7w_1 = null;
|
|
1972
1972
|
else
|
|
1973
|
-
$this.
|
|
1973
|
+
$this.n7w_1 = usage;
|
|
1974
1974
|
if (0 === (seen0 & 64))
|
|
1975
|
-
$this.
|
|
1975
|
+
$this.o7w_1 = null;
|
|
1976
1976
|
else
|
|
1977
|
-
$this.
|
|
1977
|
+
$this.o7w_1 = error;
|
|
1978
1978
|
return $this;
|
|
1979
1979
|
}
|
|
1980
1980
|
function AnthropicStreamResponse_init_$Create$(seen0, type, index, contentBlock, delta, message, usage, error, serializationConstructorMarker) {
|
|
@@ -1988,25 +1988,25 @@
|
|
|
1988
1988
|
message = message === VOID ? null : message;
|
|
1989
1989
|
usage = usage === VOID ? null : usage;
|
|
1990
1990
|
error = error === VOID ? null : error;
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1993
|
-
this.
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
1996
|
-
this.
|
|
1997
|
-
this.
|
|
1991
|
+
this.i7w_1 = type;
|
|
1992
|
+
this.j7w_1 = index;
|
|
1993
|
+
this.k7w_1 = contentBlock;
|
|
1994
|
+
this.l7w_1 = delta;
|
|
1995
|
+
this.m7w_1 = message;
|
|
1996
|
+
this.n7w_1 = usage;
|
|
1997
|
+
this.o7w_1 = error;
|
|
1998
1998
|
}
|
|
1999
1999
|
protoOf(AnthropicStreamResponse).toString = function () {
|
|
2000
|
-
return 'AnthropicStreamResponse(type=' + this.
|
|
2000
|
+
return 'AnthropicStreamResponse(type=' + this.i7w_1 + ', index=' + this.j7w_1 + ', contentBlock=' + toString_0(this.k7w_1) + ', delta=' + toString_0(this.l7w_1) + ', message=' + toString_0(this.m7w_1) + ', usage=' + toString_0(this.n7w_1) + ', error=' + toString_0(this.o7w_1) + ')';
|
|
2001
2001
|
};
|
|
2002
2002
|
protoOf(AnthropicStreamResponse).hashCode = function () {
|
|
2003
|
-
var result = getStringHashCode(this.
|
|
2004
|
-
result = imul(result, 31) + (this.
|
|
2005
|
-
result = imul(result, 31) + (this.
|
|
2006
|
-
result = imul(result, 31) + (this.
|
|
2007
|
-
result = imul(result, 31) + (this.
|
|
2008
|
-
result = imul(result, 31) + (this.
|
|
2009
|
-
result = imul(result, 31) + (this.
|
|
2003
|
+
var result = getStringHashCode(this.i7w_1);
|
|
2004
|
+
result = imul(result, 31) + (this.j7w_1 == null ? 0 : this.j7w_1) | 0;
|
|
2005
|
+
result = imul(result, 31) + (this.k7w_1 == null ? 0 : hashCode(this.k7w_1)) | 0;
|
|
2006
|
+
result = imul(result, 31) + (this.l7w_1 == null ? 0 : this.l7w_1.hashCode()) | 0;
|
|
2007
|
+
result = imul(result, 31) + (this.m7w_1 == null ? 0 : this.m7w_1.hashCode()) | 0;
|
|
2008
|
+
result = imul(result, 31) + (this.n7w_1 == null ? 0 : this.n7w_1.hashCode()) | 0;
|
|
2009
|
+
result = imul(result, 31) + (this.o7w_1 == null ? 0 : this.o7w_1.hashCode()) | 0;
|
|
2010
2010
|
return result;
|
|
2011
2011
|
};
|
|
2012
2012
|
protoOf(AnthropicStreamResponse).equals = function (other) {
|
|
@@ -2015,19 +2015,19 @@
|
|
|
2015
2015
|
if (!(other instanceof AnthropicStreamResponse))
|
|
2016
2016
|
return false;
|
|
2017
2017
|
var tmp0_other_with_cast = other instanceof AnthropicStreamResponse ? other : THROW_CCE();
|
|
2018
|
-
if (!(this.
|
|
2018
|
+
if (!(this.i7w_1 === tmp0_other_with_cast.i7w_1))
|
|
2019
2019
|
return false;
|
|
2020
|
-
if (!(this.
|
|
2020
|
+
if (!(this.j7w_1 == tmp0_other_with_cast.j7w_1))
|
|
2021
2021
|
return false;
|
|
2022
|
-
if (!equals(this.
|
|
2022
|
+
if (!equals(this.k7w_1, tmp0_other_with_cast.k7w_1))
|
|
2023
2023
|
return false;
|
|
2024
|
-
if (!equals(this.
|
|
2024
|
+
if (!equals(this.l7w_1, tmp0_other_with_cast.l7w_1))
|
|
2025
2025
|
return false;
|
|
2026
|
-
if (!equals(this.
|
|
2026
|
+
if (!equals(this.m7w_1, tmp0_other_with_cast.m7w_1))
|
|
2027
2027
|
return false;
|
|
2028
|
-
if (!equals(this.
|
|
2028
|
+
if (!equals(this.n7w_1, tmp0_other_with_cast.n7w_1))
|
|
2029
2029
|
return false;
|
|
2030
|
-
if (!equals(this.
|
|
2030
|
+
if (!equals(this.o7w_1, tmp0_other_with_cast.o7w_1))
|
|
2031
2031
|
return false;
|
|
2032
2032
|
return true;
|
|
2033
2033
|
};
|
|
@@ -2042,24 +2042,24 @@
|
|
|
2042
2042
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.anthropic.AnthropicUsage', this, 2);
|
|
2043
2043
|
tmp0_serialDesc.m16('inputTokens', true);
|
|
2044
2044
|
tmp0_serialDesc.m16('outputTokens', true);
|
|
2045
|
-
this.
|
|
2045
|
+
this.a81_1 = tmp0_serialDesc;
|
|
2046
2046
|
}
|
|
2047
|
-
protoOf($serializer_1).
|
|
2048
|
-
var tmp0_desc = this.
|
|
2047
|
+
protoOf($serializer_1).b81 = function (encoder, value) {
|
|
2048
|
+
var tmp0_desc = this.a81_1;
|
|
2049
2049
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2050
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2051
|
-
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.
|
|
2050
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.q7u_1 == null)) {
|
|
2051
|
+
tmp1_output.p10(tmp0_desc, 0, IntSerializer_getInstance(), value.q7u_1);
|
|
2052
2052
|
}
|
|
2053
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2054
|
-
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.
|
|
2053
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.r7u_1 == null)) {
|
|
2054
|
+
tmp1_output.p10(tmp0_desc, 1, IntSerializer_getInstance(), value.r7u_1);
|
|
2055
2055
|
}
|
|
2056
2056
|
tmp1_output.xy(tmp0_desc);
|
|
2057
2057
|
};
|
|
2058
2058
|
protoOf($serializer_1).gv = function (encoder, value) {
|
|
2059
|
-
return this.
|
|
2059
|
+
return this.b81(encoder, value instanceof AnthropicUsage ? value : THROW_CCE());
|
|
2060
2060
|
};
|
|
2061
2061
|
protoOf($serializer_1).hv = function (decoder) {
|
|
2062
|
-
var tmp0_desc = this.
|
|
2062
|
+
var tmp0_desc = this.a81_1;
|
|
2063
2063
|
var tmp1_flag = true;
|
|
2064
2064
|
var tmp2_index = 0;
|
|
2065
2065
|
var tmp3_bitMask0 = 0;
|
|
@@ -2094,7 +2094,7 @@
|
|
|
2094
2094
|
return AnthropicUsage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2095
2095
|
};
|
|
2096
2096
|
protoOf($serializer_1).fv = function () {
|
|
2097
|
-
return this.
|
|
2097
|
+
return this.a81_1;
|
|
2098
2098
|
};
|
|
2099
2099
|
protoOf($serializer_1).d17 = function () {
|
|
2100
2100
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2110,16 +2110,16 @@
|
|
|
2110
2110
|
}
|
|
2111
2111
|
function AnthropicUsage_init_$Init$(seen0, inputTokens, outputTokens, serializationConstructorMarker, $this) {
|
|
2112
2112
|
if (!(0 === (0 & seen0))) {
|
|
2113
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_1().
|
|
2113
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_1().a81_1);
|
|
2114
2114
|
}
|
|
2115
2115
|
if (0 === (seen0 & 1))
|
|
2116
|
-
$this.
|
|
2116
|
+
$this.q7u_1 = null;
|
|
2117
2117
|
else
|
|
2118
|
-
$this.
|
|
2118
|
+
$this.q7u_1 = inputTokens;
|
|
2119
2119
|
if (0 === (seen0 & 2))
|
|
2120
|
-
$this.
|
|
2120
|
+
$this.r7u_1 = null;
|
|
2121
2121
|
else
|
|
2122
|
-
$this.
|
|
2122
|
+
$this.r7u_1 = outputTokens;
|
|
2123
2123
|
return $this;
|
|
2124
2124
|
}
|
|
2125
2125
|
function AnthropicUsage_init_$Create$(seen0, inputTokens, outputTokens, serializationConstructorMarker) {
|
|
@@ -2128,15 +2128,15 @@
|
|
|
2128
2128
|
function AnthropicUsage(inputTokens, outputTokens) {
|
|
2129
2129
|
inputTokens = inputTokens === VOID ? null : inputTokens;
|
|
2130
2130
|
outputTokens = outputTokens === VOID ? null : outputTokens;
|
|
2131
|
-
this.
|
|
2132
|
-
this.
|
|
2131
|
+
this.q7u_1 = inputTokens;
|
|
2132
|
+
this.r7u_1 = outputTokens;
|
|
2133
2133
|
}
|
|
2134
2134
|
protoOf(AnthropicUsage).toString = function () {
|
|
2135
|
-
return 'AnthropicUsage(inputTokens=' + this.
|
|
2135
|
+
return 'AnthropicUsage(inputTokens=' + this.q7u_1 + ', outputTokens=' + this.r7u_1 + ')';
|
|
2136
2136
|
};
|
|
2137
2137
|
protoOf(AnthropicUsage).hashCode = function () {
|
|
2138
|
-
var result = this.
|
|
2139
|
-
result = imul(result, 31) + (this.
|
|
2138
|
+
var result = this.q7u_1 == null ? 0 : this.q7u_1;
|
|
2139
|
+
result = imul(result, 31) + (this.r7u_1 == null ? 0 : this.r7u_1) | 0;
|
|
2140
2140
|
return result;
|
|
2141
2141
|
};
|
|
2142
2142
|
protoOf(AnthropicUsage).equals = function (other) {
|
|
@@ -2145,9 +2145,9 @@
|
|
|
2145
2145
|
if (!(other instanceof AnthropicUsage))
|
|
2146
2146
|
return false;
|
|
2147
2147
|
var tmp0_other_with_cast = other instanceof AnthropicUsage ? other : THROW_CCE();
|
|
2148
|
-
if (!(this.
|
|
2148
|
+
if (!(this.q7u_1 == tmp0_other_with_cast.q7u_1))
|
|
2149
2149
|
return false;
|
|
2150
|
-
if (!(this.
|
|
2150
|
+
if (!(this.r7u_1 == tmp0_other_with_cast.r7u_1))
|
|
2151
2151
|
return false;
|
|
2152
2152
|
return true;
|
|
2153
2153
|
};
|
|
@@ -2161,19 +2161,19 @@
|
|
|
2161
2161
|
$serializer_instance_2 = this;
|
|
2162
2162
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('text', this, 1);
|
|
2163
2163
|
tmp0_serialDesc.m16('text', false);
|
|
2164
|
-
this.
|
|
2164
|
+
this.c81_1 = tmp0_serialDesc;
|
|
2165
2165
|
}
|
|
2166
|
-
protoOf($serializer_2).
|
|
2167
|
-
var tmp0_desc = this.
|
|
2166
|
+
protoOf($serializer_2).d81 = function (encoder, value) {
|
|
2167
|
+
var tmp0_desc = this.c81_1;
|
|
2168
2168
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2169
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2169
|
+
tmp1_output.l10(tmp0_desc, 0, value.x7w_1);
|
|
2170
2170
|
tmp1_output.xy(tmp0_desc);
|
|
2171
2171
|
};
|
|
2172
2172
|
protoOf($serializer_2).gv = function (encoder, value) {
|
|
2173
|
-
return this.
|
|
2173
|
+
return this.d81(encoder, value instanceof Text_0 ? value : THROW_CCE());
|
|
2174
2174
|
};
|
|
2175
2175
|
protoOf($serializer_2).hv = function (decoder) {
|
|
2176
|
-
var tmp0_desc = this.
|
|
2176
|
+
var tmp0_desc = this.c81_1;
|
|
2177
2177
|
var tmp1_flag = true;
|
|
2178
2178
|
var tmp2_index = 0;
|
|
2179
2179
|
var tmp3_bitMask0 = 0;
|
|
@@ -2201,7 +2201,7 @@
|
|
|
2201
2201
|
return Text_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
2202
2202
|
};
|
|
2203
2203
|
protoOf($serializer_2).fv = function () {
|
|
2204
|
-
return this.
|
|
2204
|
+
return this.c81_1;
|
|
2205
2205
|
};
|
|
2206
2206
|
protoOf($serializer_2).d17 = function () {
|
|
2207
2207
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2217,10 +2217,10 @@
|
|
|
2217
2217
|
}
|
|
2218
2218
|
function Text_init_$Init$(seen0, text, serializationConstructorMarker, $this) {
|
|
2219
2219
|
if (!(1 === (1 & seen0))) {
|
|
2220
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().
|
|
2220
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().c81_1);
|
|
2221
2221
|
}
|
|
2222
2222
|
AnthropicContent_init_$Init$(seen0, serializationConstructorMarker, $this);
|
|
2223
|
-
$this.
|
|
2223
|
+
$this.x7w_1 = text;
|
|
2224
2224
|
return $this;
|
|
2225
2225
|
}
|
|
2226
2226
|
function Text_init_$Create$(seen0, text, serializationConstructorMarker) {
|
|
@@ -2236,7 +2236,7 @@
|
|
|
2236
2236
|
// Inline function 'kotlin.arrayOf' call
|
|
2237
2237
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2238
2238
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2239
|
-
tmp.
|
|
2239
|
+
tmp.e81_1 = [lazy(tmp_0, AnthropicContent$Image$Companion$$childSerializers$_anonymous__lfrrbu)];
|
|
2240
2240
|
}
|
|
2241
2241
|
var Companion_instance_4;
|
|
2242
2242
|
function Companion_getInstance_7() {
|
|
@@ -2248,26 +2248,26 @@
|
|
|
2248
2248
|
$serializer_instance_3 = this;
|
|
2249
2249
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('image', this, 1);
|
|
2250
2250
|
tmp0_serialDesc.m16('source', false);
|
|
2251
|
-
this.
|
|
2251
|
+
this.f81_1 = tmp0_serialDesc;
|
|
2252
2252
|
}
|
|
2253
|
-
protoOf($serializer_3).
|
|
2254
|
-
var tmp0_desc = this.
|
|
2253
|
+
protoOf($serializer_3).g81 = function (encoder, value) {
|
|
2254
|
+
var tmp0_desc = this.f81_1;
|
|
2255
2255
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2256
|
-
var tmp2_cached = Companion_getInstance_7().
|
|
2257
|
-
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
2256
|
+
var tmp2_cached = Companion_getInstance_7().e81_1;
|
|
2257
|
+
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.h81_1);
|
|
2258
2258
|
tmp1_output.xy(tmp0_desc);
|
|
2259
2259
|
};
|
|
2260
2260
|
protoOf($serializer_3).gv = function (encoder, value) {
|
|
2261
|
-
return this.
|
|
2261
|
+
return this.g81(encoder, value instanceof Image_0 ? value : THROW_CCE());
|
|
2262
2262
|
};
|
|
2263
2263
|
protoOf($serializer_3).hv = function (decoder) {
|
|
2264
|
-
var tmp0_desc = this.
|
|
2264
|
+
var tmp0_desc = this.f81_1;
|
|
2265
2265
|
var tmp1_flag = true;
|
|
2266
2266
|
var tmp2_index = 0;
|
|
2267
2267
|
var tmp3_bitMask0 = 0;
|
|
2268
2268
|
var tmp4_local0 = null;
|
|
2269
2269
|
var tmp5_input = decoder.wy(tmp0_desc);
|
|
2270
|
-
var tmp6_cached = Companion_getInstance_7().
|
|
2270
|
+
var tmp6_cached = Companion_getInstance_7().e81_1;
|
|
2271
2271
|
if (tmp5_input.mz()) {
|
|
2272
2272
|
tmp4_local0 = tmp5_input.iz(tmp0_desc, 0, tmp6_cached[0].b1(), tmp4_local0);
|
|
2273
2273
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2290,13 +2290,13 @@
|
|
|
2290
2290
|
return Image_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
2291
2291
|
};
|
|
2292
2292
|
protoOf($serializer_3).fv = function () {
|
|
2293
|
-
return this.
|
|
2293
|
+
return this.f81_1;
|
|
2294
2294
|
};
|
|
2295
2295
|
protoOf($serializer_3).d17 = function () {
|
|
2296
2296
|
// Inline function 'kotlin.arrayOf' call
|
|
2297
2297
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2298
2298
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2299
|
-
return [Companion_getInstance_7().
|
|
2299
|
+
return [Companion_getInstance_7().e81_1[0].b1()];
|
|
2300
2300
|
};
|
|
2301
2301
|
var $serializer_instance_3;
|
|
2302
2302
|
function $serializer_getInstance_3() {
|
|
@@ -2306,10 +2306,10 @@
|
|
|
2306
2306
|
}
|
|
2307
2307
|
function Image_init_$Init$(seen0, source, serializationConstructorMarker, $this) {
|
|
2308
2308
|
if (!(1 === (1 & seen0))) {
|
|
2309
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().
|
|
2309
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_3().f81_1);
|
|
2310
2310
|
}
|
|
2311
2311
|
AnthropicContent_init_$Init$(seen0, serializationConstructorMarker, $this);
|
|
2312
|
-
$this.
|
|
2312
|
+
$this.h81_1 = source;
|
|
2313
2313
|
return $this;
|
|
2314
2314
|
}
|
|
2315
2315
|
function Image_init_$Create$(seen0, source, serializationConstructorMarker) {
|
|
@@ -2325,7 +2325,7 @@
|
|
|
2325
2325
|
// Inline function 'kotlin.arrayOf' call
|
|
2326
2326
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2327
2327
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2328
|
-
tmp.
|
|
2328
|
+
tmp.i81_1 = [lazy(tmp_0, AnthropicContent$Document$Companion$$childSerializers$_anonymous__shn9i0)];
|
|
2329
2329
|
}
|
|
2330
2330
|
var Companion_instance_5;
|
|
2331
2331
|
function Companion_getInstance_8() {
|
|
@@ -2337,26 +2337,26 @@
|
|
|
2337
2337
|
$serializer_instance_4 = this;
|
|
2338
2338
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('document', this, 1);
|
|
2339
2339
|
tmp0_serialDesc.m16('source', false);
|
|
2340
|
-
this.
|
|
2340
|
+
this.j81_1 = tmp0_serialDesc;
|
|
2341
2341
|
}
|
|
2342
|
-
protoOf($serializer_4).
|
|
2343
|
-
var tmp0_desc = this.
|
|
2342
|
+
protoOf($serializer_4).k81 = function (encoder, value) {
|
|
2343
|
+
var tmp0_desc = this.j81_1;
|
|
2344
2344
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2345
|
-
var tmp2_cached = Companion_getInstance_8().
|
|
2346
|
-
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.
|
|
2345
|
+
var tmp2_cached = Companion_getInstance_8().i81_1;
|
|
2346
|
+
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.l81_1);
|
|
2347
2347
|
tmp1_output.xy(tmp0_desc);
|
|
2348
2348
|
};
|
|
2349
2349
|
protoOf($serializer_4).gv = function (encoder, value) {
|
|
2350
|
-
return this.
|
|
2350
|
+
return this.k81(encoder, value instanceof Document ? value : THROW_CCE());
|
|
2351
2351
|
};
|
|
2352
2352
|
protoOf($serializer_4).hv = function (decoder) {
|
|
2353
|
-
var tmp0_desc = this.
|
|
2353
|
+
var tmp0_desc = this.j81_1;
|
|
2354
2354
|
var tmp1_flag = true;
|
|
2355
2355
|
var tmp2_index = 0;
|
|
2356
2356
|
var tmp3_bitMask0 = 0;
|
|
2357
2357
|
var tmp4_local0 = null;
|
|
2358
2358
|
var tmp5_input = decoder.wy(tmp0_desc);
|
|
2359
|
-
var tmp6_cached = Companion_getInstance_8().
|
|
2359
|
+
var tmp6_cached = Companion_getInstance_8().i81_1;
|
|
2360
2360
|
if (tmp5_input.mz()) {
|
|
2361
2361
|
tmp4_local0 = tmp5_input.iz(tmp0_desc, 0, tmp6_cached[0].b1(), tmp4_local0);
|
|
2362
2362
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2379,13 +2379,13 @@
|
|
|
2379
2379
|
return Document_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
2380
2380
|
};
|
|
2381
2381
|
protoOf($serializer_4).fv = function () {
|
|
2382
|
-
return this.
|
|
2382
|
+
return this.j81_1;
|
|
2383
2383
|
};
|
|
2384
2384
|
protoOf($serializer_4).d17 = function () {
|
|
2385
2385
|
// Inline function 'kotlin.arrayOf' call
|
|
2386
2386
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2387
2387
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2388
|
-
return [Companion_getInstance_8().
|
|
2388
|
+
return [Companion_getInstance_8().i81_1[0].b1()];
|
|
2389
2389
|
};
|
|
2390
2390
|
var $serializer_instance_4;
|
|
2391
2391
|
function $serializer_getInstance_4() {
|
|
@@ -2395,10 +2395,10 @@
|
|
|
2395
2395
|
}
|
|
2396
2396
|
function Document_init_$Init$(seen0, source, serializationConstructorMarker, $this) {
|
|
2397
2397
|
if (!(1 === (1 & seen0))) {
|
|
2398
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().
|
|
2398
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_4().j81_1);
|
|
2399
2399
|
}
|
|
2400
2400
|
AnthropicContent_init_$Init$(seen0, serializationConstructorMarker, $this);
|
|
2401
|
-
$this.
|
|
2401
|
+
$this.l81_1 = source;
|
|
2402
2402
|
return $this;
|
|
2403
2403
|
}
|
|
2404
2404
|
function Document_init_$Create$(seen0, source, serializationConstructorMarker) {
|
|
@@ -2416,21 +2416,21 @@
|
|
|
2416
2416
|
tmp0_serialDesc.m16('id', false);
|
|
2417
2417
|
tmp0_serialDesc.m16('name', false);
|
|
2418
2418
|
tmp0_serialDesc.m16('input', false);
|
|
2419
|
-
this.
|
|
2419
|
+
this.m81_1 = tmp0_serialDesc;
|
|
2420
2420
|
}
|
|
2421
|
-
protoOf($serializer_5).
|
|
2422
|
-
var tmp0_desc = this.
|
|
2421
|
+
protoOf($serializer_5).n81 = function (encoder, value) {
|
|
2422
|
+
var tmp0_desc = this.m81_1;
|
|
2423
2423
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2424
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2425
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
2426
|
-
tmp1_output.n10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
2424
|
+
tmp1_output.l10(tmp0_desc, 0, value.u7w_1);
|
|
2425
|
+
tmp1_output.l10(tmp0_desc, 1, value.v7w_1);
|
|
2426
|
+
tmp1_output.n10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.w7w_1);
|
|
2427
2427
|
tmp1_output.xy(tmp0_desc);
|
|
2428
2428
|
};
|
|
2429
2429
|
protoOf($serializer_5).gv = function (encoder, value) {
|
|
2430
|
-
return this.
|
|
2430
|
+
return this.n81(encoder, value instanceof ToolUse ? value : THROW_CCE());
|
|
2431
2431
|
};
|
|
2432
2432
|
protoOf($serializer_5).hv = function (decoder) {
|
|
2433
|
-
var tmp0_desc = this.
|
|
2433
|
+
var tmp0_desc = this.m81_1;
|
|
2434
2434
|
var tmp1_flag = true;
|
|
2435
2435
|
var tmp2_index = 0;
|
|
2436
2436
|
var tmp3_bitMask0 = 0;
|
|
@@ -2472,7 +2472,7 @@
|
|
|
2472
2472
|
return ToolUse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
2473
2473
|
};
|
|
2474
2474
|
protoOf($serializer_5).fv = function () {
|
|
2475
|
-
return this.
|
|
2475
|
+
return this.m81_1;
|
|
2476
2476
|
};
|
|
2477
2477
|
protoOf($serializer_5).d17 = function () {
|
|
2478
2478
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2488,12 +2488,12 @@
|
|
|
2488
2488
|
}
|
|
2489
2489
|
function ToolUse_init_$Init$(seen0, id, name, input, serializationConstructorMarker, $this) {
|
|
2490
2490
|
if (!(7 === (7 & seen0))) {
|
|
2491
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_5().
|
|
2491
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_5().m81_1);
|
|
2492
2492
|
}
|
|
2493
2493
|
AnthropicContent_init_$Init$(seen0, serializationConstructorMarker, $this);
|
|
2494
|
-
$this.
|
|
2495
|
-
$this.
|
|
2496
|
-
$this.
|
|
2494
|
+
$this.u7w_1 = id;
|
|
2495
|
+
$this.v7w_1 = name;
|
|
2496
|
+
$this.w7w_1 = input;
|
|
2497
2497
|
return $this;
|
|
2498
2498
|
}
|
|
2499
2499
|
function ToolUse_init_$Create$(seen0, id, name, input, serializationConstructorMarker) {
|
|
@@ -2510,20 +2510,20 @@
|
|
|
2510
2510
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('tool_result', this, 2);
|
|
2511
2511
|
tmp0_serialDesc.m16('toolUseId', false);
|
|
2512
2512
|
tmp0_serialDesc.m16('content', false);
|
|
2513
|
-
this.
|
|
2513
|
+
this.o81_1 = tmp0_serialDesc;
|
|
2514
2514
|
}
|
|
2515
|
-
protoOf($serializer_6).
|
|
2516
|
-
var tmp0_desc = this.
|
|
2515
|
+
protoOf($serializer_6).p81 = function (encoder, value) {
|
|
2516
|
+
var tmp0_desc = this.o81_1;
|
|
2517
2517
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2518
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2519
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
2518
|
+
tmp1_output.l10(tmp0_desc, 0, value.q81_1);
|
|
2519
|
+
tmp1_output.l10(tmp0_desc, 1, value.r81_1);
|
|
2520
2520
|
tmp1_output.xy(tmp0_desc);
|
|
2521
2521
|
};
|
|
2522
2522
|
protoOf($serializer_6).gv = function (encoder, value) {
|
|
2523
|
-
return this.
|
|
2523
|
+
return this.p81(encoder, value instanceof ToolResult ? value : THROW_CCE());
|
|
2524
2524
|
};
|
|
2525
2525
|
protoOf($serializer_6).hv = function (decoder) {
|
|
2526
|
-
var tmp0_desc = this.
|
|
2526
|
+
var tmp0_desc = this.o81_1;
|
|
2527
2527
|
var tmp1_flag = true;
|
|
2528
2528
|
var tmp2_index = 0;
|
|
2529
2529
|
var tmp3_bitMask0 = 0;
|
|
@@ -2558,7 +2558,7 @@
|
|
|
2558
2558
|
return ToolResult_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2559
2559
|
};
|
|
2560
2560
|
protoOf($serializer_6).fv = function () {
|
|
2561
|
-
return this.
|
|
2561
|
+
return this.o81_1;
|
|
2562
2562
|
};
|
|
2563
2563
|
protoOf($serializer_6).d17 = function () {
|
|
2564
2564
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2574,18 +2574,18 @@
|
|
|
2574
2574
|
}
|
|
2575
2575
|
function ToolResult_init_$Init$(seen0, toolUseId, content, serializationConstructorMarker, $this) {
|
|
2576
2576
|
if (!(3 === (3 & seen0))) {
|
|
2577
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().
|
|
2577
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_6().o81_1);
|
|
2578
2578
|
}
|
|
2579
2579
|
AnthropicContent_init_$Init$(seen0, serializationConstructorMarker, $this);
|
|
2580
|
-
$this.
|
|
2581
|
-
$this.
|
|
2580
|
+
$this.q81_1 = toolUseId;
|
|
2581
|
+
$this.r81_1 = content;
|
|
2582
2582
|
return $this;
|
|
2583
2583
|
}
|
|
2584
2584
|
function ToolResult_init_$Create$(seen0, toolUseId, content, serializationConstructorMarker) {
|
|
2585
2585
|
return ToolResult_init_$Init$(seen0, toolUseId, content, serializationConstructorMarker, objectCreate(protoOf(ToolResult)));
|
|
2586
2586
|
}
|
|
2587
2587
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
2588
|
-
return $this.
|
|
2588
|
+
return $this.w80_1.b1();
|
|
2589
2589
|
}
|
|
2590
2590
|
function AnthropicContent$Companion$_anonymous__s94qam() {
|
|
2591
2591
|
var tmp = getKClass(AnthropicContent);
|
|
@@ -2605,13 +2605,13 @@
|
|
|
2605
2605
|
}
|
|
2606
2606
|
function Text_0(text) {
|
|
2607
2607
|
AnthropicContent.call(this);
|
|
2608
|
-
this.
|
|
2608
|
+
this.x7w_1 = text;
|
|
2609
2609
|
}
|
|
2610
2610
|
protoOf(Text_0).toString = function () {
|
|
2611
|
-
return 'Text(text=' + this.
|
|
2611
|
+
return 'Text(text=' + this.x7w_1 + ')';
|
|
2612
2612
|
};
|
|
2613
2613
|
protoOf(Text_0).hashCode = function () {
|
|
2614
|
-
return getStringHashCode(this.
|
|
2614
|
+
return getStringHashCode(this.x7w_1);
|
|
2615
2615
|
};
|
|
2616
2616
|
protoOf(Text_0).equals = function (other) {
|
|
2617
2617
|
if (this === other)
|
|
@@ -2619,20 +2619,20 @@
|
|
|
2619
2619
|
if (!(other instanceof Text_0))
|
|
2620
2620
|
return false;
|
|
2621
2621
|
var tmp0_other_with_cast = other instanceof Text_0 ? other : THROW_CCE();
|
|
2622
|
-
if (!(this.
|
|
2622
|
+
if (!(this.x7w_1 === tmp0_other_with_cast.x7w_1))
|
|
2623
2623
|
return false;
|
|
2624
2624
|
return true;
|
|
2625
2625
|
};
|
|
2626
2626
|
function Image_0(source) {
|
|
2627
2627
|
Companion_getInstance_7();
|
|
2628
2628
|
AnthropicContent.call(this);
|
|
2629
|
-
this.
|
|
2629
|
+
this.h81_1 = source;
|
|
2630
2630
|
}
|
|
2631
2631
|
protoOf(Image_0).toString = function () {
|
|
2632
|
-
return 'Image(source=' + toString(this.
|
|
2632
|
+
return 'Image(source=' + toString(this.h81_1) + ')';
|
|
2633
2633
|
};
|
|
2634
2634
|
protoOf(Image_0).hashCode = function () {
|
|
2635
|
-
return hashCode(this.
|
|
2635
|
+
return hashCode(this.h81_1);
|
|
2636
2636
|
};
|
|
2637
2637
|
protoOf(Image_0).equals = function (other) {
|
|
2638
2638
|
if (this === other)
|
|
@@ -2640,20 +2640,20 @@
|
|
|
2640
2640
|
if (!(other instanceof Image_0))
|
|
2641
2641
|
return false;
|
|
2642
2642
|
var tmp0_other_with_cast = other instanceof Image_0 ? other : THROW_CCE();
|
|
2643
|
-
if (!equals(this.
|
|
2643
|
+
if (!equals(this.h81_1, tmp0_other_with_cast.h81_1))
|
|
2644
2644
|
return false;
|
|
2645
2645
|
return true;
|
|
2646
2646
|
};
|
|
2647
2647
|
function Document(source) {
|
|
2648
2648
|
Companion_getInstance_8();
|
|
2649
2649
|
AnthropicContent.call(this);
|
|
2650
|
-
this.
|
|
2650
|
+
this.l81_1 = source;
|
|
2651
2651
|
}
|
|
2652
2652
|
protoOf(Document).toString = function () {
|
|
2653
|
-
return 'Document(source=' + toString(this.
|
|
2653
|
+
return 'Document(source=' + toString(this.l81_1) + ')';
|
|
2654
2654
|
};
|
|
2655
2655
|
protoOf(Document).hashCode = function () {
|
|
2656
|
-
return hashCode(this.
|
|
2656
|
+
return hashCode(this.l81_1);
|
|
2657
2657
|
};
|
|
2658
2658
|
protoOf(Document).equals = function (other) {
|
|
2659
2659
|
if (this === other)
|
|
@@ -2661,23 +2661,23 @@
|
|
|
2661
2661
|
if (!(other instanceof Document))
|
|
2662
2662
|
return false;
|
|
2663
2663
|
var tmp0_other_with_cast = other instanceof Document ? other : THROW_CCE();
|
|
2664
|
-
if (!equals(this.
|
|
2664
|
+
if (!equals(this.l81_1, tmp0_other_with_cast.l81_1))
|
|
2665
2665
|
return false;
|
|
2666
2666
|
return true;
|
|
2667
2667
|
};
|
|
2668
2668
|
function ToolUse(id, name, input) {
|
|
2669
2669
|
AnthropicContent.call(this);
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2672
|
-
this.
|
|
2670
|
+
this.u7w_1 = id;
|
|
2671
|
+
this.v7w_1 = name;
|
|
2672
|
+
this.w7w_1 = input;
|
|
2673
2673
|
}
|
|
2674
2674
|
protoOf(ToolUse).toString = function () {
|
|
2675
|
-
return 'ToolUse(id=' + this.
|
|
2675
|
+
return 'ToolUse(id=' + this.u7w_1 + ', name=' + this.v7w_1 + ', input=' + this.w7w_1.toString() + ')';
|
|
2676
2676
|
};
|
|
2677
2677
|
protoOf(ToolUse).hashCode = function () {
|
|
2678
|
-
var result = getStringHashCode(this.
|
|
2679
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2680
|
-
result = imul(result, 31) + this.
|
|
2678
|
+
var result = getStringHashCode(this.u7w_1);
|
|
2679
|
+
result = imul(result, 31) + getStringHashCode(this.v7w_1) | 0;
|
|
2680
|
+
result = imul(result, 31) + this.w7w_1.hashCode() | 0;
|
|
2681
2681
|
return result;
|
|
2682
2682
|
};
|
|
2683
2683
|
protoOf(ToolUse).equals = function (other) {
|
|
@@ -2686,25 +2686,25 @@
|
|
|
2686
2686
|
if (!(other instanceof ToolUse))
|
|
2687
2687
|
return false;
|
|
2688
2688
|
var tmp0_other_with_cast = other instanceof ToolUse ? other : THROW_CCE();
|
|
2689
|
-
if (!(this.
|
|
2689
|
+
if (!(this.u7w_1 === tmp0_other_with_cast.u7w_1))
|
|
2690
2690
|
return false;
|
|
2691
|
-
if (!(this.
|
|
2691
|
+
if (!(this.v7w_1 === tmp0_other_with_cast.v7w_1))
|
|
2692
2692
|
return false;
|
|
2693
|
-
if (!this.
|
|
2693
|
+
if (!this.w7w_1.equals(tmp0_other_with_cast.w7w_1))
|
|
2694
2694
|
return false;
|
|
2695
2695
|
return true;
|
|
2696
2696
|
};
|
|
2697
2697
|
function ToolResult(toolUseId, content) {
|
|
2698
2698
|
AnthropicContent.call(this);
|
|
2699
|
-
this.
|
|
2700
|
-
this.
|
|
2699
|
+
this.q81_1 = toolUseId;
|
|
2700
|
+
this.r81_1 = content;
|
|
2701
2701
|
}
|
|
2702
2702
|
protoOf(ToolResult).toString = function () {
|
|
2703
|
-
return 'ToolResult(toolUseId=' + this.
|
|
2703
|
+
return 'ToolResult(toolUseId=' + this.q81_1 + ', content=' + this.r81_1 + ')';
|
|
2704
2704
|
};
|
|
2705
2705
|
protoOf(ToolResult).hashCode = function () {
|
|
2706
|
-
var result = getStringHashCode(this.
|
|
2707
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2706
|
+
var result = getStringHashCode(this.q81_1);
|
|
2707
|
+
result = imul(result, 31) + getStringHashCode(this.r81_1) | 0;
|
|
2708
2708
|
return result;
|
|
2709
2709
|
};
|
|
2710
2710
|
protoOf(ToolResult).equals = function (other) {
|
|
@@ -2713,9 +2713,9 @@
|
|
|
2713
2713
|
if (!(other instanceof ToolResult))
|
|
2714
2714
|
return false;
|
|
2715
2715
|
var tmp0_other_with_cast = other instanceof ToolResult ? other : THROW_CCE();
|
|
2716
|
-
if (!(this.
|
|
2716
|
+
if (!(this.q81_1 === tmp0_other_with_cast.q81_1))
|
|
2717
2717
|
return false;
|
|
2718
|
-
if (!(this.
|
|
2718
|
+
if (!(this.r81_1 === tmp0_other_with_cast.r81_1))
|
|
2719
2719
|
return false;
|
|
2720
2720
|
return true;
|
|
2721
2721
|
};
|
|
@@ -2723,7 +2723,7 @@
|
|
|
2723
2723
|
Companion_instance_8 = this;
|
|
2724
2724
|
var tmp = this;
|
|
2725
2725
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2726
|
-
tmp.
|
|
2726
|
+
tmp.w80_1 = lazy(tmp_0, AnthropicContent$Companion$_anonymous__s94qam);
|
|
2727
2727
|
}
|
|
2728
2728
|
protoOf(Companion_8).q1j = function () {
|
|
2729
2729
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -2757,33 +2757,33 @@
|
|
|
2757
2757
|
tmp0_serialDesc.m16('partialJson', true);
|
|
2758
2758
|
tmp0_serialDesc.m16('stopReason', true);
|
|
2759
2759
|
tmp0_serialDesc.m16('toolUse', true);
|
|
2760
|
-
this.
|
|
2760
|
+
this.s81_1 = tmp0_serialDesc;
|
|
2761
2761
|
}
|
|
2762
|
-
protoOf($serializer_7).
|
|
2763
|
-
var tmp0_desc = this.
|
|
2762
|
+
protoOf($serializer_7).t81 = function (encoder, value) {
|
|
2763
|
+
var tmp0_desc = this.s81_1;
|
|
2764
2764
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2765
|
-
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.
|
|
2766
|
-
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.
|
|
2765
|
+
if (tmp1_output.t10(tmp0_desc, 0) ? true : !(value.p7w_1 == null)) {
|
|
2766
|
+
tmp1_output.p10(tmp0_desc, 0, StringSerializer_getInstance(), value.p7w_1);
|
|
2767
2767
|
}
|
|
2768
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2769
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2768
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.q7w_1 == null)) {
|
|
2769
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.q7w_1);
|
|
2770
2770
|
}
|
|
2771
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
2772
|
-
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2771
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.r7w_1 == null)) {
|
|
2772
|
+
tmp1_output.p10(tmp0_desc, 2, StringSerializer_getInstance(), value.r7w_1);
|
|
2773
2773
|
}
|
|
2774
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
2775
|
-
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
2774
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.s7w_1 == null)) {
|
|
2775
|
+
tmp1_output.p10(tmp0_desc, 3, StringSerializer_getInstance(), value.s7w_1);
|
|
2776
2776
|
}
|
|
2777
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
2778
|
-
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance_21(), value.
|
|
2777
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.t7w_1 == null)) {
|
|
2778
|
+
tmp1_output.p10(tmp0_desc, 4, $serializer_getInstance_21(), value.t7w_1);
|
|
2779
2779
|
}
|
|
2780
2780
|
tmp1_output.xy(tmp0_desc);
|
|
2781
2781
|
};
|
|
2782
2782
|
protoOf($serializer_7).gv = function (encoder, value) {
|
|
2783
|
-
return this.
|
|
2783
|
+
return this.t81(encoder, value instanceof AnthropicStreamDelta ? value : THROW_CCE());
|
|
2784
2784
|
};
|
|
2785
2785
|
protoOf($serializer_7).hv = function (decoder) {
|
|
2786
|
-
var tmp0_desc = this.
|
|
2786
|
+
var tmp0_desc = this.s81_1;
|
|
2787
2787
|
var tmp1_flag = true;
|
|
2788
2788
|
var tmp2_index = 0;
|
|
2789
2789
|
var tmp3_bitMask0 = 0;
|
|
@@ -2839,7 +2839,7 @@
|
|
|
2839
2839
|
return AnthropicStreamDelta_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
2840
2840
|
};
|
|
2841
2841
|
protoOf($serializer_7).fv = function () {
|
|
2842
|
-
return this.
|
|
2842
|
+
return this.s81_1;
|
|
2843
2843
|
};
|
|
2844
2844
|
protoOf($serializer_7).d17 = function () {
|
|
2845
2845
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2855,28 +2855,28 @@
|
|
|
2855
2855
|
}
|
|
2856
2856
|
function AnthropicStreamDelta_init_$Init$(seen0, type, text, partialJson, stopReason, toolUse, serializationConstructorMarker, $this) {
|
|
2857
2857
|
if (!(0 === (0 & seen0))) {
|
|
2858
|
-
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().
|
|
2858
|
+
throwMissingFieldException(seen0, 0, $serializer_getInstance_7().s81_1);
|
|
2859
2859
|
}
|
|
2860
2860
|
if (0 === (seen0 & 1))
|
|
2861
|
-
$this.
|
|
2861
|
+
$this.p7w_1 = null;
|
|
2862
2862
|
else
|
|
2863
|
-
$this.
|
|
2863
|
+
$this.p7w_1 = type;
|
|
2864
2864
|
if (0 === (seen0 & 2))
|
|
2865
|
-
$this.
|
|
2865
|
+
$this.q7w_1 = null;
|
|
2866
2866
|
else
|
|
2867
|
-
$this.
|
|
2867
|
+
$this.q7w_1 = text;
|
|
2868
2868
|
if (0 === (seen0 & 4))
|
|
2869
|
-
$this.
|
|
2869
|
+
$this.r7w_1 = null;
|
|
2870
2870
|
else
|
|
2871
|
-
$this.
|
|
2871
|
+
$this.r7w_1 = partialJson;
|
|
2872
2872
|
if (0 === (seen0 & 8))
|
|
2873
|
-
$this.
|
|
2873
|
+
$this.s7w_1 = null;
|
|
2874
2874
|
else
|
|
2875
|
-
$this.
|
|
2875
|
+
$this.s7w_1 = stopReason;
|
|
2876
2876
|
if (0 === (seen0 & 16))
|
|
2877
|
-
$this.
|
|
2877
|
+
$this.t7w_1 = null;
|
|
2878
2878
|
else
|
|
2879
|
-
$this.
|
|
2879
|
+
$this.t7w_1 = toolUse;
|
|
2880
2880
|
return $this;
|
|
2881
2881
|
}
|
|
2882
2882
|
function AnthropicStreamDelta_init_$Create$(seen0, type, text, partialJson, stopReason, toolUse, serializationConstructorMarker) {
|
|
@@ -2888,21 +2888,21 @@
|
|
|
2888
2888
|
partialJson = partialJson === VOID ? null : partialJson;
|
|
2889
2889
|
stopReason = stopReason === VOID ? null : stopReason;
|
|
2890
2890
|
toolUse = toolUse === VOID ? null : toolUse;
|
|
2891
|
-
this.
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2891
|
+
this.p7w_1 = type;
|
|
2892
|
+
this.q7w_1 = text;
|
|
2893
|
+
this.r7w_1 = partialJson;
|
|
2894
|
+
this.s7w_1 = stopReason;
|
|
2895
|
+
this.t7w_1 = toolUse;
|
|
2896
2896
|
}
|
|
2897
2897
|
protoOf(AnthropicStreamDelta).toString = function () {
|
|
2898
|
-
return 'AnthropicStreamDelta(type=' + this.
|
|
2898
|
+
return 'AnthropicStreamDelta(type=' + this.p7w_1 + ', text=' + this.q7w_1 + ', partialJson=' + this.r7w_1 + ', stopReason=' + this.s7w_1 + ', toolUse=' + toString_0(this.t7w_1) + ')';
|
|
2899
2899
|
};
|
|
2900
2900
|
protoOf(AnthropicStreamDelta).hashCode = function () {
|
|
2901
|
-
var result = this.
|
|
2902
|
-
result = imul(result, 31) + (this.
|
|
2903
|
-
result = imul(result, 31) + (this.
|
|
2904
|
-
result = imul(result, 31) + (this.
|
|
2905
|
-
result = imul(result, 31) + (this.
|
|
2901
|
+
var result = this.p7w_1 == null ? 0 : getStringHashCode(this.p7w_1);
|
|
2902
|
+
result = imul(result, 31) + (this.q7w_1 == null ? 0 : getStringHashCode(this.q7w_1)) | 0;
|
|
2903
|
+
result = imul(result, 31) + (this.r7w_1 == null ? 0 : getStringHashCode(this.r7w_1)) | 0;
|
|
2904
|
+
result = imul(result, 31) + (this.s7w_1 == null ? 0 : getStringHashCode(this.s7w_1)) | 0;
|
|
2905
|
+
result = imul(result, 31) + (this.t7w_1 == null ? 0 : this.t7w_1.hashCode()) | 0;
|
|
2906
2906
|
return result;
|
|
2907
2907
|
};
|
|
2908
2908
|
protoOf(AnthropicStreamDelta).equals = function (other) {
|
|
@@ -2911,15 +2911,15 @@
|
|
|
2911
2911
|
if (!(other instanceof AnthropicStreamDelta))
|
|
2912
2912
|
return false;
|
|
2913
2913
|
var tmp0_other_with_cast = other instanceof AnthropicStreamDelta ? other : THROW_CCE();
|
|
2914
|
-
if (!(this.
|
|
2914
|
+
if (!(this.p7w_1 == tmp0_other_with_cast.p7w_1))
|
|
2915
2915
|
return false;
|
|
2916
|
-
if (!(this.
|
|
2916
|
+
if (!(this.q7w_1 == tmp0_other_with_cast.q7w_1))
|
|
2917
2917
|
return false;
|
|
2918
|
-
if (!(this.
|
|
2918
|
+
if (!(this.r7w_1 == tmp0_other_with_cast.r7w_1))
|
|
2919
2919
|
return false;
|
|
2920
|
-
if (!(this.
|
|
2920
|
+
if (!(this.s7w_1 == tmp0_other_with_cast.s7w_1))
|
|
2921
2921
|
return false;
|
|
2922
|
-
if (!equals(this.
|
|
2922
|
+
if (!equals(this.t7w_1, tmp0_other_with_cast.t7w_1))
|
|
2923
2923
|
return false;
|
|
2924
2924
|
return true;
|
|
2925
2925
|
};
|
|
@@ -2928,22 +2928,22 @@
|
|
|
2928
2928
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.anthropic.AnthropicStreamError', this, 2);
|
|
2929
2929
|
tmp0_serialDesc.m16('type', false);
|
|
2930
2930
|
tmp0_serialDesc.m16('message', true);
|
|
2931
|
-
this.
|
|
2931
|
+
this.u81_1 = tmp0_serialDesc;
|
|
2932
2932
|
}
|
|
2933
|
-
protoOf($serializer_8).
|
|
2934
|
-
var tmp0_desc = this.
|
|
2933
|
+
protoOf($serializer_8).v81 = function (encoder, value) {
|
|
2934
|
+
var tmp0_desc = this.u81_1;
|
|
2935
2935
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
2936
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
2937
|
-
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.
|
|
2938
|
-
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2936
|
+
tmp1_output.l10(tmp0_desc, 0, value.w81_1);
|
|
2937
|
+
if (tmp1_output.t10(tmp0_desc, 1) ? true : !(value.x81_1 == null)) {
|
|
2938
|
+
tmp1_output.p10(tmp0_desc, 1, StringSerializer_getInstance(), value.x81_1);
|
|
2939
2939
|
}
|
|
2940
2940
|
tmp1_output.xy(tmp0_desc);
|
|
2941
2941
|
};
|
|
2942
2942
|
protoOf($serializer_8).gv = function (encoder, value) {
|
|
2943
|
-
return this.
|
|
2943
|
+
return this.v81(encoder, value instanceof AnthropicStreamError ? value : THROW_CCE());
|
|
2944
2944
|
};
|
|
2945
2945
|
protoOf($serializer_8).hv = function (decoder) {
|
|
2946
|
-
var tmp0_desc = this.
|
|
2946
|
+
var tmp0_desc = this.u81_1;
|
|
2947
2947
|
var tmp1_flag = true;
|
|
2948
2948
|
var tmp2_index = 0;
|
|
2949
2949
|
var tmp3_bitMask0 = 0;
|
|
@@ -2978,7 +2978,7 @@
|
|
|
2978
2978
|
return AnthropicStreamError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
2979
2979
|
};
|
|
2980
2980
|
protoOf($serializer_8).fv = function () {
|
|
2981
|
-
return this.
|
|
2981
|
+
return this.u81_1;
|
|
2982
2982
|
};
|
|
2983
2983
|
protoOf($serializer_8).d17 = function () {
|
|
2984
2984
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2994,13 +2994,13 @@
|
|
|
2994
2994
|
}
|
|
2995
2995
|
function AnthropicStreamError_init_$Init$(seen0, type, message, serializationConstructorMarker, $this) {
|
|
2996
2996
|
if (!(1 === (1 & seen0))) {
|
|
2997
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().
|
|
2997
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_8().u81_1);
|
|
2998
2998
|
}
|
|
2999
|
-
$this.
|
|
2999
|
+
$this.w81_1 = type;
|
|
3000
3000
|
if (0 === (seen0 & 2))
|
|
3001
|
-
$this.
|
|
3001
|
+
$this.x81_1 = null;
|
|
3002
3002
|
else
|
|
3003
|
-
$this.
|
|
3003
|
+
$this.x81_1 = message;
|
|
3004
3004
|
return $this;
|
|
3005
3005
|
}
|
|
3006
3006
|
function AnthropicStreamError_init_$Create$(seen0, type, message, serializationConstructorMarker) {
|
|
@@ -3009,11 +3009,11 @@
|
|
|
3009
3009
|
function AnthropicStreamError() {
|
|
3010
3010
|
}
|
|
3011
3011
|
protoOf(AnthropicStreamError).toString = function () {
|
|
3012
|
-
return 'AnthropicStreamError(type=' + this.
|
|
3012
|
+
return 'AnthropicStreamError(type=' + this.w81_1 + ', message=' + this.x81_1 + ')';
|
|
3013
3013
|
};
|
|
3014
3014
|
protoOf(AnthropicStreamError).hashCode = function () {
|
|
3015
|
-
var result = getStringHashCode(this.
|
|
3016
|
-
result = imul(result, 31) + (this.
|
|
3015
|
+
var result = getStringHashCode(this.w81_1);
|
|
3016
|
+
result = imul(result, 31) + (this.x81_1 == null ? 0 : getStringHashCode(this.x81_1)) | 0;
|
|
3017
3017
|
return result;
|
|
3018
3018
|
};
|
|
3019
3019
|
protoOf(AnthropicStreamError).equals = function (other) {
|
|
@@ -3022,9 +3022,9 @@
|
|
|
3022
3022
|
if (!(other instanceof AnthropicStreamError))
|
|
3023
3023
|
return false;
|
|
3024
3024
|
var tmp0_other_with_cast = other instanceof AnthropicStreamError ? other : THROW_CCE();
|
|
3025
|
-
if (!(this.
|
|
3025
|
+
if (!(this.w81_1 === tmp0_other_with_cast.w81_1))
|
|
3026
3026
|
return false;
|
|
3027
|
-
if (!(this.
|
|
3027
|
+
if (!(this.x81_1 == tmp0_other_with_cast.x81_1))
|
|
3028
3028
|
return false;
|
|
3029
3029
|
return true;
|
|
3030
3030
|
};
|
|
@@ -3039,20 +3039,20 @@
|
|
|
3039
3039
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.anthropic.SystemAnthropicMessage', this, 2);
|
|
3040
3040
|
tmp0_serialDesc.m16('text', false);
|
|
3041
3041
|
tmp0_serialDesc.m16('type', true);
|
|
3042
|
-
this.
|
|
3042
|
+
this.y81_1 = tmp0_serialDesc;
|
|
3043
3043
|
}
|
|
3044
|
-
protoOf($serializer_9).
|
|
3045
|
-
var tmp0_desc = this.
|
|
3044
|
+
protoOf($serializer_9).z81 = function (encoder, value) {
|
|
3045
|
+
var tmp0_desc = this.y81_1;
|
|
3046
3046
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3047
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3048
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
3047
|
+
tmp1_output.l10(tmp0_desc, 0, value.a82_1);
|
|
3048
|
+
tmp1_output.l10(tmp0_desc, 1, value.b82_1);
|
|
3049
3049
|
tmp1_output.xy(tmp0_desc);
|
|
3050
3050
|
};
|
|
3051
3051
|
protoOf($serializer_9).gv = function (encoder, value) {
|
|
3052
|
-
return this.
|
|
3052
|
+
return this.z81(encoder, value instanceof SystemAnthropicMessage ? value : THROW_CCE());
|
|
3053
3053
|
};
|
|
3054
3054
|
protoOf($serializer_9).hv = function (decoder) {
|
|
3055
|
-
var tmp0_desc = this.
|
|
3055
|
+
var tmp0_desc = this.y81_1;
|
|
3056
3056
|
var tmp1_flag = true;
|
|
3057
3057
|
var tmp2_index = 0;
|
|
3058
3058
|
var tmp3_bitMask0 = 0;
|
|
@@ -3087,7 +3087,7 @@
|
|
|
3087
3087
|
return SystemAnthropicMessage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3088
3088
|
};
|
|
3089
3089
|
protoOf($serializer_9).fv = function () {
|
|
3090
|
-
return this.
|
|
3090
|
+
return this.y81_1;
|
|
3091
3091
|
};
|
|
3092
3092
|
protoOf($serializer_9).d17 = function () {
|
|
3093
3093
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3103,13 +3103,13 @@
|
|
|
3103
3103
|
}
|
|
3104
3104
|
function SystemAnthropicMessage_init_$Init$(seen0, text, type, serializationConstructorMarker, $this) {
|
|
3105
3105
|
if (!(1 === (1 & seen0))) {
|
|
3106
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_9().
|
|
3106
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_9().y81_1);
|
|
3107
3107
|
}
|
|
3108
|
-
$this.
|
|
3108
|
+
$this.a82_1 = text;
|
|
3109
3109
|
if (0 === (seen0 & 2))
|
|
3110
|
-
$this.
|
|
3110
|
+
$this.b82_1 = 'text';
|
|
3111
3111
|
else
|
|
3112
|
-
$this.
|
|
3112
|
+
$this.b82_1 = type;
|
|
3113
3113
|
return $this;
|
|
3114
3114
|
}
|
|
3115
3115
|
function SystemAnthropicMessage_init_$Create$(seen0, text, type, serializationConstructorMarker) {
|
|
@@ -3117,15 +3117,15 @@
|
|
|
3117
3117
|
}
|
|
3118
3118
|
function SystemAnthropicMessage(text, type) {
|
|
3119
3119
|
type = type === VOID ? 'text' : type;
|
|
3120
|
-
this.
|
|
3121
|
-
this.
|
|
3120
|
+
this.a82_1 = text;
|
|
3121
|
+
this.b82_1 = type;
|
|
3122
3122
|
}
|
|
3123
3123
|
protoOf(SystemAnthropicMessage).toString = function () {
|
|
3124
|
-
return 'SystemAnthropicMessage(text=' + this.
|
|
3124
|
+
return 'SystemAnthropicMessage(text=' + this.a82_1 + ', type=' + this.b82_1 + ')';
|
|
3125
3125
|
};
|
|
3126
3126
|
protoOf(SystemAnthropicMessage).hashCode = function () {
|
|
3127
|
-
var result = getStringHashCode(this.
|
|
3128
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3127
|
+
var result = getStringHashCode(this.a82_1);
|
|
3128
|
+
result = imul(result, 31) + getStringHashCode(this.b82_1) | 0;
|
|
3129
3129
|
return result;
|
|
3130
3130
|
};
|
|
3131
3131
|
protoOf(SystemAnthropicMessage).equals = function (other) {
|
|
@@ -3134,9 +3134,9 @@
|
|
|
3134
3134
|
if (!(other instanceof SystemAnthropicMessage))
|
|
3135
3135
|
return false;
|
|
3136
3136
|
var tmp0_other_with_cast = other instanceof SystemAnthropicMessage ? other : THROW_CCE();
|
|
3137
|
-
if (!(this.
|
|
3137
|
+
if (!(this.a82_1 === tmp0_other_with_cast.a82_1))
|
|
3138
3138
|
return false;
|
|
3139
|
-
if (!(this.
|
|
3139
|
+
if (!(this.b82_1 === tmp0_other_with_cast.b82_1))
|
|
3140
3140
|
return false;
|
|
3141
3141
|
return true;
|
|
3142
3142
|
};
|
|
@@ -3150,7 +3150,7 @@
|
|
|
3150
3150
|
// Inline function 'kotlin.arrayOf' call
|
|
3151
3151
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3152
3152
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3153
|
-
tmp.
|
|
3153
|
+
tmp.c82_1 = [null, lazy(tmp_0, AnthropicMessage$Companion$$childSerializers$_anonymous__qndbyp)];
|
|
3154
3154
|
}
|
|
3155
3155
|
var Companion_instance_11;
|
|
3156
3156
|
function Companion_getInstance_14() {
|
|
@@ -3163,28 +3163,28 @@
|
|
|
3163
3163
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.executor.clients.anthropic.AnthropicMessage', this, 2);
|
|
3164
3164
|
tmp0_serialDesc.m16('role', false);
|
|
3165
3165
|
tmp0_serialDesc.m16('content', false);
|
|
3166
|
-
this.
|
|
3166
|
+
this.d82_1 = tmp0_serialDesc;
|
|
3167
3167
|
}
|
|
3168
|
-
protoOf($serializer_10).
|
|
3169
|
-
var tmp0_desc = this.
|
|
3168
|
+
protoOf($serializer_10).e82 = function (encoder, value) {
|
|
3169
|
+
var tmp0_desc = this.d82_1;
|
|
3170
3170
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3171
|
-
var tmp2_cached = Companion_getInstance_14().
|
|
3172
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3173
|
-
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
3171
|
+
var tmp2_cached = Companion_getInstance_14().c82_1;
|
|
3172
|
+
tmp1_output.l10(tmp0_desc, 0, value.f82_1);
|
|
3173
|
+
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.g82_1);
|
|
3174
3174
|
tmp1_output.xy(tmp0_desc);
|
|
3175
3175
|
};
|
|
3176
3176
|
protoOf($serializer_10).gv = function (encoder, value) {
|
|
3177
|
-
return this.
|
|
3177
|
+
return this.e82(encoder, value instanceof AnthropicMessage ? value : THROW_CCE());
|
|
3178
3178
|
};
|
|
3179
3179
|
protoOf($serializer_10).hv = function (decoder) {
|
|
3180
|
-
var tmp0_desc = this.
|
|
3180
|
+
var tmp0_desc = this.d82_1;
|
|
3181
3181
|
var tmp1_flag = true;
|
|
3182
3182
|
var tmp2_index = 0;
|
|
3183
3183
|
var tmp3_bitMask0 = 0;
|
|
3184
3184
|
var tmp4_local0 = null;
|
|
3185
3185
|
var tmp5_local1 = null;
|
|
3186
3186
|
var tmp6_input = decoder.wy(tmp0_desc);
|
|
3187
|
-
var tmp7_cached = Companion_getInstance_14().
|
|
3187
|
+
var tmp7_cached = Companion_getInstance_14().c82_1;
|
|
3188
3188
|
if (tmp6_input.mz()) {
|
|
3189
3189
|
tmp4_local0 = tmp6_input.gz(tmp0_desc, 0);
|
|
3190
3190
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -3213,10 +3213,10 @@
|
|
|
3213
3213
|
return AnthropicMessage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
3214
3214
|
};
|
|
3215
3215
|
protoOf($serializer_10).fv = function () {
|
|
3216
|
-
return this.
|
|
3216
|
+
return this.d82_1;
|
|
3217
3217
|
};
|
|
3218
3218
|
protoOf($serializer_10).d17 = function () {
|
|
3219
|
-
var tmp0_cached = Companion_getInstance_14().
|
|
3219
|
+
var tmp0_cached = Companion_getInstance_14().c82_1;
|
|
3220
3220
|
// Inline function 'kotlin.arrayOf' call
|
|
3221
3221
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3222
3222
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3230,10 +3230,10 @@
|
|
|
3230
3230
|
}
|
|
3231
3231
|
function AnthropicMessage_init_$Init$(seen0, role, content, serializationConstructorMarker, $this) {
|
|
3232
3232
|
if (!(3 === (3 & seen0))) {
|
|
3233
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_10().
|
|
3233
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_10().d82_1);
|
|
3234
3234
|
}
|
|
3235
|
-
$this.
|
|
3236
|
-
$this.
|
|
3235
|
+
$this.f82_1 = role;
|
|
3236
|
+
$this.g82_1 = content;
|
|
3237
3237
|
return $this;
|
|
3238
3238
|
}
|
|
3239
3239
|
function AnthropicMessage_init_$Create$(seen0, role, content, serializationConstructorMarker) {
|
|
@@ -3241,15 +3241,15 @@
|
|
|
3241
3241
|
}
|
|
3242
3242
|
function AnthropicMessage(role, content) {
|
|
3243
3243
|
Companion_getInstance_14();
|
|
3244
|
-
this.
|
|
3245
|
-
this.
|
|
3244
|
+
this.f82_1 = role;
|
|
3245
|
+
this.g82_1 = content;
|
|
3246
3246
|
}
|
|
3247
3247
|
protoOf(AnthropicMessage).toString = function () {
|
|
3248
|
-
return 'AnthropicMessage(role=' + this.
|
|
3248
|
+
return 'AnthropicMessage(role=' + this.f82_1 + ', content=' + toString(this.g82_1) + ')';
|
|
3249
3249
|
};
|
|
3250
3250
|
protoOf(AnthropicMessage).hashCode = function () {
|
|
3251
|
-
var result = getStringHashCode(this.
|
|
3252
|
-
result = imul(result, 31) + hashCode(this.
|
|
3251
|
+
var result = getStringHashCode(this.f82_1);
|
|
3252
|
+
result = imul(result, 31) + hashCode(this.g82_1) | 0;
|
|
3253
3253
|
return result;
|
|
3254
3254
|
};
|
|
3255
3255
|
protoOf(AnthropicMessage).equals = function (other) {
|
|
@@ -3258,9 +3258,9 @@
|
|
|
3258
3258
|
if (!(other instanceof AnthropicMessage))
|
|
3259
3259
|
return false;
|
|
3260
3260
|
var tmp0_other_with_cast = other instanceof AnthropicMessage ? other : THROW_CCE();
|
|
3261
|
-
if (!(this.
|
|
3261
|
+
if (!(this.f82_1 === tmp0_other_with_cast.f82_1))
|
|
3262
3262
|
return false;
|
|
3263
|
-
if (!equals(this.
|
|
3263
|
+
if (!equals(this.g82_1, tmp0_other_with_cast.g82_1))
|
|
3264
3264
|
return false;
|
|
3265
3265
|
return true;
|
|
3266
3266
|
};
|
|
@@ -3276,21 +3276,21 @@
|
|
|
3276
3276
|
tmp0_serialDesc.m16('name', false);
|
|
3277
3277
|
tmp0_serialDesc.m16('description', false);
|
|
3278
3278
|
tmp0_serialDesc.m16('inputSchema', false);
|
|
3279
|
-
this.
|
|
3279
|
+
this.h82_1 = tmp0_serialDesc;
|
|
3280
3280
|
}
|
|
3281
|
-
protoOf($serializer_11).
|
|
3282
|
-
var tmp0_desc = this.
|
|
3281
|
+
protoOf($serializer_11).i82 = function (encoder, value) {
|
|
3282
|
+
var tmp0_desc = this.h82_1;
|
|
3283
3283
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3284
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3285
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
3286
|
-
tmp1_output.n10(tmp0_desc, 2, $serializer_getInstance_12(), value.
|
|
3284
|
+
tmp1_output.l10(tmp0_desc, 0, value.j82_1);
|
|
3285
|
+
tmp1_output.l10(tmp0_desc, 1, value.k82_1);
|
|
3286
|
+
tmp1_output.n10(tmp0_desc, 2, $serializer_getInstance_12(), value.l82_1);
|
|
3287
3287
|
tmp1_output.xy(tmp0_desc);
|
|
3288
3288
|
};
|
|
3289
3289
|
protoOf($serializer_11).gv = function (encoder, value) {
|
|
3290
|
-
return this.
|
|
3290
|
+
return this.i82(encoder, value instanceof AnthropicTool ? value : THROW_CCE());
|
|
3291
3291
|
};
|
|
3292
3292
|
protoOf($serializer_11).hv = function (decoder) {
|
|
3293
|
-
var tmp0_desc = this.
|
|
3293
|
+
var tmp0_desc = this.h82_1;
|
|
3294
3294
|
var tmp1_flag = true;
|
|
3295
3295
|
var tmp2_index = 0;
|
|
3296
3296
|
var tmp3_bitMask0 = 0;
|
|
@@ -3332,7 +3332,7 @@
|
|
|
3332
3332
|
return AnthropicTool_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
3333
3333
|
};
|
|
3334
3334
|
protoOf($serializer_11).fv = function () {
|
|
3335
|
-
return this.
|
|
3335
|
+
return this.h82_1;
|
|
3336
3336
|
};
|
|
3337
3337
|
protoOf($serializer_11).d17 = function () {
|
|
3338
3338
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3348,28 +3348,28 @@
|
|
|
3348
3348
|
}
|
|
3349
3349
|
function AnthropicTool_init_$Init$(seen0, name, description, inputSchema, serializationConstructorMarker, $this) {
|
|
3350
3350
|
if (!(7 === (7 & seen0))) {
|
|
3351
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_11().
|
|
3351
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_11().h82_1);
|
|
3352
3352
|
}
|
|
3353
|
-
$this.
|
|
3354
|
-
$this.
|
|
3355
|
-
$this.
|
|
3353
|
+
$this.j82_1 = name;
|
|
3354
|
+
$this.k82_1 = description;
|
|
3355
|
+
$this.l82_1 = inputSchema;
|
|
3356
3356
|
return $this;
|
|
3357
3357
|
}
|
|
3358
3358
|
function AnthropicTool_init_$Create$(seen0, name, description, inputSchema, serializationConstructorMarker) {
|
|
3359
3359
|
return AnthropicTool_init_$Init$(seen0, name, description, inputSchema, serializationConstructorMarker, objectCreate(protoOf(AnthropicTool)));
|
|
3360
3360
|
}
|
|
3361
3361
|
function AnthropicTool(name, description, inputSchema) {
|
|
3362
|
-
this.
|
|
3363
|
-
this.
|
|
3364
|
-
this.
|
|
3362
|
+
this.j82_1 = name;
|
|
3363
|
+
this.k82_1 = description;
|
|
3364
|
+
this.l82_1 = inputSchema;
|
|
3365
3365
|
}
|
|
3366
3366
|
protoOf(AnthropicTool).toString = function () {
|
|
3367
|
-
return 'AnthropicTool(name=' + this.
|
|
3367
|
+
return 'AnthropicTool(name=' + this.j82_1 + ', description=' + this.k82_1 + ', inputSchema=' + this.l82_1.toString() + ')';
|
|
3368
3368
|
};
|
|
3369
3369
|
protoOf(AnthropicTool).hashCode = function () {
|
|
3370
|
-
var result = getStringHashCode(this.
|
|
3371
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3372
|
-
result = imul(result, 31) + this.
|
|
3370
|
+
var result = getStringHashCode(this.j82_1);
|
|
3371
|
+
result = imul(result, 31) + getStringHashCode(this.k82_1) | 0;
|
|
3372
|
+
result = imul(result, 31) + this.l82_1.hashCode() | 0;
|
|
3373
3373
|
return result;
|
|
3374
3374
|
};
|
|
3375
3375
|
protoOf(AnthropicTool).equals = function (other) {
|
|
@@ -3378,11 +3378,11 @@
|
|
|
3378
3378
|
if (!(other instanceof AnthropicTool))
|
|
3379
3379
|
return false;
|
|
3380
3380
|
var tmp0_other_with_cast = other instanceof AnthropicTool ? other : THROW_CCE();
|
|
3381
|
-
if (!(this.
|
|
3381
|
+
if (!(this.j82_1 === tmp0_other_with_cast.j82_1))
|
|
3382
3382
|
return false;
|
|
3383
|
-
if (!(this.
|
|
3383
|
+
if (!(this.k82_1 === tmp0_other_with_cast.k82_1))
|
|
3384
3384
|
return false;
|
|
3385
|
-
if (!this.
|
|
3385
|
+
if (!this.l82_1.equals(tmp0_other_with_cast.l82_1))
|
|
3386
3386
|
return false;
|
|
3387
3387
|
return true;
|
|
3388
3388
|
};
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
// Inline function 'kotlin.arrayOf' call
|
|
3397
3397
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3398
3398
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3399
|
-
tmp.
|
|
3399
|
+
tmp.m82_1 = [null, lazy(tmp_0, AnthropicToolSchema$Companion$$childSerializers$_anonymous__8x5zsr), null];
|
|
3400
3400
|
}
|
|
3401
3401
|
var Companion_instance_13;
|
|
3402
3402
|
function Companion_getInstance_16() {
|
|
@@ -3410,24 +3410,24 @@
|
|
|
3410
3410
|
tmp0_serialDesc.m16('properties', false);
|
|
3411
3411
|
tmp0_serialDesc.m16('required', false);
|
|
3412
3412
|
tmp0_serialDesc.m16('type', true);
|
|
3413
|
-
this.
|
|
3413
|
+
this.n82_1 = tmp0_serialDesc;
|
|
3414
3414
|
}
|
|
3415
|
-
protoOf($serializer_12).
|
|
3416
|
-
var tmp0_desc = this.
|
|
3415
|
+
protoOf($serializer_12).o82 = function (encoder, value) {
|
|
3416
|
+
var tmp0_desc = this.n82_1;
|
|
3417
3417
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3418
|
-
var tmp2_cached = Companion_getInstance_16().
|
|
3419
|
-
tmp1_output.n10(tmp0_desc, 0, JsonObjectSerializer_getInstance(), value.
|
|
3420
|
-
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
3421
|
-
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.
|
|
3422
|
-
tmp1_output.l10(tmp0_desc, 2, value.
|
|
3418
|
+
var tmp2_cached = Companion_getInstance_16().m82_1;
|
|
3419
|
+
tmp1_output.n10(tmp0_desc, 0, JsonObjectSerializer_getInstance(), value.p82_1);
|
|
3420
|
+
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.q82_1);
|
|
3421
|
+
if (tmp1_output.t10(tmp0_desc, 2) ? true : !(value.r82_1 === 'object')) {
|
|
3422
|
+
tmp1_output.l10(tmp0_desc, 2, value.r82_1);
|
|
3423
3423
|
}
|
|
3424
3424
|
tmp1_output.xy(tmp0_desc);
|
|
3425
3425
|
};
|
|
3426
3426
|
protoOf($serializer_12).gv = function (encoder, value) {
|
|
3427
|
-
return this.
|
|
3427
|
+
return this.o82(encoder, value instanceof AnthropicToolSchema ? value : THROW_CCE());
|
|
3428
3428
|
};
|
|
3429
3429
|
protoOf($serializer_12).hv = function (decoder) {
|
|
3430
|
-
var tmp0_desc = this.
|
|
3430
|
+
var tmp0_desc = this.n82_1;
|
|
3431
3431
|
var tmp1_flag = true;
|
|
3432
3432
|
var tmp2_index = 0;
|
|
3433
3433
|
var tmp3_bitMask0 = 0;
|
|
@@ -3435,7 +3435,7 @@
|
|
|
3435
3435
|
var tmp5_local1 = null;
|
|
3436
3436
|
var tmp6_local2 = null;
|
|
3437
3437
|
var tmp7_input = decoder.wy(tmp0_desc);
|
|
3438
|
-
var tmp8_cached = Companion_getInstance_16().
|
|
3438
|
+
var tmp8_cached = Companion_getInstance_16().m82_1;
|
|
3439
3439
|
if (tmp7_input.mz()) {
|
|
3440
3440
|
tmp4_local0 = tmp7_input.iz(tmp0_desc, 0, JsonObjectSerializer_getInstance(), tmp4_local0);
|
|
3441
3441
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -3470,10 +3470,10 @@
|
|
|
3470
3470
|
return AnthropicToolSchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
3471
3471
|
};
|
|
3472
3472
|
protoOf($serializer_12).fv = function () {
|
|
3473
|
-
return this.
|
|
3473
|
+
return this.n82_1;
|
|
3474
3474
|
};
|
|
3475
3475
|
protoOf($serializer_12).d17 = function () {
|
|
3476
|
-
var tmp0_cached = Companion_getInstance_16().
|
|
3476
|
+
var tmp0_cached = Companion_getInstance_16().m82_1;
|
|
3477
3477
|
// Inline function 'kotlin.arrayOf' call
|
|
3478
3478
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3479
3479
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3487,14 +3487,14 @@
|
|
|
3487
3487
|
}
|
|
3488
3488
|
function AnthropicToolSchema_init_$Init$(seen0, properties, required, type, serializationConstructorMarker, $this) {
|
|
3489
3489
|
if (!(3 === (3 & seen0))) {
|
|
3490
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_12().
|
|
3490
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_12().n82_1);
|
|
3491
3491
|
}
|
|
3492
|
-
$this.
|
|
3493
|
-
$this.
|
|
3492
|
+
$this.p82_1 = properties;
|
|
3493
|
+
$this.q82_1 = required;
|
|
3494
3494
|
if (0 === (seen0 & 4))
|
|
3495
|
-
$this.
|
|
3495
|
+
$this.r82_1 = 'object';
|
|
3496
3496
|
else
|
|
3497
|
-
$this.
|
|
3497
|
+
$this.r82_1 = type;
|
|
3498
3498
|
return $this;
|
|
3499
3499
|
}
|
|
3500
3500
|
function AnthropicToolSchema_init_$Create$(seen0, properties, required, type, serializationConstructorMarker) {
|
|
@@ -3502,16 +3502,16 @@
|
|
|
3502
3502
|
}
|
|
3503
3503
|
function AnthropicToolSchema(properties, required) {
|
|
3504
3504
|
Companion_getInstance_16();
|
|
3505
|
-
this.
|
|
3506
|
-
this.
|
|
3507
|
-
this.
|
|
3505
|
+
this.p82_1 = properties;
|
|
3506
|
+
this.q82_1 = required;
|
|
3507
|
+
this.r82_1 = 'object';
|
|
3508
3508
|
}
|
|
3509
3509
|
protoOf(AnthropicToolSchema).toString = function () {
|
|
3510
|
-
return 'AnthropicToolSchema(properties=' + this.
|
|
3510
|
+
return 'AnthropicToolSchema(properties=' + this.p82_1.toString() + ', required=' + toString(this.q82_1) + ')';
|
|
3511
3511
|
};
|
|
3512
3512
|
protoOf(AnthropicToolSchema).hashCode = function () {
|
|
3513
|
-
var result = this.
|
|
3514
|
-
result = imul(result, 31) + hashCode(this.
|
|
3513
|
+
var result = this.p82_1.hashCode();
|
|
3514
|
+
result = imul(result, 31) + hashCode(this.q82_1) | 0;
|
|
3515
3515
|
return result;
|
|
3516
3516
|
};
|
|
3517
3517
|
protoOf(AnthropicToolSchema).equals = function (other) {
|
|
@@ -3520,14 +3520,14 @@
|
|
|
3520
3520
|
if (!(other instanceof AnthropicToolSchema))
|
|
3521
3521
|
return false;
|
|
3522
3522
|
var tmp0_other_with_cast = other instanceof AnthropicToolSchema ? other : THROW_CCE();
|
|
3523
|
-
if (!this.
|
|
3523
|
+
if (!this.p82_1.equals(tmp0_other_with_cast.p82_1))
|
|
3524
3524
|
return false;
|
|
3525
|
-
if (!equals(this.
|
|
3525
|
+
if (!equals(this.q82_1, tmp0_other_with_cast.q82_1))
|
|
3526
3526
|
return false;
|
|
3527
3527
|
return true;
|
|
3528
3528
|
};
|
|
3529
3529
|
function _get_$cachedSerializer__te6jhj_0($this) {
|
|
3530
|
-
return $this.
|
|
3530
|
+
return $this.s82_1.b1();
|
|
3531
3531
|
}
|
|
3532
3532
|
function AnthropicToolChoice$Auto$_anonymous__gavmw9() {
|
|
3533
3533
|
var tmp = Auto_getInstance_0();
|
|
@@ -3538,7 +3538,7 @@
|
|
|
3538
3538
|
return ObjectSerializer_init_$Create$('auto', tmp, tmp$ret$2);
|
|
3539
3539
|
}
|
|
3540
3540
|
function _get_$cachedSerializer__te6jhj_1($this) {
|
|
3541
|
-
return $this.
|
|
3541
|
+
return $this.t82_1.b1();
|
|
3542
3542
|
}
|
|
3543
3543
|
function AnthropicToolChoice$Any$_anonymous__2lwq2y() {
|
|
3544
3544
|
var tmp = Any_getInstance();
|
|
@@ -3549,7 +3549,7 @@
|
|
|
3549
3549
|
return ObjectSerializer_init_$Create$('any', tmp, tmp$ret$2);
|
|
3550
3550
|
}
|
|
3551
3551
|
function _get_$cachedSerializer__te6jhj_2($this) {
|
|
3552
|
-
return $this.
|
|
3552
|
+
return $this.u82_1.b1();
|
|
3553
3553
|
}
|
|
3554
3554
|
function AnthropicToolChoice$None$_anonymous__ywmz6o() {
|
|
3555
3555
|
var tmp = None_getInstance_0();
|
|
@@ -3569,19 +3569,19 @@
|
|
|
3569
3569
|
$serializer_instance_13 = this;
|
|
3570
3570
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('tool', this, 1);
|
|
3571
3571
|
tmp0_serialDesc.m16('name', false);
|
|
3572
|
-
this.
|
|
3572
|
+
this.v82_1 = tmp0_serialDesc;
|
|
3573
3573
|
}
|
|
3574
|
-
protoOf($serializer_13).
|
|
3575
|
-
var tmp0_desc = this.
|
|
3574
|
+
protoOf($serializer_13).w82 = function (encoder, value) {
|
|
3575
|
+
var tmp0_desc = this.v82_1;
|
|
3576
3576
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3577
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3577
|
+
tmp1_output.l10(tmp0_desc, 0, value.x82_1);
|
|
3578
3578
|
tmp1_output.xy(tmp0_desc);
|
|
3579
3579
|
};
|
|
3580
3580
|
protoOf($serializer_13).gv = function (encoder, value) {
|
|
3581
|
-
return this.
|
|
3581
|
+
return this.w82(encoder, value instanceof Tool ? value : THROW_CCE());
|
|
3582
3582
|
};
|
|
3583
3583
|
protoOf($serializer_13).hv = function (decoder) {
|
|
3584
|
-
var tmp0_desc = this.
|
|
3584
|
+
var tmp0_desc = this.v82_1;
|
|
3585
3585
|
var tmp1_flag = true;
|
|
3586
3586
|
var tmp2_index = 0;
|
|
3587
3587
|
var tmp3_bitMask0 = 0;
|
|
@@ -3609,7 +3609,7 @@
|
|
|
3609
3609
|
return Tool_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
3610
3610
|
};
|
|
3611
3611
|
protoOf($serializer_13).fv = function () {
|
|
3612
|
-
return this.
|
|
3612
|
+
return this.v82_1;
|
|
3613
3613
|
};
|
|
3614
3614
|
protoOf($serializer_13).d17 = function () {
|
|
3615
3615
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -3625,9 +3625,9 @@
|
|
|
3625
3625
|
}
|
|
3626
3626
|
function Tool_init_$Init$(seen0, name, serializationConstructorMarker, $this) {
|
|
3627
3627
|
if (!(1 === (1 & seen0))) {
|
|
3628
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_13().
|
|
3628
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_13().v82_1);
|
|
3629
3629
|
}
|
|
3630
|
-
$this.
|
|
3630
|
+
$this.x82_1 = name;
|
|
3631
3631
|
return $this;
|
|
3632
3632
|
}
|
|
3633
3633
|
function Tool_init_$Create$(seen0, name, serializationConstructorMarker) {
|
|
@@ -3637,7 +3637,7 @@
|
|
|
3637
3637
|
Auto_instance = this;
|
|
3638
3638
|
var tmp = this;
|
|
3639
3639
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3640
|
-
tmp.
|
|
3640
|
+
tmp.s82_1 = lazy(tmp_0, AnthropicToolChoice$Auto$_anonymous__gavmw9);
|
|
3641
3641
|
}
|
|
3642
3642
|
protoOf(Auto).q1j = function () {
|
|
3643
3643
|
return _get_$cachedSerializer__te6jhj_0(this);
|
|
@@ -3669,7 +3669,7 @@
|
|
|
3669
3669
|
Any_instance = this;
|
|
3670
3670
|
var tmp = this;
|
|
3671
3671
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3672
|
-
tmp.
|
|
3672
|
+
tmp.t82_1 = lazy(tmp_0, AnthropicToolChoice$Any$_anonymous__2lwq2y);
|
|
3673
3673
|
}
|
|
3674
3674
|
protoOf(Any).q1j = function () {
|
|
3675
3675
|
return _get_$cachedSerializer__te6jhj_1(this);
|
|
@@ -3701,7 +3701,7 @@
|
|
|
3701
3701
|
None_instance = this;
|
|
3702
3702
|
var tmp = this;
|
|
3703
3703
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3704
|
-
tmp.
|
|
3704
|
+
tmp.u82_1 = lazy(tmp_0, AnthropicToolChoice$None$_anonymous__ywmz6o);
|
|
3705
3705
|
}
|
|
3706
3706
|
protoOf(None).q1j = function () {
|
|
3707
3707
|
return _get_$cachedSerializer__te6jhj_2(this);
|
|
@@ -3730,13 +3730,13 @@
|
|
|
3730
3730
|
return None_instance;
|
|
3731
3731
|
}
|
|
3732
3732
|
function Tool(name) {
|
|
3733
|
-
this.
|
|
3733
|
+
this.x82_1 = name;
|
|
3734
3734
|
}
|
|
3735
3735
|
protoOf(Tool).toString = function () {
|
|
3736
|
-
return 'Tool(name=' + this.
|
|
3736
|
+
return 'Tool(name=' + this.x82_1 + ')';
|
|
3737
3737
|
};
|
|
3738
3738
|
protoOf(Tool).hashCode = function () {
|
|
3739
|
-
return getStringHashCode(this.
|
|
3739
|
+
return getStringHashCode(this.x82_1);
|
|
3740
3740
|
};
|
|
3741
3741
|
protoOf(Tool).equals = function (other) {
|
|
3742
3742
|
if (this === other)
|
|
@@ -3744,7 +3744,7 @@
|
|
|
3744
3744
|
if (!(other instanceof Tool))
|
|
3745
3745
|
return false;
|
|
3746
3746
|
var tmp0_other_with_cast = other instanceof Tool ? other : THROW_CCE();
|
|
3747
|
-
if (!(this.
|
|
3747
|
+
if (!(this.x82_1 === tmp0_other_with_cast.x82_1))
|
|
3748
3748
|
return false;
|
|
3749
3749
|
return true;
|
|
3750
3750
|
};
|
|
@@ -3822,8 +3822,8 @@
|
|
|
3822
3822
|
// Inline function 'kotlin.arrayOf' call
|
|
3823
3823
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3824
3824
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3825
|
-
tmp.
|
|
3826
|
-
this.
|
|
3825
|
+
tmp.y82_1 = [null, tmp_1, null, null, tmp_3, tmp_5, null, tmp_7, lazy(tmp_8, AnthropicMessageRequest$Companion$$childSerializers$_anonymous__5fykpi_3)];
|
|
3826
|
+
this.z82_1 = 2048;
|
|
3827
3827
|
}
|
|
3828
3828
|
protoOf(Companion_16).q1j = function () {
|
|
3829
3829
|
return $serializer_getInstance_14();
|
|
@@ -3846,38 +3846,38 @@
|
|
|
3846
3846
|
tmp0_serialDesc.m16('stream', true);
|
|
3847
3847
|
tmp0_serialDesc.m16('tool_choice', true);
|
|
3848
3848
|
tmp0_serialDesc.m16('additionalProperties', true);
|
|
3849
|
-
this.
|
|
3849
|
+
this.a83_1 = tmp0_serialDesc;
|
|
3850
3850
|
}
|
|
3851
|
-
protoOf($serializer_14).
|
|
3852
|
-
var tmp0_desc = this.
|
|
3851
|
+
protoOf($serializer_14).b83 = function (encoder, value) {
|
|
3852
|
+
var tmp0_desc = this.a83_1;
|
|
3853
3853
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
3854
|
-
var tmp2_cached = Companion_getInstance_19().
|
|
3855
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
3856
|
-
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.
|
|
3857
|
-
tmp1_output.g10(tmp0_desc, 2, value.
|
|
3858
|
-
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.
|
|
3859
|
-
tmp1_output.p10(tmp0_desc, 3, DoubleSerializer_getInstance(), value.
|
|
3854
|
+
var tmp2_cached = Companion_getInstance_19().y82_1;
|
|
3855
|
+
tmp1_output.l10(tmp0_desc, 0, value.c83_1);
|
|
3856
|
+
tmp1_output.n10(tmp0_desc, 1, tmp2_cached[1].b1(), value.d83_1);
|
|
3857
|
+
tmp1_output.g10(tmp0_desc, 2, value.e83_1);
|
|
3858
|
+
if (tmp1_output.t10(tmp0_desc, 3) ? true : !(value.f83_1 == null)) {
|
|
3859
|
+
tmp1_output.p10(tmp0_desc, 3, DoubleSerializer_getInstance(), value.f83_1);
|
|
3860
3860
|
}
|
|
3861
|
-
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.
|
|
3862
|
-
tmp1_output.p10(tmp0_desc, 4, tmp2_cached[4].b1(), value.
|
|
3861
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.g83_1 == null)) {
|
|
3862
|
+
tmp1_output.p10(tmp0_desc, 4, tmp2_cached[4].b1(), value.g83_1);
|
|
3863
3863
|
}
|
|
3864
|
-
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.
|
|
3865
|
-
tmp1_output.p10(tmp0_desc, 5, tmp2_cached[5].b1(), value.
|
|
3864
|
+
if (tmp1_output.t10(tmp0_desc, 5) ? true : !(value.h83_1 == null)) {
|
|
3865
|
+
tmp1_output.p10(tmp0_desc, 5, tmp2_cached[5].b1(), value.h83_1);
|
|
3866
3866
|
}
|
|
3867
|
-
tmp1_output.d10(tmp0_desc, 6, value.
|
|
3868
|
-
if (tmp1_output.t10(tmp0_desc, 7) ? true : !(value.
|
|
3869
|
-
tmp1_output.p10(tmp0_desc, 7, tmp2_cached[7].b1(), value.
|
|
3867
|
+
tmp1_output.d10(tmp0_desc, 6, value.i83_1);
|
|
3868
|
+
if (tmp1_output.t10(tmp0_desc, 7) ? true : !(value.j83_1 == null)) {
|
|
3869
|
+
tmp1_output.p10(tmp0_desc, 7, tmp2_cached[7].b1(), value.j83_1);
|
|
3870
3870
|
}
|
|
3871
|
-
if (tmp1_output.t10(tmp0_desc, 8) ? true : !(value.
|
|
3872
|
-
tmp1_output.p10(tmp0_desc, 8, tmp2_cached[8].b1(), value.
|
|
3871
|
+
if (tmp1_output.t10(tmp0_desc, 8) ? true : !(value.k83_1 == null)) {
|
|
3872
|
+
tmp1_output.p10(tmp0_desc, 8, tmp2_cached[8].b1(), value.k83_1);
|
|
3873
3873
|
}
|
|
3874
3874
|
tmp1_output.xy(tmp0_desc);
|
|
3875
3875
|
};
|
|
3876
3876
|
protoOf($serializer_14).gv = function (encoder, value) {
|
|
3877
|
-
return this.
|
|
3877
|
+
return this.b83(encoder, value instanceof AnthropicMessageRequest ? value : THROW_CCE());
|
|
3878
3878
|
};
|
|
3879
3879
|
protoOf($serializer_14).hv = function (decoder) {
|
|
3880
|
-
var tmp0_desc = this.
|
|
3880
|
+
var tmp0_desc = this.a83_1;
|
|
3881
3881
|
var tmp1_flag = true;
|
|
3882
3882
|
var tmp2_index = 0;
|
|
3883
3883
|
var tmp3_bitMask0 = 0;
|
|
@@ -3891,7 +3891,7 @@
|
|
|
3891
3891
|
var tmp11_local7 = null;
|
|
3892
3892
|
var tmp12_local8 = null;
|
|
3893
3893
|
var tmp13_input = decoder.wy(tmp0_desc);
|
|
3894
|
-
var tmp14_cached = Companion_getInstance_19().
|
|
3894
|
+
var tmp14_cached = Companion_getInstance_19().y82_1;
|
|
3895
3895
|
if (tmp13_input.mz()) {
|
|
3896
3896
|
tmp4_local0 = tmp13_input.gz(tmp0_desc, 0);
|
|
3897
3897
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -3962,10 +3962,10 @@
|
|
|
3962
3962
|
return AnthropicMessageRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null);
|
|
3963
3963
|
};
|
|
3964
3964
|
protoOf($serializer_14).fv = function () {
|
|
3965
|
-
return this.
|
|
3965
|
+
return this.a83_1;
|
|
3966
3966
|
};
|
|
3967
3967
|
protoOf($serializer_14).d17 = function () {
|
|
3968
|
-
var tmp0_cached = Companion_getInstance_19().
|
|
3968
|
+
var tmp0_cached = Companion_getInstance_19().y82_1;
|
|
3969
3969
|
// Inline function 'kotlin.arrayOf' call
|
|
3970
3970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3971
3971
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3979,47 +3979,47 @@
|
|
|
3979
3979
|
}
|
|
3980
3980
|
function AnthropicMessageRequest_init_$Init$(seen0, model, messages, maxTokens, temperature, system, tools, stream, toolChoice, additionalProperties, serializationConstructorMarker, $this) {
|
|
3981
3981
|
if (!(3 === (3 & seen0))) {
|
|
3982
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_14().
|
|
3982
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_14().a83_1);
|
|
3983
3983
|
}
|
|
3984
|
-
$this.
|
|
3985
|
-
$this.
|
|
3984
|
+
$this.c83_1 = model;
|
|
3985
|
+
$this.d83_1 = messages;
|
|
3986
3986
|
if (0 === (seen0 & 4))
|
|
3987
|
-
$this.
|
|
3987
|
+
$this.e83_1 = 2048;
|
|
3988
3988
|
else
|
|
3989
|
-
$this.
|
|
3989
|
+
$this.e83_1 = maxTokens;
|
|
3990
3990
|
if (0 === (seen0 & 8))
|
|
3991
|
-
$this.
|
|
3991
|
+
$this.f83_1 = null;
|
|
3992
3992
|
else
|
|
3993
|
-
$this.
|
|
3993
|
+
$this.f83_1 = temperature;
|
|
3994
3994
|
if (0 === (seen0 & 16))
|
|
3995
|
-
$this.
|
|
3995
|
+
$this.g83_1 = null;
|
|
3996
3996
|
else
|
|
3997
|
-
$this.
|
|
3997
|
+
$this.g83_1 = system;
|
|
3998
3998
|
if (0 === (seen0 & 32))
|
|
3999
|
-
$this.
|
|
3999
|
+
$this.h83_1 = null;
|
|
4000
4000
|
else
|
|
4001
|
-
$this.
|
|
4001
|
+
$this.h83_1 = tools;
|
|
4002
4002
|
if (0 === (seen0 & 64))
|
|
4003
|
-
$this.
|
|
4003
|
+
$this.i83_1 = false;
|
|
4004
4004
|
else
|
|
4005
|
-
$this.
|
|
4005
|
+
$this.i83_1 = stream;
|
|
4006
4006
|
if (0 === (seen0 & 128))
|
|
4007
|
-
$this.
|
|
4007
|
+
$this.j83_1 = null;
|
|
4008
4008
|
else
|
|
4009
|
-
$this.
|
|
4009
|
+
$this.j83_1 = toolChoice;
|
|
4010
4010
|
if (0 === (seen0 & 256))
|
|
4011
|
-
$this.
|
|
4011
|
+
$this.k83_1 = null;
|
|
4012
4012
|
else
|
|
4013
|
-
$this.
|
|
4013
|
+
$this.k83_1 = additionalProperties;
|
|
4014
4014
|
// Inline function 'kotlin.require' call
|
|
4015
|
-
if (!($this.
|
|
4016
|
-
var message = 'maxTokens must be greater than 0, but was ' + $this.
|
|
4015
|
+
if (!($this.e83_1 > 0)) {
|
|
4016
|
+
var message = 'maxTokens must be greater than 0, but was ' + $this.e83_1;
|
|
4017
4017
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4018
4018
|
}
|
|
4019
|
-
if (!($this.
|
|
4019
|
+
if (!($this.f83_1 == null)) {
|
|
4020
4020
|
// Inline function 'kotlin.require' call
|
|
4021
|
-
if (!($this.
|
|
4022
|
-
var message_0 = 'temperature must be greater than 0, but was ' + $this.
|
|
4021
|
+
if (!($this.f83_1 >= 0)) {
|
|
4022
|
+
var message_0 = 'temperature must be greater than 0, but was ' + $this.f83_1;
|
|
4023
4023
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
4024
4024
|
}
|
|
4025
4025
|
}
|
|
@@ -4037,41 +4037,41 @@
|
|
|
4037
4037
|
stream = stream === VOID ? false : stream;
|
|
4038
4038
|
toolChoice = toolChoice === VOID ? null : toolChoice;
|
|
4039
4039
|
additionalProperties = additionalProperties === VOID ? null : additionalProperties;
|
|
4040
|
-
this.
|
|
4041
|
-
this.
|
|
4042
|
-
this.
|
|
4043
|
-
this.
|
|
4044
|
-
this.
|
|
4045
|
-
this.
|
|
4046
|
-
this.
|
|
4047
|
-
this.
|
|
4048
|
-
this.
|
|
4040
|
+
this.c83_1 = model;
|
|
4041
|
+
this.d83_1 = messages;
|
|
4042
|
+
this.e83_1 = maxTokens;
|
|
4043
|
+
this.f83_1 = temperature;
|
|
4044
|
+
this.g83_1 = system;
|
|
4045
|
+
this.h83_1 = tools;
|
|
4046
|
+
this.i83_1 = stream;
|
|
4047
|
+
this.j83_1 = toolChoice;
|
|
4048
|
+
this.k83_1 = additionalProperties;
|
|
4049
4049
|
// Inline function 'kotlin.require' call
|
|
4050
|
-
if (!(this.
|
|
4051
|
-
var message = 'maxTokens must be greater than 0, but was ' + this.
|
|
4050
|
+
if (!(this.e83_1 > 0)) {
|
|
4051
|
+
var message = 'maxTokens must be greater than 0, but was ' + this.e83_1;
|
|
4052
4052
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
4053
4053
|
}
|
|
4054
|
-
if (!(this.
|
|
4054
|
+
if (!(this.f83_1 == null)) {
|
|
4055
4055
|
// Inline function 'kotlin.require' call
|
|
4056
|
-
if (!(this.
|
|
4057
|
-
var message_0 = 'temperature must be greater than 0, but was ' + this.
|
|
4056
|
+
if (!(this.f83_1 >= 0)) {
|
|
4057
|
+
var message_0 = 'temperature must be greater than 0, but was ' + this.f83_1;
|
|
4058
4058
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
4061
|
}
|
|
4062
4062
|
protoOf(AnthropicMessageRequest).toString = function () {
|
|
4063
|
-
return 'AnthropicMessageRequest(model=' + this.
|
|
4063
|
+
return 'AnthropicMessageRequest(model=' + this.c83_1 + ', messages=' + toString(this.d83_1) + ', maxTokens=' + this.e83_1 + ', temperature=' + this.f83_1 + ', system=' + toString_0(this.g83_1) + ', tools=' + toString_0(this.h83_1) + ', stream=' + this.i83_1 + ', toolChoice=' + toString_0(this.j83_1) + ', additionalProperties=' + toString_0(this.k83_1) + ')';
|
|
4064
4064
|
};
|
|
4065
4065
|
protoOf(AnthropicMessageRequest).hashCode = function () {
|
|
4066
|
-
var result = getStringHashCode(this.
|
|
4067
|
-
result = imul(result, 31) + hashCode(this.
|
|
4068
|
-
result = imul(result, 31) + this.
|
|
4069
|
-
result = imul(result, 31) + (this.
|
|
4070
|
-
result = imul(result, 31) + (this.
|
|
4071
|
-
result = imul(result, 31) + (this.
|
|
4072
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
4073
|
-
result = imul(result, 31) + (this.
|
|
4074
|
-
result = imul(result, 31) + (this.
|
|
4066
|
+
var result = getStringHashCode(this.c83_1);
|
|
4067
|
+
result = imul(result, 31) + hashCode(this.d83_1) | 0;
|
|
4068
|
+
result = imul(result, 31) + this.e83_1 | 0;
|
|
4069
|
+
result = imul(result, 31) + (this.f83_1 == null ? 0 : getNumberHashCode(this.f83_1)) | 0;
|
|
4070
|
+
result = imul(result, 31) + (this.g83_1 == null ? 0 : hashCode(this.g83_1)) | 0;
|
|
4071
|
+
result = imul(result, 31) + (this.h83_1 == null ? 0 : hashCode(this.h83_1)) | 0;
|
|
4072
|
+
result = imul(result, 31) + getBooleanHashCode(this.i83_1) | 0;
|
|
4073
|
+
result = imul(result, 31) + (this.j83_1 == null ? 0 : hashCode(this.j83_1)) | 0;
|
|
4074
|
+
result = imul(result, 31) + (this.k83_1 == null ? 0 : hashCode(this.k83_1)) | 0;
|
|
4075
4075
|
return result;
|
|
4076
4076
|
};
|
|
4077
4077
|
protoOf(AnthropicMessageRequest).equals = function (other) {
|
|
@@ -4080,23 +4080,23 @@
|
|
|
4080
4080
|
if (!(other instanceof AnthropicMessageRequest))
|
|
4081
4081
|
return false;
|
|
4082
4082
|
var tmp0_other_with_cast = other instanceof AnthropicMessageRequest ? other : THROW_CCE();
|
|
4083
|
-
if (!(this.
|
|
4083
|
+
if (!(this.c83_1 === tmp0_other_with_cast.c83_1))
|
|
4084
4084
|
return false;
|
|
4085
|
-
if (!equals(this.
|
|
4085
|
+
if (!equals(this.d83_1, tmp0_other_with_cast.d83_1))
|
|
4086
4086
|
return false;
|
|
4087
|
-
if (!(this.
|
|
4087
|
+
if (!(this.e83_1 === tmp0_other_with_cast.e83_1))
|
|
4088
4088
|
return false;
|
|
4089
|
-
if (!equals(this.
|
|
4089
|
+
if (!equals(this.f83_1, tmp0_other_with_cast.f83_1))
|
|
4090
4090
|
return false;
|
|
4091
|
-
if (!equals(this.
|
|
4091
|
+
if (!equals(this.g83_1, tmp0_other_with_cast.g83_1))
|
|
4092
4092
|
return false;
|
|
4093
|
-
if (!equals(this.
|
|
4093
|
+
if (!equals(this.h83_1, tmp0_other_with_cast.h83_1))
|
|
4094
4094
|
return false;
|
|
4095
|
-
if (!(this.
|
|
4095
|
+
if (!(this.i83_1 === tmp0_other_with_cast.i83_1))
|
|
4096
4096
|
return false;
|
|
4097
|
-
if (!equals(this.
|
|
4097
|
+
if (!equals(this.j83_1, tmp0_other_with_cast.j83_1))
|
|
4098
4098
|
return false;
|
|
4099
|
-
if (!equals(this.
|
|
4099
|
+
if (!equals(this.k83_1, tmp0_other_with_cast.k83_1))
|
|
4100
4100
|
return false;
|
|
4101
4101
|
return true;
|
|
4102
4102
|
};
|
|
@@ -4120,19 +4120,19 @@
|
|
|
4120
4120
|
$serializer_instance_15 = this;
|
|
4121
4121
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('url', this, 1);
|
|
4122
4122
|
tmp0_serialDesc.m16('url', false);
|
|
4123
|
-
this.
|
|
4123
|
+
this.l83_1 = tmp0_serialDesc;
|
|
4124
4124
|
}
|
|
4125
|
-
protoOf($serializer_15).
|
|
4126
|
-
var tmp0_desc = this.
|
|
4125
|
+
protoOf($serializer_15).m83 = function (encoder, value) {
|
|
4126
|
+
var tmp0_desc = this.l83_1;
|
|
4127
4127
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4128
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4128
|
+
tmp1_output.l10(tmp0_desc, 0, value.n83_1);
|
|
4129
4129
|
tmp1_output.xy(tmp0_desc);
|
|
4130
4130
|
};
|
|
4131
4131
|
protoOf($serializer_15).gv = function (encoder, value) {
|
|
4132
|
-
return this.
|
|
4132
|
+
return this.m83(encoder, value instanceof Url ? value : THROW_CCE());
|
|
4133
4133
|
};
|
|
4134
4134
|
protoOf($serializer_15).hv = function (decoder) {
|
|
4135
|
-
var tmp0_desc = this.
|
|
4135
|
+
var tmp0_desc = this.l83_1;
|
|
4136
4136
|
var tmp1_flag = true;
|
|
4137
4137
|
var tmp2_index = 0;
|
|
4138
4138
|
var tmp3_bitMask0 = 0;
|
|
@@ -4160,7 +4160,7 @@
|
|
|
4160
4160
|
return Url_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
4161
4161
|
};
|
|
4162
4162
|
protoOf($serializer_15).fv = function () {
|
|
4163
|
-
return this.
|
|
4163
|
+
return this.l83_1;
|
|
4164
4164
|
};
|
|
4165
4165
|
protoOf($serializer_15).d17 = function () {
|
|
4166
4166
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4176,9 +4176,9 @@
|
|
|
4176
4176
|
}
|
|
4177
4177
|
function Url_init_$Init$(seen0, url, serializationConstructorMarker, $this) {
|
|
4178
4178
|
if (!(1 === (1 & seen0))) {
|
|
4179
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_15().
|
|
4179
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_15().l83_1);
|
|
4180
4180
|
}
|
|
4181
|
-
$this.
|
|
4181
|
+
$this.n83_1 = url;
|
|
4182
4182
|
return $this;
|
|
4183
4183
|
}
|
|
4184
4184
|
function Url_init_$Create$(seen0, url, serializationConstructorMarker) {
|
|
@@ -4195,20 +4195,20 @@
|
|
|
4195
4195
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('base64', this, 2);
|
|
4196
4196
|
tmp0_serialDesc.m16('data', false);
|
|
4197
4197
|
tmp0_serialDesc.m16('mediaType', false);
|
|
4198
|
-
this.
|
|
4198
|
+
this.o83_1 = tmp0_serialDesc;
|
|
4199
4199
|
}
|
|
4200
|
-
protoOf($serializer_16).
|
|
4201
|
-
var tmp0_desc = this.
|
|
4200
|
+
protoOf($serializer_16).p83 = function (encoder, value) {
|
|
4201
|
+
var tmp0_desc = this.o83_1;
|
|
4202
4202
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4203
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4204
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
4203
|
+
tmp1_output.l10(tmp0_desc, 0, value.q83_1);
|
|
4204
|
+
tmp1_output.l10(tmp0_desc, 1, value.r83_1);
|
|
4205
4205
|
tmp1_output.xy(tmp0_desc);
|
|
4206
4206
|
};
|
|
4207
4207
|
protoOf($serializer_16).gv = function (encoder, value) {
|
|
4208
|
-
return this.
|
|
4208
|
+
return this.p83(encoder, value instanceof Base64 ? value : THROW_CCE());
|
|
4209
4209
|
};
|
|
4210
4210
|
protoOf($serializer_16).hv = function (decoder) {
|
|
4211
|
-
var tmp0_desc = this.
|
|
4211
|
+
var tmp0_desc = this.o83_1;
|
|
4212
4212
|
var tmp1_flag = true;
|
|
4213
4213
|
var tmp2_index = 0;
|
|
4214
4214
|
var tmp3_bitMask0 = 0;
|
|
@@ -4243,7 +4243,7 @@
|
|
|
4243
4243
|
return Base64_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
4244
4244
|
};
|
|
4245
4245
|
protoOf($serializer_16).fv = function () {
|
|
4246
|
-
return this.
|
|
4246
|
+
return this.o83_1;
|
|
4247
4247
|
};
|
|
4248
4248
|
protoOf($serializer_16).d17 = function () {
|
|
4249
4249
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4259,23 +4259,23 @@
|
|
|
4259
4259
|
}
|
|
4260
4260
|
function Base64_init_$Init$(seen0, data, mediaType, serializationConstructorMarker, $this) {
|
|
4261
4261
|
if (!(3 === (3 & seen0))) {
|
|
4262
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_16().
|
|
4262
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_16().o83_1);
|
|
4263
4263
|
}
|
|
4264
|
-
$this.
|
|
4265
|
-
$this.
|
|
4264
|
+
$this.q83_1 = data;
|
|
4265
|
+
$this.r83_1 = mediaType;
|
|
4266
4266
|
return $this;
|
|
4267
4267
|
}
|
|
4268
4268
|
function Base64_init_$Create$(seen0, data, mediaType, serializationConstructorMarker) {
|
|
4269
4269
|
return Base64_init_$Init$(seen0, data, mediaType, serializationConstructorMarker, objectCreate(protoOf(Base64)));
|
|
4270
4270
|
}
|
|
4271
4271
|
function Url(url) {
|
|
4272
|
-
this.
|
|
4272
|
+
this.n83_1 = url;
|
|
4273
4273
|
}
|
|
4274
4274
|
protoOf(Url).toString = function () {
|
|
4275
|
-
return 'Url(url=' + this.
|
|
4275
|
+
return 'Url(url=' + this.n83_1 + ')';
|
|
4276
4276
|
};
|
|
4277
4277
|
protoOf(Url).hashCode = function () {
|
|
4278
|
-
return getStringHashCode(this.
|
|
4278
|
+
return getStringHashCode(this.n83_1);
|
|
4279
4279
|
};
|
|
4280
4280
|
protoOf(Url).equals = function (other) {
|
|
4281
4281
|
if (this === other)
|
|
@@ -4283,20 +4283,20 @@
|
|
|
4283
4283
|
if (!(other instanceof Url))
|
|
4284
4284
|
return false;
|
|
4285
4285
|
var tmp0_other_with_cast = other instanceof Url ? other : THROW_CCE();
|
|
4286
|
-
if (!(this.
|
|
4286
|
+
if (!(this.n83_1 === tmp0_other_with_cast.n83_1))
|
|
4287
4287
|
return false;
|
|
4288
4288
|
return true;
|
|
4289
4289
|
};
|
|
4290
4290
|
function Base64(data, mediaType) {
|
|
4291
|
-
this.
|
|
4292
|
-
this.
|
|
4291
|
+
this.q83_1 = data;
|
|
4292
|
+
this.r83_1 = mediaType;
|
|
4293
4293
|
}
|
|
4294
4294
|
protoOf(Base64).toString = function () {
|
|
4295
|
-
return 'Base64(data=' + this.
|
|
4295
|
+
return 'Base64(data=' + this.q83_1 + ', mediaType=' + this.r83_1 + ')';
|
|
4296
4296
|
};
|
|
4297
4297
|
protoOf(Base64).hashCode = function () {
|
|
4298
|
-
var result = getStringHashCode(this.
|
|
4299
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4298
|
+
var result = getStringHashCode(this.q83_1);
|
|
4299
|
+
result = imul(result, 31) + getStringHashCode(this.r83_1) | 0;
|
|
4300
4300
|
return result;
|
|
4301
4301
|
};
|
|
4302
4302
|
protoOf(Base64).equals = function (other) {
|
|
@@ -4305,9 +4305,9 @@
|
|
|
4305
4305
|
if (!(other instanceof Base64))
|
|
4306
4306
|
return false;
|
|
4307
4307
|
var tmp0_other_with_cast = other instanceof Base64 ? other : THROW_CCE();
|
|
4308
|
-
if (!(this.
|
|
4308
|
+
if (!(this.q83_1 === tmp0_other_with_cast.q83_1))
|
|
4309
4309
|
return false;
|
|
4310
|
-
if (!(this.
|
|
4310
|
+
if (!(this.r83_1 === tmp0_other_with_cast.r83_1))
|
|
4311
4311
|
return false;
|
|
4312
4312
|
return true;
|
|
4313
4313
|
};
|
|
@@ -4348,19 +4348,19 @@
|
|
|
4348
4348
|
$serializer_instance_17 = this;
|
|
4349
4349
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('url', this, 1);
|
|
4350
4350
|
tmp0_serialDesc.m16('url', false);
|
|
4351
|
-
this.
|
|
4351
|
+
this.s83_1 = tmp0_serialDesc;
|
|
4352
4352
|
}
|
|
4353
|
-
protoOf($serializer_17).
|
|
4354
|
-
var tmp0_desc = this.
|
|
4353
|
+
protoOf($serializer_17).t83 = function (encoder, value) {
|
|
4354
|
+
var tmp0_desc = this.s83_1;
|
|
4355
4355
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4356
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4356
|
+
tmp1_output.l10(tmp0_desc, 0, value.u83_1);
|
|
4357
4357
|
tmp1_output.xy(tmp0_desc);
|
|
4358
4358
|
};
|
|
4359
4359
|
protoOf($serializer_17).gv = function (encoder, value) {
|
|
4360
|
-
return this.
|
|
4360
|
+
return this.t83(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
4361
4361
|
};
|
|
4362
4362
|
protoOf($serializer_17).hv = function (decoder) {
|
|
4363
|
-
var tmp0_desc = this.
|
|
4363
|
+
var tmp0_desc = this.s83_1;
|
|
4364
4364
|
var tmp1_flag = true;
|
|
4365
4365
|
var tmp2_index = 0;
|
|
4366
4366
|
var tmp3_bitMask0 = 0;
|
|
@@ -4388,7 +4388,7 @@
|
|
|
4388
4388
|
return Url_init_$Create$_0(tmp3_bitMask0, tmp4_local0, null);
|
|
4389
4389
|
};
|
|
4390
4390
|
protoOf($serializer_17).fv = function () {
|
|
4391
|
-
return this.
|
|
4391
|
+
return this.s83_1;
|
|
4392
4392
|
};
|
|
4393
4393
|
protoOf($serializer_17).d17 = function () {
|
|
4394
4394
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4404,9 +4404,9 @@
|
|
|
4404
4404
|
}
|
|
4405
4405
|
function Url_init_$Init$_0(seen0, url, serializationConstructorMarker, $this) {
|
|
4406
4406
|
if (!(1 === (1 & seen0))) {
|
|
4407
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_17().
|
|
4407
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_17().s83_1);
|
|
4408
4408
|
}
|
|
4409
|
-
$this.
|
|
4409
|
+
$this.u83_1 = url;
|
|
4410
4410
|
return $this;
|
|
4411
4411
|
}
|
|
4412
4412
|
function Url_init_$Create$_0(seen0, url, serializationConstructorMarker) {
|
|
@@ -4423,20 +4423,20 @@
|
|
|
4423
4423
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('base64', this, 2);
|
|
4424
4424
|
tmp0_serialDesc.m16('data', false);
|
|
4425
4425
|
tmp0_serialDesc.m16('mediaType', false);
|
|
4426
|
-
this.
|
|
4426
|
+
this.v83_1 = tmp0_serialDesc;
|
|
4427
4427
|
}
|
|
4428
|
-
protoOf($serializer_18).
|
|
4429
|
-
var tmp0_desc = this.
|
|
4428
|
+
protoOf($serializer_18).w83 = function (encoder, value) {
|
|
4429
|
+
var tmp0_desc = this.v83_1;
|
|
4430
4430
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4431
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4432
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
4431
|
+
tmp1_output.l10(tmp0_desc, 0, value.x83_1);
|
|
4432
|
+
tmp1_output.l10(tmp0_desc, 1, value.y83_1);
|
|
4433
4433
|
tmp1_output.xy(tmp0_desc);
|
|
4434
4434
|
};
|
|
4435
4435
|
protoOf($serializer_18).gv = function (encoder, value) {
|
|
4436
|
-
return this.
|
|
4436
|
+
return this.w83(encoder, value instanceof Base64_0 ? value : THROW_CCE());
|
|
4437
4437
|
};
|
|
4438
4438
|
protoOf($serializer_18).hv = function (decoder) {
|
|
4439
|
-
var tmp0_desc = this.
|
|
4439
|
+
var tmp0_desc = this.v83_1;
|
|
4440
4440
|
var tmp1_flag = true;
|
|
4441
4441
|
var tmp2_index = 0;
|
|
4442
4442
|
var tmp3_bitMask0 = 0;
|
|
@@ -4471,7 +4471,7 @@
|
|
|
4471
4471
|
return Base64_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
4472
4472
|
};
|
|
4473
4473
|
protoOf($serializer_18).fv = function () {
|
|
4474
|
-
return this.
|
|
4474
|
+
return this.v83_1;
|
|
4475
4475
|
};
|
|
4476
4476
|
protoOf($serializer_18).d17 = function () {
|
|
4477
4477
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4487,10 +4487,10 @@
|
|
|
4487
4487
|
}
|
|
4488
4488
|
function Base64_init_$Init$_0(seen0, data, mediaType, serializationConstructorMarker, $this) {
|
|
4489
4489
|
if (!(3 === (3 & seen0))) {
|
|
4490
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_18().
|
|
4490
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_18().v83_1);
|
|
4491
4491
|
}
|
|
4492
|
-
$this.
|
|
4493
|
-
$this.
|
|
4492
|
+
$this.x83_1 = data;
|
|
4493
|
+
$this.y83_1 = mediaType;
|
|
4494
4494
|
return $this;
|
|
4495
4495
|
}
|
|
4496
4496
|
function Base64_init_$Create$_0(seen0, data, mediaType, serializationConstructorMarker) {
|
|
@@ -4507,20 +4507,20 @@
|
|
|
4507
4507
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('text', this, 2);
|
|
4508
4508
|
tmp0_serialDesc.m16('data', false);
|
|
4509
4509
|
tmp0_serialDesc.m16('mediaType', false);
|
|
4510
|
-
this.
|
|
4510
|
+
this.z83_1 = tmp0_serialDesc;
|
|
4511
4511
|
}
|
|
4512
|
-
protoOf($serializer_19).
|
|
4513
|
-
var tmp0_desc = this.
|
|
4512
|
+
protoOf($serializer_19).a84 = function (encoder, value) {
|
|
4513
|
+
var tmp0_desc = this.z83_1;
|
|
4514
4514
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4515
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4516
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
4515
|
+
tmp1_output.l10(tmp0_desc, 0, value.b84_1);
|
|
4516
|
+
tmp1_output.l10(tmp0_desc, 1, value.c84_1);
|
|
4517
4517
|
tmp1_output.xy(tmp0_desc);
|
|
4518
4518
|
};
|
|
4519
4519
|
protoOf($serializer_19).gv = function (encoder, value) {
|
|
4520
|
-
return this.
|
|
4520
|
+
return this.a84(encoder, value instanceof PlainText_0 ? value : THROW_CCE());
|
|
4521
4521
|
};
|
|
4522
4522
|
protoOf($serializer_19).hv = function (decoder) {
|
|
4523
|
-
var tmp0_desc = this.
|
|
4523
|
+
var tmp0_desc = this.z83_1;
|
|
4524
4524
|
var tmp1_flag = true;
|
|
4525
4525
|
var tmp2_index = 0;
|
|
4526
4526
|
var tmp3_bitMask0 = 0;
|
|
@@ -4555,7 +4555,7 @@
|
|
|
4555
4555
|
return PlainText_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
4556
4556
|
};
|
|
4557
4557
|
protoOf($serializer_19).fv = function () {
|
|
4558
|
-
return this.
|
|
4558
|
+
return this.z83_1;
|
|
4559
4559
|
};
|
|
4560
4560
|
protoOf($serializer_19).d17 = function () {
|
|
4561
4561
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4571,23 +4571,23 @@
|
|
|
4571
4571
|
}
|
|
4572
4572
|
function PlainText_init_$Init$(seen0, data, mediaType, serializationConstructorMarker, $this) {
|
|
4573
4573
|
if (!(3 === (3 & seen0))) {
|
|
4574
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_19().
|
|
4574
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_19().z83_1);
|
|
4575
4575
|
}
|
|
4576
|
-
$this.
|
|
4577
|
-
$this.
|
|
4576
|
+
$this.b84_1 = data;
|
|
4577
|
+
$this.c84_1 = mediaType;
|
|
4578
4578
|
return $this;
|
|
4579
4579
|
}
|
|
4580
4580
|
function PlainText_init_$Create$(seen0, data, mediaType, serializationConstructorMarker) {
|
|
4581
4581
|
return PlainText_init_$Init$(seen0, data, mediaType, serializationConstructorMarker, objectCreate(protoOf(PlainText_0)));
|
|
4582
4582
|
}
|
|
4583
4583
|
function Url_0(url) {
|
|
4584
|
-
this.
|
|
4584
|
+
this.u83_1 = url;
|
|
4585
4585
|
}
|
|
4586
4586
|
protoOf(Url_0).toString = function () {
|
|
4587
|
-
return 'Url(url=' + this.
|
|
4587
|
+
return 'Url(url=' + this.u83_1 + ')';
|
|
4588
4588
|
};
|
|
4589
4589
|
protoOf(Url_0).hashCode = function () {
|
|
4590
|
-
return getStringHashCode(this.
|
|
4590
|
+
return getStringHashCode(this.u83_1);
|
|
4591
4591
|
};
|
|
4592
4592
|
protoOf(Url_0).equals = function (other) {
|
|
4593
4593
|
if (this === other)
|
|
@@ -4595,20 +4595,20 @@
|
|
|
4595
4595
|
if (!(other instanceof Url_0))
|
|
4596
4596
|
return false;
|
|
4597
4597
|
var tmp0_other_with_cast = other instanceof Url_0 ? other : THROW_CCE();
|
|
4598
|
-
if (!(this.
|
|
4598
|
+
if (!(this.u83_1 === tmp0_other_with_cast.u83_1))
|
|
4599
4599
|
return false;
|
|
4600
4600
|
return true;
|
|
4601
4601
|
};
|
|
4602
4602
|
function Base64_0(data, mediaType) {
|
|
4603
|
-
this.
|
|
4604
|
-
this.
|
|
4603
|
+
this.x83_1 = data;
|
|
4604
|
+
this.y83_1 = mediaType;
|
|
4605
4605
|
}
|
|
4606
4606
|
protoOf(Base64_0).toString = function () {
|
|
4607
|
-
return 'Base64(data=' + this.
|
|
4607
|
+
return 'Base64(data=' + this.x83_1 + ', mediaType=' + this.y83_1 + ')';
|
|
4608
4608
|
};
|
|
4609
4609
|
protoOf(Base64_0).hashCode = function () {
|
|
4610
|
-
var result = getStringHashCode(this.
|
|
4611
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4610
|
+
var result = getStringHashCode(this.x83_1);
|
|
4611
|
+
result = imul(result, 31) + getStringHashCode(this.y83_1) | 0;
|
|
4612
4612
|
return result;
|
|
4613
4613
|
};
|
|
4614
4614
|
protoOf(Base64_0).equals = function (other) {
|
|
@@ -4617,22 +4617,22 @@
|
|
|
4617
4617
|
if (!(other instanceof Base64_0))
|
|
4618
4618
|
return false;
|
|
4619
4619
|
var tmp0_other_with_cast = other instanceof Base64_0 ? other : THROW_CCE();
|
|
4620
|
-
if (!(this.
|
|
4620
|
+
if (!(this.x83_1 === tmp0_other_with_cast.x83_1))
|
|
4621
4621
|
return false;
|
|
4622
|
-
if (!(this.
|
|
4622
|
+
if (!(this.y83_1 === tmp0_other_with_cast.y83_1))
|
|
4623
4623
|
return false;
|
|
4624
4624
|
return true;
|
|
4625
4625
|
};
|
|
4626
4626
|
function PlainText_0(data, mediaType) {
|
|
4627
|
-
this.
|
|
4628
|
-
this.
|
|
4627
|
+
this.b84_1 = data;
|
|
4628
|
+
this.c84_1 = mediaType;
|
|
4629
4629
|
}
|
|
4630
4630
|
protoOf(PlainText_0).toString = function () {
|
|
4631
|
-
return 'PlainText(data=' + this.
|
|
4631
|
+
return 'PlainText(data=' + this.b84_1 + ', mediaType=' + this.c84_1 + ')';
|
|
4632
4632
|
};
|
|
4633
4633
|
protoOf(PlainText_0).hashCode = function () {
|
|
4634
|
-
var result = getStringHashCode(this.
|
|
4635
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4634
|
+
var result = getStringHashCode(this.b84_1);
|
|
4635
|
+
result = imul(result, 31) + getStringHashCode(this.c84_1) | 0;
|
|
4636
4636
|
return result;
|
|
4637
4637
|
};
|
|
4638
4638
|
protoOf(PlainText_0).equals = function (other) {
|
|
@@ -4641,9 +4641,9 @@
|
|
|
4641
4641
|
if (!(other instanceof PlainText_0))
|
|
4642
4642
|
return false;
|
|
4643
4643
|
var tmp0_other_with_cast = other instanceof PlainText_0 ? other : THROW_CCE();
|
|
4644
|
-
if (!(this.
|
|
4644
|
+
if (!(this.b84_1 === tmp0_other_with_cast.b84_1))
|
|
4645
4645
|
return false;
|
|
4646
|
-
if (!(this.
|
|
4646
|
+
if (!(this.c84_1 === tmp0_other_with_cast.c84_1))
|
|
4647
4647
|
return false;
|
|
4648
4648
|
return true;
|
|
4649
4649
|
};
|
|
@@ -4684,19 +4684,19 @@
|
|
|
4684
4684
|
$serializer_instance_20 = this;
|
|
4685
4685
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('text', this, 1);
|
|
4686
4686
|
tmp0_serialDesc.m16('text', false);
|
|
4687
|
-
this.
|
|
4687
|
+
this.d84_1 = tmp0_serialDesc;
|
|
4688
4688
|
}
|
|
4689
|
-
protoOf($serializer_20).
|
|
4690
|
-
var tmp0_desc = this.
|
|
4689
|
+
protoOf($serializer_20).e84 = function (encoder, value) {
|
|
4690
|
+
var tmp0_desc = this.d84_1;
|
|
4691
4691
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4692
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4692
|
+
tmp1_output.l10(tmp0_desc, 0, value.k7y_1);
|
|
4693
4693
|
tmp1_output.xy(tmp0_desc);
|
|
4694
4694
|
};
|
|
4695
4695
|
protoOf($serializer_20).gv = function (encoder, value) {
|
|
4696
|
-
return this.
|
|
4696
|
+
return this.e84(encoder, value instanceof Text_1 ? value : THROW_CCE());
|
|
4697
4697
|
};
|
|
4698
4698
|
protoOf($serializer_20).hv = function (decoder) {
|
|
4699
|
-
var tmp0_desc = this.
|
|
4699
|
+
var tmp0_desc = this.d84_1;
|
|
4700
4700
|
var tmp1_flag = true;
|
|
4701
4701
|
var tmp2_index = 0;
|
|
4702
4702
|
var tmp3_bitMask0 = 0;
|
|
@@ -4724,7 +4724,7 @@
|
|
|
4724
4724
|
return Text_init_$Create$_0(tmp3_bitMask0, tmp4_local0, null);
|
|
4725
4725
|
};
|
|
4726
4726
|
protoOf($serializer_20).fv = function () {
|
|
4727
|
-
return this.
|
|
4727
|
+
return this.d84_1;
|
|
4728
4728
|
};
|
|
4729
4729
|
protoOf($serializer_20).d17 = function () {
|
|
4730
4730
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4740,10 +4740,10 @@
|
|
|
4740
4740
|
}
|
|
4741
4741
|
function Text_init_$Init$_0(seen0, text, serializationConstructorMarker, $this) {
|
|
4742
4742
|
if (!(1 === (1 & seen0))) {
|
|
4743
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_20().
|
|
4743
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_20().d84_1);
|
|
4744
4744
|
}
|
|
4745
4745
|
AnthropicResponseContent_init_$Init$(seen0, serializationConstructorMarker, $this);
|
|
4746
|
-
$this.
|
|
4746
|
+
$this.k7y_1 = text;
|
|
4747
4747
|
return $this;
|
|
4748
4748
|
}
|
|
4749
4749
|
function Text_init_$Create$_0(seen0, text, serializationConstructorMarker) {
|
|
@@ -4761,21 +4761,21 @@
|
|
|
4761
4761
|
tmp0_serialDesc.m16('id', false);
|
|
4762
4762
|
tmp0_serialDesc.m16('name', false);
|
|
4763
4763
|
tmp0_serialDesc.m16('input', false);
|
|
4764
|
-
this.
|
|
4764
|
+
this.f84_1 = tmp0_serialDesc;
|
|
4765
4765
|
}
|
|
4766
|
-
protoOf($serializer_21).
|
|
4767
|
-
var tmp0_desc = this.
|
|
4766
|
+
protoOf($serializer_21).g84 = function (encoder, value) {
|
|
4767
|
+
var tmp0_desc = this.f84_1;
|
|
4768
4768
|
var tmp1_output = encoder.wy(tmp0_desc);
|
|
4769
|
-
tmp1_output.l10(tmp0_desc, 0, value.
|
|
4770
|
-
tmp1_output.l10(tmp0_desc, 1, value.
|
|
4771
|
-
tmp1_output.n10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.
|
|
4769
|
+
tmp1_output.l10(tmp0_desc, 0, value.h7y_1);
|
|
4770
|
+
tmp1_output.l10(tmp0_desc, 1, value.i7y_1);
|
|
4771
|
+
tmp1_output.n10(tmp0_desc, 2, JsonObjectSerializer_getInstance(), value.j7y_1);
|
|
4772
4772
|
tmp1_output.xy(tmp0_desc);
|
|
4773
4773
|
};
|
|
4774
4774
|
protoOf($serializer_21).gv = function (encoder, value) {
|
|
4775
|
-
return this.
|
|
4775
|
+
return this.g84(encoder, value instanceof ToolUse_0 ? value : THROW_CCE());
|
|
4776
4776
|
};
|
|
4777
4777
|
protoOf($serializer_21).hv = function (decoder) {
|
|
4778
|
-
var tmp0_desc = this.
|
|
4778
|
+
var tmp0_desc = this.f84_1;
|
|
4779
4779
|
var tmp1_flag = true;
|
|
4780
4780
|
var tmp2_index = 0;
|
|
4781
4781
|
var tmp3_bitMask0 = 0;
|
|
@@ -4817,7 +4817,7 @@
|
|
|
4817
4817
|
return ToolUse_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
4818
4818
|
};
|
|
4819
4819
|
protoOf($serializer_21).fv = function () {
|
|
4820
|
-
return this.
|
|
4820
|
+
return this.f84_1;
|
|
4821
4821
|
};
|
|
4822
4822
|
protoOf($serializer_21).d17 = function () {
|
|
4823
4823
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -4833,19 +4833,19 @@
|
|
|
4833
4833
|
}
|
|
4834
4834
|
function ToolUse_init_$Init$_0(seen0, id, name, input, serializationConstructorMarker, $this) {
|
|
4835
4835
|
if (!(7 === (7 & seen0))) {
|
|
4836
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_21().
|
|
4836
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_21().f84_1);
|
|
4837
4837
|
}
|
|
4838
4838
|
AnthropicResponseContent_init_$Init$(seen0, serializationConstructorMarker, $this);
|
|
4839
|
-
$this.
|
|
4840
|
-
$this.
|
|
4841
|
-
$this.
|
|
4839
|
+
$this.h7y_1 = id;
|
|
4840
|
+
$this.i7y_1 = name;
|
|
4841
|
+
$this.j7y_1 = input;
|
|
4842
4842
|
return $this;
|
|
4843
4843
|
}
|
|
4844
4844
|
function ToolUse_init_$Create$_0(seen0, id, name, input, serializationConstructorMarker) {
|
|
4845
4845
|
return ToolUse_init_$Init$_0(seen0, id, name, input, serializationConstructorMarker, objectCreate(protoOf(ToolUse_0)));
|
|
4846
4846
|
}
|
|
4847
4847
|
function _get_$cachedSerializer__te6jhj_3($this) {
|
|
4848
|
-
return $this.
|
|
4848
|
+
return $this.s80_1.b1();
|
|
4849
4849
|
}
|
|
4850
4850
|
function AnthropicResponseContent$Companion$_anonymous__8lgaeb() {
|
|
4851
4851
|
var tmp = getKClass(AnthropicResponseContent);
|
|
@@ -4865,13 +4865,13 @@
|
|
|
4865
4865
|
}
|
|
4866
4866
|
function Text_1(text) {
|
|
4867
4867
|
AnthropicResponseContent.call(this);
|
|
4868
|
-
this.
|
|
4868
|
+
this.k7y_1 = text;
|
|
4869
4869
|
}
|
|
4870
4870
|
protoOf(Text_1).toString = function () {
|
|
4871
|
-
return 'Text(text=' + this.
|
|
4871
|
+
return 'Text(text=' + this.k7y_1 + ')';
|
|
4872
4872
|
};
|
|
4873
4873
|
protoOf(Text_1).hashCode = function () {
|
|
4874
|
-
return getStringHashCode(this.
|
|
4874
|
+
return getStringHashCode(this.k7y_1);
|
|
4875
4875
|
};
|
|
4876
4876
|
protoOf(Text_1).equals = function (other) {
|
|
4877
4877
|
if (this === other)
|
|
@@ -4879,23 +4879,23 @@
|
|
|
4879
4879
|
if (!(other instanceof Text_1))
|
|
4880
4880
|
return false;
|
|
4881
4881
|
var tmp0_other_with_cast = other instanceof Text_1 ? other : THROW_CCE();
|
|
4882
|
-
if (!(this.
|
|
4882
|
+
if (!(this.k7y_1 === tmp0_other_with_cast.k7y_1))
|
|
4883
4883
|
return false;
|
|
4884
4884
|
return true;
|
|
4885
4885
|
};
|
|
4886
4886
|
function ToolUse_0(id, name, input) {
|
|
4887
4887
|
AnthropicResponseContent.call(this);
|
|
4888
|
-
this.
|
|
4889
|
-
this.
|
|
4890
|
-
this.
|
|
4888
|
+
this.h7y_1 = id;
|
|
4889
|
+
this.i7y_1 = name;
|
|
4890
|
+
this.j7y_1 = input;
|
|
4891
4891
|
}
|
|
4892
4892
|
protoOf(ToolUse_0).toString = function () {
|
|
4893
|
-
return 'ToolUse(id=' + this.
|
|
4893
|
+
return 'ToolUse(id=' + this.h7y_1 + ', name=' + this.i7y_1 + ', input=' + this.j7y_1.toString() + ')';
|
|
4894
4894
|
};
|
|
4895
4895
|
protoOf(ToolUse_0).hashCode = function () {
|
|
4896
|
-
var result = getStringHashCode(this.
|
|
4897
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
4898
|
-
result = imul(result, 31) + this.
|
|
4896
|
+
var result = getStringHashCode(this.h7y_1);
|
|
4897
|
+
result = imul(result, 31) + getStringHashCode(this.i7y_1) | 0;
|
|
4898
|
+
result = imul(result, 31) + this.j7y_1.hashCode() | 0;
|
|
4899
4899
|
return result;
|
|
4900
4900
|
};
|
|
4901
4901
|
protoOf(ToolUse_0).equals = function (other) {
|
|
@@ -4904,11 +4904,11 @@
|
|
|
4904
4904
|
if (!(other instanceof ToolUse_0))
|
|
4905
4905
|
return false;
|
|
4906
4906
|
var tmp0_other_with_cast = other instanceof ToolUse_0 ? other : THROW_CCE();
|
|
4907
|
-
if (!(this.
|
|
4907
|
+
if (!(this.h7y_1 === tmp0_other_with_cast.h7y_1))
|
|
4908
4908
|
return false;
|
|
4909
|
-
if (!(this.
|
|
4909
|
+
if (!(this.i7y_1 === tmp0_other_with_cast.i7y_1))
|
|
4910
4910
|
return false;
|
|
4911
|
-
if (!this.
|
|
4911
|
+
if (!this.j7y_1.equals(tmp0_other_with_cast.j7y_1))
|
|
4912
4912
|
return false;
|
|
4913
4913
|
return true;
|
|
4914
4914
|
};
|
|
@@ -4916,7 +4916,7 @@
|
|
|
4916
4916
|
Companion_instance_26 = this;
|
|
4917
4917
|
var tmp = this;
|
|
4918
4918
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
4919
|
-
tmp.
|
|
4919
|
+
tmp.s80_1 = lazy(tmp_0, AnthropicResponseContent$Companion$_anonymous__8lgaeb);
|
|
4920
4920
|
}
|
|
4921
4921
|
protoOf(Companion_26).q1j = function () {
|
|
4922
4922
|
return _get_$cachedSerializer__te6jhj_3(this);
|