@xiuper/mpp-core 0.0.2
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 +7836 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
- package/Xiuper-mpp-codegraph.js +1471 -0
- package/Xiuper-mpp-codegraph.js.map +1 -0
- package/annotations.js +15 -0
- package/annotations.js.map +1 -0
- package/autodev-mpp-core.d.ts +1312 -0
- package/autodev-mpp-core.js +86483 -0
- package/autodev-mpp-core.js.map +1 -0
- package/kaml.js +3387 -0
- package/kaml.js.map +1 -0
- package/koog-agents-agents-core.js +22927 -0
- package/koog-agents-agents-core.js.map +1 -0
- package/koog-agents-agents-ext.js +15 -0
- package/koog-agents-agents-ext.js.map +1 -0
- package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
- package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
- package/koog-agents-agents-features-agents-features-memory.js +15 -0
- package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
- package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
- package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
- package/koog-agents-agents-features-agents-features-trace.js +15 -0
- package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
- package/koog-agents-agents-mcp.js +15 -0
- package/koog-agents-agents-mcp.js.map +1 -0
- package/koog-agents-agents-tools.js +322 -0
- package/koog-agents-agents-tools.js.map +1 -0
- package/koog-agents-agents-utils.js +232 -0
- package/koog-agents-agents-utils.js.map +1 -0
- package/koog-embeddings-embeddings-base.js +15 -0
- package/koog-embeddings-embeddings-base.js.map +1 -0
- package/koog-embeddings-embeddings-llm.js +15 -0
- package/koog-embeddings-embeddings-llm.js.map +1 -0
- package/koog-http-client-http-client-core.js +57 -0
- package/koog-http-client-http-client-core.js.map +1 -0
- package/koog-http-client-http-client-ktor.js +703 -0
- package/koog-http-client-http-client-ktor.js.map +1 -0
- package/koog-koog-agents.js +15 -0
- package/koog-koog-agents.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
- package/koog-prompt-prompt-llm.js +1710 -0
- package/koog-prompt-prompt-llm.js.map +1 -0
- package/koog-prompt-prompt-markdown.js +122 -0
- package/koog-prompt-prompt-markdown.js.map +1 -0
- package/koog-prompt-prompt-model.js +5848 -0
- package/koog-prompt-prompt-model.js.map +1 -0
- package/koog-prompt-prompt-structure.js +1513 -0
- package/koog-prompt-prompt-structure.js.map +1 -0
- package/koog-prompt-prompt-tokenizer.js +15 -0
- package/koog-prompt-prompt-tokenizer.js.map +1 -0
- package/koog-prompt-prompt-xml.js +15 -0
- package/koog-prompt-prompt-xml.js.map +1 -0
- package/koog-rag-rag-base.js +15 -0
- package/koog-rag-rag-base.js.map +1 -0
- package/koog-rag-vector-storage.js +15 -0
- package/koog-rag-vector-storage.js.map +1 -0
- package/koog-utils.js +63 -0
- package/koog-utils.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +18965 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-logging.js +509 -0
- package/kotlin-logging.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
- package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
- package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-atomicfu.js +259 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +13742 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +2892 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js +775 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +11110 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-logging.js +15 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +126 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http-cio.js +4257 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +3671 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +4114 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-network.js +1399 -0
- package/ktor-ktor-network.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +67 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +881 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +388 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-server-cio.js +3735 -0
- package/ktor-ktor-server-cio.js.map +1 -0
- package/ktor-ktor-server-core.js +8696 -0
- package/ktor-ktor-server-core.js.map +1 -0
- package/ktor-ktor-server-sse.js +668 -0
- package/ktor-ktor-server-sse.js.map +1 -0
- package/ktor-ktor-server-websockets.js +15 -0
- package/ktor-ktor-server-websockets.js.map +1 -0
- package/ktor-ktor-sse.js +161 -0
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +3589 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +450 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/markdown.js +5174 -0
- package/markdown.js.map +1 -0
- package/okio-parent-okio.js +2628 -0
- package/okio-parent-okio.js.map +1 -0
- package/package.json +18 -0
- package/snakeyaml-engine-kmp.js +7079 -0
- package/snakeyaml-engine-kmp.js.map +1 -0
- package/urlencoder-urlencoder-lib.js +322 -0
- package/urlencoder-urlencoder-lib.js.map +1 -0
- package/xiuper-mpp-core.d.ts +1312 -0
- package/xiuper-mpp-core.js +86483 -0
- package/xiuper-mpp-core.js.map +1 -0
|
@@ -0,0 +1,1710 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlin-kotlin-stdlib.js', './koog-agents-agents-utils.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./koog-agents-agents-utils.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'koog-prompt-prompt-llm'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'koog-prompt-prompt-llm'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'koog-prompt-prompt-llm'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'koog-prompt-prompt-llm'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof globalThis['koog-agents-agents-utils'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'koog-prompt-prompt-llm'. Its dependency 'koog-agents-agents-utils' was not found. Please, check whether 'koog-agents-agents-utils' is loaded prior to 'koog-prompt-prompt-llm'.");
|
|
15
|
+
}
|
|
16
|
+
globalThis['koog-prompt-prompt-llm'] = factory(typeof globalThis['koog-prompt-prompt-llm'] === 'undefined' ? {} : globalThis['koog-prompt-prompt-llm'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['koog-agents-agents-utils']);
|
|
17
|
+
}
|
|
18
|
+
}(function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_kotlin, kotlin_ai_koog_agents_utils) {
|
|
19
|
+
'use strict';
|
|
20
|
+
//region block: imports
|
|
21
|
+
var imul = Math.imul;
|
|
22
|
+
var ObjectSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
|
|
23
|
+
var getKClass = kotlin_kotlin.$_$.f;
|
|
24
|
+
var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
|
|
25
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.o;
|
|
26
|
+
var lazy = kotlin_kotlin.$_$.xl;
|
|
27
|
+
var protoOf = kotlin_kotlin.$_$.we;
|
|
28
|
+
var THROW_CCE = kotlin_kotlin.$_$.zk;
|
|
29
|
+
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j3;
|
|
30
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ae;
|
|
31
|
+
var VOID = kotlin_kotlin.$_$.h;
|
|
32
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
|
|
33
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ud;
|
|
34
|
+
var PolymorphicSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
|
|
35
|
+
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z2;
|
|
36
|
+
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i3;
|
|
37
|
+
var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1;
|
|
38
|
+
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
39
|
+
var Long = kotlin_kotlin.$_$.sk;
|
|
40
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
|
|
41
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
|
|
42
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
|
|
43
|
+
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b3;
|
|
44
|
+
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3;
|
|
45
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o3;
|
|
46
|
+
var objectCreate = kotlin_kotlin.$_$.ve;
|
|
47
|
+
var toString = kotlin_kotlin.$_$.af;
|
|
48
|
+
var toString_0 = kotlin_kotlin.$_$.gm;
|
|
49
|
+
var hashCode = kotlin_kotlin.$_$.td;
|
|
50
|
+
var getStringHashCode = kotlin_kotlin.$_$.sd;
|
|
51
|
+
var equals = kotlin_kotlin.$_$.md;
|
|
52
|
+
var ModelInfo = kotlin_ai_koog_agents_utils.$_$.a;
|
|
53
|
+
//endregion
|
|
54
|
+
//region block: pre-declaration
|
|
55
|
+
initMetadataForClass(LLMCapability, 'LLMCapability', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_3});
|
|
56
|
+
initMetadataForClass(Vision, 'Vision', VOID, LLMCapability, VOID, VOID, VOID, {0: Companion_getInstance});
|
|
57
|
+
initMetadataForObject(Image, 'Image', VOID, Vision, [Vision, SerializerFactory], VOID, VOID, {0: Image_getInstance});
|
|
58
|
+
initMetadataForObject(Video, 'Video', VOID, Vision, [Vision, SerializerFactory], VOID, VOID, {0: Video_getInstance});
|
|
59
|
+
initMetadataForCompanion(Companion, VOID, [SerializerFactory]);
|
|
60
|
+
initMetadataForClass(Schema, 'Schema', VOID, LLMCapability, VOID, VOID, VOID, {0: Companion_getInstance_1});
|
|
61
|
+
initMetadataForClass(JSON_0, 'JSON', VOID, Schema, VOID, VOID, VOID, {0: Companion_getInstance_0});
|
|
62
|
+
initMetadataForObject(Basic, 'Basic', VOID, JSON_0, [JSON_0, SerializerFactory], VOID, VOID, {0: Basic_getInstance});
|
|
63
|
+
initMetadataForObject(Standard, 'Standard', VOID, JSON_0, [JSON_0, SerializerFactory], VOID, VOID, {0: Standard_getInstance});
|
|
64
|
+
initMetadataForCompanion(Companion_0, VOID, [SerializerFactory]);
|
|
65
|
+
initMetadataForCompanion(Companion_1, VOID, [SerializerFactory]);
|
|
66
|
+
initMetadataForClass(OpenAIEndpoint, 'OpenAIEndpoint', VOID, LLMCapability, VOID, VOID, VOID, {0: Companion_getInstance_2});
|
|
67
|
+
initMetadataForObject(Completions, 'Completions', VOID, OpenAIEndpoint, [OpenAIEndpoint, SerializerFactory], VOID, VOID, {0: Completions_getInstance});
|
|
68
|
+
initMetadataForObject(Responses, 'Responses', VOID, OpenAIEndpoint, [OpenAIEndpoint, SerializerFactory], VOID, VOID, {0: Responses_getInstance});
|
|
69
|
+
initMetadataForCompanion(Companion_2, VOID, [SerializerFactory]);
|
|
70
|
+
initMetadataForObject(Speculation, 'Speculation', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Speculation_getInstance});
|
|
71
|
+
initMetadataForObject(Temperature, 'Temperature', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Temperature_getInstance});
|
|
72
|
+
initMetadataForObject(Tools, 'Tools', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Tools_getInstance});
|
|
73
|
+
initMetadataForObject(ToolChoice, 'ToolChoice', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: ToolChoice_getInstance});
|
|
74
|
+
initMetadataForObject(MultipleChoices, 'MultipleChoices', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: MultipleChoices_getInstance});
|
|
75
|
+
initMetadataForObject(Audio, 'Audio', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Audio_getInstance});
|
|
76
|
+
initMetadataForObject(Document, 'Document', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Document_getInstance});
|
|
77
|
+
initMetadataForObject(Embed, 'Embed', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Embed_getInstance});
|
|
78
|
+
initMetadataForObject(Completion, 'Completion', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Completion_getInstance});
|
|
79
|
+
initMetadataForObject(PromptCaching, 'PromptCaching', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: PromptCaching_getInstance});
|
|
80
|
+
initMetadataForObject(Moderation, 'Moderation', VOID, LLMCapability, [LLMCapability, SerializerFactory], VOID, VOID, {0: Moderation_getInstance});
|
|
81
|
+
initMetadataForCompanion(Companion_3, VOID, [SerializerFactory]);
|
|
82
|
+
initMetadataForClass(LLMProvider, 'LLMProvider', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_4});
|
|
83
|
+
initMetadataForObject(Google, 'Google', VOID, LLMProvider, [LLMProvider, SerializerFactory], VOID, VOID, {0: Google_getInstance});
|
|
84
|
+
initMetadataForObject(OpenAI, 'OpenAI', VOID, LLMProvider, [LLMProvider, SerializerFactory], VOID, VOID, {0: OpenAI_getInstance});
|
|
85
|
+
initMetadataForObject(Anthropic, 'Anthropic', VOID, LLMProvider, [LLMProvider, SerializerFactory], VOID, VOID, {0: Anthropic_getInstance});
|
|
86
|
+
initMetadataForObject(OpenRouter, 'OpenRouter', VOID, LLMProvider, [LLMProvider, SerializerFactory], VOID, VOID, {0: OpenRouter_getInstance});
|
|
87
|
+
initMetadataForObject(Ollama, 'Ollama', VOID, LLMProvider, [LLMProvider, SerializerFactory], VOID, VOID, {0: Ollama_getInstance});
|
|
88
|
+
initMetadataForObject(DeepSeek, 'DeepSeek', VOID, LLMProvider, [LLMProvider, SerializerFactory], VOID, VOID, {0: DeepSeek_getInstance});
|
|
89
|
+
initMetadataForCompanion(Companion_4, VOID, [SerializerFactory]);
|
|
90
|
+
initMetadataForCompanion(Companion_5);
|
|
91
|
+
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
92
|
+
initMetadataForClass(LLModel, 'LLModel', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
93
|
+
//endregion
|
|
94
|
+
function _get_$cachedSerializer__te6jhj($this) {
|
|
95
|
+
return $this.z3e_1.b1();
|
|
96
|
+
}
|
|
97
|
+
function LLMCapability$Speculation$_anonymous__dmi0nn() {
|
|
98
|
+
var tmp = Speculation_getInstance();
|
|
99
|
+
// Inline function 'kotlin.arrayOf' call
|
|
100
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
101
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
102
|
+
var tmp$ret$2 = [];
|
|
103
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Speculation', tmp, tmp$ret$2);
|
|
104
|
+
}
|
|
105
|
+
function _get_$cachedSerializer__te6jhj_0($this) {
|
|
106
|
+
return $this.b3f_1.b1();
|
|
107
|
+
}
|
|
108
|
+
function LLMCapability$Temperature$_anonymous__l991fm() {
|
|
109
|
+
var tmp = Temperature_getInstance();
|
|
110
|
+
// Inline function 'kotlin.arrayOf' call
|
|
111
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
112
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
113
|
+
var tmp$ret$2 = [];
|
|
114
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Temperature', tmp, tmp$ret$2);
|
|
115
|
+
}
|
|
116
|
+
function _get_$cachedSerializer__te6jhj_1($this) {
|
|
117
|
+
return $this.d3f_1.b1();
|
|
118
|
+
}
|
|
119
|
+
function LLMCapability$Tools$_anonymous__qu2w9n() {
|
|
120
|
+
var tmp = Tools_getInstance();
|
|
121
|
+
// Inline function 'kotlin.arrayOf' call
|
|
122
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
123
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
124
|
+
var tmp$ret$2 = [];
|
|
125
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Tools', tmp, tmp$ret$2);
|
|
126
|
+
}
|
|
127
|
+
function _get_$cachedSerializer__te6jhj_2($this) {
|
|
128
|
+
return $this.f3f_1.b1();
|
|
129
|
+
}
|
|
130
|
+
function LLMCapability$ToolChoice$_anonymous__mihvi9() {
|
|
131
|
+
var tmp = ToolChoice_getInstance();
|
|
132
|
+
// Inline function 'kotlin.arrayOf' call
|
|
133
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
134
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
135
|
+
var tmp$ret$2 = [];
|
|
136
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.ToolChoice', tmp, tmp$ret$2);
|
|
137
|
+
}
|
|
138
|
+
function _get_$cachedSerializer__te6jhj_3($this) {
|
|
139
|
+
return $this.h3f_1.b1();
|
|
140
|
+
}
|
|
141
|
+
function LLMCapability$MultipleChoices$_anonymous__r4ki44() {
|
|
142
|
+
var tmp = MultipleChoices_getInstance();
|
|
143
|
+
// Inline function 'kotlin.arrayOf' call
|
|
144
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
145
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
146
|
+
var tmp$ret$2 = [];
|
|
147
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.MultipleChoices', tmp, tmp$ret$2);
|
|
148
|
+
}
|
|
149
|
+
function _get_$cachedSerializer__te6jhj_4($this) {
|
|
150
|
+
return $this.k3f_1.b1();
|
|
151
|
+
}
|
|
152
|
+
function LLMCapability$Vision$Image$_anonymous__shf8rr() {
|
|
153
|
+
var tmp = Image_getInstance();
|
|
154
|
+
// Inline function 'kotlin.arrayOf' call
|
|
155
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
156
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
157
|
+
var tmp$ret$2 = [];
|
|
158
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Vision.Image', tmp, tmp$ret$2);
|
|
159
|
+
}
|
|
160
|
+
function _get_$cachedSerializer__te6jhj_5($this) {
|
|
161
|
+
return $this.n3f_1.b1();
|
|
162
|
+
}
|
|
163
|
+
function LLMCapability$Vision$Video$_anonymous__tz5wah() {
|
|
164
|
+
var tmp = Video_getInstance();
|
|
165
|
+
// Inline function 'kotlin.arrayOf' call
|
|
166
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
167
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
168
|
+
var tmp$ret$2 = [];
|
|
169
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Vision.Video', tmp, tmp$ret$2);
|
|
170
|
+
}
|
|
171
|
+
function _get_$cachedSerializer__te6jhj_6($this) {
|
|
172
|
+
return $this.o3f_1.b1();
|
|
173
|
+
}
|
|
174
|
+
function LLMCapability$Vision$Companion$_anonymous__ky45d4() {
|
|
175
|
+
var tmp = getKClass(Vision);
|
|
176
|
+
// Inline function 'kotlin.arrayOf' call
|
|
177
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
178
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
179
|
+
var tmp_0 = [getKClass(Image), getKClass(Video)];
|
|
180
|
+
var tmp_1 = Image_getInstance();
|
|
181
|
+
// Inline function 'kotlin.arrayOf' call
|
|
182
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
183
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
184
|
+
var tmp$ret$5 = [];
|
|
185
|
+
var tmp_2 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Vision.Image', tmp_1, tmp$ret$5);
|
|
186
|
+
var tmp_3 = Video_getInstance();
|
|
187
|
+
// Inline function 'kotlin.arrayOf' call
|
|
188
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
189
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
190
|
+
var tmp$ret$8 = [];
|
|
191
|
+
// Inline function 'kotlin.arrayOf' call
|
|
192
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
193
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
194
|
+
var tmp_4 = [tmp_2, ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Vision.Video', tmp_3, tmp$ret$8)];
|
|
195
|
+
// Inline function 'kotlin.arrayOf' call
|
|
196
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
197
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
198
|
+
var tmp$ret$14 = [];
|
|
199
|
+
return SealedClassSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Vision', tmp, tmp_0, tmp_4, tmp$ret$14);
|
|
200
|
+
}
|
|
201
|
+
function Image() {
|
|
202
|
+
Image_instance = this;
|
|
203
|
+
Vision.call(this, 'image');
|
|
204
|
+
var tmp = this;
|
|
205
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
206
|
+
tmp.k3f_1 = lazy(tmp_0, LLMCapability$Vision$Image$_anonymous__shf8rr);
|
|
207
|
+
}
|
|
208
|
+
protoOf(Image).q1j = function () {
|
|
209
|
+
return _get_$cachedSerializer__te6jhj_4(this);
|
|
210
|
+
};
|
|
211
|
+
protoOf(Image).o17 = function (typeParamsSerializers) {
|
|
212
|
+
return this.q1j();
|
|
213
|
+
};
|
|
214
|
+
protoOf(Image).toString = function () {
|
|
215
|
+
return 'Image';
|
|
216
|
+
};
|
|
217
|
+
protoOf(Image).hashCode = function () {
|
|
218
|
+
return -935242723;
|
|
219
|
+
};
|
|
220
|
+
protoOf(Image).equals = function (other) {
|
|
221
|
+
if (this === other)
|
|
222
|
+
return true;
|
|
223
|
+
if (!(other instanceof Image))
|
|
224
|
+
return false;
|
|
225
|
+
other instanceof Image || THROW_CCE();
|
|
226
|
+
return true;
|
|
227
|
+
};
|
|
228
|
+
var Image_instance;
|
|
229
|
+
function Image_getInstance() {
|
|
230
|
+
if (Image_instance == null)
|
|
231
|
+
new Image();
|
|
232
|
+
return Image_instance;
|
|
233
|
+
}
|
|
234
|
+
function Video() {
|
|
235
|
+
Video_instance = this;
|
|
236
|
+
Vision.call(this, 'video');
|
|
237
|
+
var tmp = this;
|
|
238
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
239
|
+
tmp.n3f_1 = lazy(tmp_0, LLMCapability$Vision$Video$_anonymous__tz5wah);
|
|
240
|
+
}
|
|
241
|
+
protoOf(Video).q1j = function () {
|
|
242
|
+
return _get_$cachedSerializer__te6jhj_5(this);
|
|
243
|
+
};
|
|
244
|
+
protoOf(Video).o17 = function (typeParamsSerializers) {
|
|
245
|
+
return this.q1j();
|
|
246
|
+
};
|
|
247
|
+
protoOf(Video).toString = function () {
|
|
248
|
+
return 'Video';
|
|
249
|
+
};
|
|
250
|
+
protoOf(Video).hashCode = function () {
|
|
251
|
+
return -923353283;
|
|
252
|
+
};
|
|
253
|
+
protoOf(Video).equals = function (other) {
|
|
254
|
+
if (this === other)
|
|
255
|
+
return true;
|
|
256
|
+
if (!(other instanceof Video))
|
|
257
|
+
return false;
|
|
258
|
+
other instanceof Video || THROW_CCE();
|
|
259
|
+
return true;
|
|
260
|
+
};
|
|
261
|
+
var Video_instance;
|
|
262
|
+
function Video_getInstance() {
|
|
263
|
+
if (Video_instance == null)
|
|
264
|
+
new Video();
|
|
265
|
+
return Video_instance;
|
|
266
|
+
}
|
|
267
|
+
function Companion() {
|
|
268
|
+
Companion_instance = this;
|
|
269
|
+
var tmp = this;
|
|
270
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
271
|
+
tmp.o3f_1 = lazy(tmp_0, LLMCapability$Vision$Companion$_anonymous__ky45d4);
|
|
272
|
+
}
|
|
273
|
+
protoOf(Companion).q1j = function () {
|
|
274
|
+
return _get_$cachedSerializer__te6jhj_6(this);
|
|
275
|
+
};
|
|
276
|
+
protoOf(Companion).o17 = function (typeParamsSerializers) {
|
|
277
|
+
return this.q1j();
|
|
278
|
+
};
|
|
279
|
+
var Companion_instance;
|
|
280
|
+
function Companion_getInstance() {
|
|
281
|
+
if (Companion_instance == null)
|
|
282
|
+
new Companion();
|
|
283
|
+
return Companion_instance;
|
|
284
|
+
}
|
|
285
|
+
function _get_$cachedSerializer__te6jhj_7($this) {
|
|
286
|
+
return $this.q3f_1.b1();
|
|
287
|
+
}
|
|
288
|
+
function LLMCapability$Audio$_anonymous__m6wcbk() {
|
|
289
|
+
var tmp = Audio_getInstance();
|
|
290
|
+
// Inline function 'kotlin.arrayOf' call
|
|
291
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
292
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
293
|
+
var tmp$ret$2 = [];
|
|
294
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Audio', tmp, tmp$ret$2);
|
|
295
|
+
}
|
|
296
|
+
function _get_$cachedSerializer__te6jhj_8($this) {
|
|
297
|
+
return $this.s3f_1.b1();
|
|
298
|
+
}
|
|
299
|
+
function LLMCapability$Document$_anonymous__qyszer() {
|
|
300
|
+
var tmp = Document_getInstance();
|
|
301
|
+
// Inline function 'kotlin.arrayOf' call
|
|
302
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
303
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
304
|
+
var tmp$ret$2 = [];
|
|
305
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Document', tmp, tmp$ret$2);
|
|
306
|
+
}
|
|
307
|
+
function _get_$cachedSerializer__te6jhj_9($this) {
|
|
308
|
+
return $this.u3f_1.b1();
|
|
309
|
+
}
|
|
310
|
+
function LLMCapability$Embed$_anonymous__trunmr() {
|
|
311
|
+
var tmp = Embed_getInstance();
|
|
312
|
+
// Inline function 'kotlin.arrayOf' call
|
|
313
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
314
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
315
|
+
var tmp$ret$2 = [];
|
|
316
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Embed', tmp, tmp$ret$2);
|
|
317
|
+
}
|
|
318
|
+
function _get_$cachedSerializer__te6jhj_10($this) {
|
|
319
|
+
return $this.w3f_1.b1();
|
|
320
|
+
}
|
|
321
|
+
function LLMCapability$Completion$_anonymous__l4aypo() {
|
|
322
|
+
var tmp = Completion_getInstance();
|
|
323
|
+
// Inline function 'kotlin.arrayOf' call
|
|
324
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
325
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
326
|
+
var tmp$ret$2 = [];
|
|
327
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Completion', tmp, tmp$ret$2);
|
|
328
|
+
}
|
|
329
|
+
function _get_$cachedSerializer__te6jhj_11($this) {
|
|
330
|
+
return $this.y3f_1.b1();
|
|
331
|
+
}
|
|
332
|
+
function LLMCapability$PromptCaching$_anonymous__15a9s5() {
|
|
333
|
+
var tmp = PromptCaching_getInstance();
|
|
334
|
+
// Inline function 'kotlin.arrayOf' call
|
|
335
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
336
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
337
|
+
var tmp$ret$2 = [];
|
|
338
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.PromptCaching', tmp, tmp$ret$2);
|
|
339
|
+
}
|
|
340
|
+
function _get_$cachedSerializer__te6jhj_12($this) {
|
|
341
|
+
return $this.a3g_1.b1();
|
|
342
|
+
}
|
|
343
|
+
function LLMCapability$Moderation$_anonymous__mzol5a() {
|
|
344
|
+
var tmp = Moderation_getInstance();
|
|
345
|
+
// Inline function 'kotlin.arrayOf' call
|
|
346
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
347
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
348
|
+
var tmp$ret$2 = [];
|
|
349
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Moderation', tmp, tmp$ret$2);
|
|
350
|
+
}
|
|
351
|
+
function _get_$cachedSerializer__te6jhj_13($this) {
|
|
352
|
+
return $this.e3g_1.b1();
|
|
353
|
+
}
|
|
354
|
+
function LLMCapability$Schema$JSON$Basic$_anonymous__c9se7z() {
|
|
355
|
+
var tmp = Basic_getInstance();
|
|
356
|
+
// Inline function 'kotlin.arrayOf' call
|
|
357
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
358
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
359
|
+
var tmp$ret$2 = [];
|
|
360
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Basic', tmp, tmp$ret$2);
|
|
361
|
+
}
|
|
362
|
+
function _get_$cachedSerializer__te6jhj_14($this) {
|
|
363
|
+
return $this.i3g_1.b1();
|
|
364
|
+
}
|
|
365
|
+
function LLMCapability$Schema$JSON$Standard$_anonymous__3gkrr2() {
|
|
366
|
+
var tmp = Standard_getInstance();
|
|
367
|
+
// Inline function 'kotlin.arrayOf' call
|
|
368
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
369
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
370
|
+
var tmp$ret$2 = [];
|
|
371
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Standard', tmp, tmp$ret$2);
|
|
372
|
+
}
|
|
373
|
+
function _get_$cachedSerializer__te6jhj_15($this) {
|
|
374
|
+
return $this.j3g_1.b1();
|
|
375
|
+
}
|
|
376
|
+
function LLMCapability$Schema$JSON$Companion$_anonymous__pqpmu5() {
|
|
377
|
+
var tmp = getKClass(JSON_0);
|
|
378
|
+
// Inline function 'kotlin.arrayOf' call
|
|
379
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
380
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
381
|
+
var tmp_0 = [getKClass(Basic), getKClass(Standard)];
|
|
382
|
+
var tmp_1 = Basic_getInstance();
|
|
383
|
+
// Inline function 'kotlin.arrayOf' call
|
|
384
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
385
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
386
|
+
var tmp$ret$5 = [];
|
|
387
|
+
var tmp_2 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Basic', tmp_1, tmp$ret$5);
|
|
388
|
+
var tmp_3 = Standard_getInstance();
|
|
389
|
+
// Inline function 'kotlin.arrayOf' call
|
|
390
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
391
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
392
|
+
var tmp$ret$8 = [];
|
|
393
|
+
// Inline function 'kotlin.arrayOf' call
|
|
394
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
395
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
396
|
+
var tmp_4 = [tmp_2, ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Standard', tmp_3, tmp$ret$8)];
|
|
397
|
+
// Inline function 'kotlin.arrayOf' call
|
|
398
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
399
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
400
|
+
var tmp$ret$14 = [];
|
|
401
|
+
return SealedClassSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON', tmp, tmp_0, tmp_4, tmp$ret$14);
|
|
402
|
+
}
|
|
403
|
+
function Basic() {
|
|
404
|
+
Basic_instance = this;
|
|
405
|
+
JSON_0.call(this, 'basic');
|
|
406
|
+
var tmp = this;
|
|
407
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
408
|
+
tmp.e3g_1 = lazy(tmp_0, LLMCapability$Schema$JSON$Basic$_anonymous__c9se7z);
|
|
409
|
+
}
|
|
410
|
+
protoOf(Basic).q1j = function () {
|
|
411
|
+
return _get_$cachedSerializer__te6jhj_13(this);
|
|
412
|
+
};
|
|
413
|
+
protoOf(Basic).o17 = function (typeParamsSerializers) {
|
|
414
|
+
return this.q1j();
|
|
415
|
+
};
|
|
416
|
+
protoOf(Basic).toString = function () {
|
|
417
|
+
return 'Basic';
|
|
418
|
+
};
|
|
419
|
+
protoOf(Basic).hashCode = function () {
|
|
420
|
+
return -208579955;
|
|
421
|
+
};
|
|
422
|
+
protoOf(Basic).equals = function (other) {
|
|
423
|
+
if (this === other)
|
|
424
|
+
return true;
|
|
425
|
+
if (!(other instanceof Basic))
|
|
426
|
+
return false;
|
|
427
|
+
other instanceof Basic || THROW_CCE();
|
|
428
|
+
return true;
|
|
429
|
+
};
|
|
430
|
+
var Basic_instance;
|
|
431
|
+
function Basic_getInstance() {
|
|
432
|
+
if (Basic_instance == null)
|
|
433
|
+
new Basic();
|
|
434
|
+
return Basic_instance;
|
|
435
|
+
}
|
|
436
|
+
function Standard() {
|
|
437
|
+
Standard_instance = this;
|
|
438
|
+
JSON_0.call(this, 'standard');
|
|
439
|
+
var tmp = this;
|
|
440
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
441
|
+
tmp.i3g_1 = lazy(tmp_0, LLMCapability$Schema$JSON$Standard$_anonymous__3gkrr2);
|
|
442
|
+
}
|
|
443
|
+
protoOf(Standard).q1j = function () {
|
|
444
|
+
return _get_$cachedSerializer__te6jhj_14(this);
|
|
445
|
+
};
|
|
446
|
+
protoOf(Standard).o17 = function (typeParamsSerializers) {
|
|
447
|
+
return this.q1j();
|
|
448
|
+
};
|
|
449
|
+
protoOf(Standard).toString = function () {
|
|
450
|
+
return 'Standard';
|
|
451
|
+
};
|
|
452
|
+
protoOf(Standard).hashCode = function () {
|
|
453
|
+
return -252637186;
|
|
454
|
+
};
|
|
455
|
+
protoOf(Standard).equals = function (other) {
|
|
456
|
+
if (this === other)
|
|
457
|
+
return true;
|
|
458
|
+
if (!(other instanceof Standard))
|
|
459
|
+
return false;
|
|
460
|
+
other instanceof Standard || THROW_CCE();
|
|
461
|
+
return true;
|
|
462
|
+
};
|
|
463
|
+
var Standard_instance;
|
|
464
|
+
function Standard_getInstance() {
|
|
465
|
+
if (Standard_instance == null)
|
|
466
|
+
new Standard();
|
|
467
|
+
return Standard_instance;
|
|
468
|
+
}
|
|
469
|
+
function Companion_0() {
|
|
470
|
+
Companion_instance_0 = this;
|
|
471
|
+
var tmp = this;
|
|
472
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
473
|
+
tmp.j3g_1 = lazy(tmp_0, LLMCapability$Schema$JSON$Companion$_anonymous__pqpmu5);
|
|
474
|
+
}
|
|
475
|
+
protoOf(Companion_0).q1j = function () {
|
|
476
|
+
return _get_$cachedSerializer__te6jhj_15(this);
|
|
477
|
+
};
|
|
478
|
+
protoOf(Companion_0).o17 = function (typeParamsSerializers) {
|
|
479
|
+
return this.q1j();
|
|
480
|
+
};
|
|
481
|
+
var Companion_instance_0;
|
|
482
|
+
function Companion_getInstance_0() {
|
|
483
|
+
if (Companion_instance_0 == null)
|
|
484
|
+
new Companion_0();
|
|
485
|
+
return Companion_instance_0;
|
|
486
|
+
}
|
|
487
|
+
function _get_$cachedSerializer__te6jhj_16($this) {
|
|
488
|
+
return $this.k3g_1.b1();
|
|
489
|
+
}
|
|
490
|
+
function LLMCapability$Schema$Companion$_anonymous__o9pnov() {
|
|
491
|
+
var tmp = getKClass(Schema);
|
|
492
|
+
// Inline function 'kotlin.arrayOf' call
|
|
493
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
494
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
495
|
+
var tmp_0 = [getKClass(Basic), getKClass(Standard)];
|
|
496
|
+
var tmp_1 = Basic_getInstance();
|
|
497
|
+
// Inline function 'kotlin.arrayOf' call
|
|
498
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
499
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
500
|
+
var tmp$ret$5 = [];
|
|
501
|
+
var tmp_2 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Basic', tmp_1, tmp$ret$5);
|
|
502
|
+
var tmp_3 = Standard_getInstance();
|
|
503
|
+
// Inline function 'kotlin.arrayOf' call
|
|
504
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
505
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
506
|
+
var tmp$ret$8 = [];
|
|
507
|
+
// Inline function 'kotlin.arrayOf' call
|
|
508
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
509
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
510
|
+
var tmp_4 = [tmp_2, ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Standard', tmp_3, tmp$ret$8)];
|
|
511
|
+
// Inline function 'kotlin.arrayOf' call
|
|
512
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
513
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
514
|
+
var tmp$ret$14 = [];
|
|
515
|
+
return SealedClassSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema', tmp, tmp_0, tmp_4, tmp$ret$14);
|
|
516
|
+
}
|
|
517
|
+
function JSON_0(support) {
|
|
518
|
+
Companion_getInstance_0();
|
|
519
|
+
Schema.call(this, support + '-json');
|
|
520
|
+
this.n3g_1 = support;
|
|
521
|
+
}
|
|
522
|
+
function Companion_1() {
|
|
523
|
+
Companion_instance_1 = this;
|
|
524
|
+
var tmp = this;
|
|
525
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
526
|
+
tmp.k3g_1 = lazy(tmp_0, LLMCapability$Schema$Companion$_anonymous__o9pnov);
|
|
527
|
+
}
|
|
528
|
+
protoOf(Companion_1).q1j = function () {
|
|
529
|
+
return _get_$cachedSerializer__te6jhj_16(this);
|
|
530
|
+
};
|
|
531
|
+
protoOf(Companion_1).o17 = function (typeParamsSerializers) {
|
|
532
|
+
return this.q1j();
|
|
533
|
+
};
|
|
534
|
+
var Companion_instance_1;
|
|
535
|
+
function Companion_getInstance_1() {
|
|
536
|
+
if (Companion_instance_1 == null)
|
|
537
|
+
new Companion_1();
|
|
538
|
+
return Companion_instance_1;
|
|
539
|
+
}
|
|
540
|
+
function _get_$cachedSerializer__te6jhj_17($this) {
|
|
541
|
+
return $this.q3g_1.b1();
|
|
542
|
+
}
|
|
543
|
+
function LLMCapability$OpenAIEndpoint$Completions$_anonymous__8qiqvy() {
|
|
544
|
+
var tmp = Completions_getInstance();
|
|
545
|
+
// Inline function 'kotlin.arrayOf' call
|
|
546
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
547
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
548
|
+
var tmp$ret$2 = [];
|
|
549
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.OpenAIEndpoint.Completions', tmp, tmp$ret$2);
|
|
550
|
+
}
|
|
551
|
+
function _get_$cachedSerializer__te6jhj_18($this) {
|
|
552
|
+
return $this.t3g_1.b1();
|
|
553
|
+
}
|
|
554
|
+
function LLMCapability$OpenAIEndpoint$Responses$_anonymous__68df8j() {
|
|
555
|
+
var tmp = Responses_getInstance();
|
|
556
|
+
// Inline function 'kotlin.arrayOf' call
|
|
557
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
558
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
559
|
+
var tmp$ret$2 = [];
|
|
560
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.OpenAIEndpoint.Responses', tmp, tmp$ret$2);
|
|
561
|
+
}
|
|
562
|
+
function _get_$cachedSerializer__te6jhj_19($this) {
|
|
563
|
+
return $this.u3g_1.b1();
|
|
564
|
+
}
|
|
565
|
+
function LLMCapability$OpenAIEndpoint$Companion$_anonymous__p7i27d() {
|
|
566
|
+
var tmp = getKClass(OpenAIEndpoint);
|
|
567
|
+
// Inline function 'kotlin.arrayOf' call
|
|
568
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
569
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
570
|
+
var tmp_0 = [getKClass(Completions), getKClass(Responses)];
|
|
571
|
+
var tmp_1 = Completions_getInstance();
|
|
572
|
+
// Inline function 'kotlin.arrayOf' call
|
|
573
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
574
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
575
|
+
var tmp$ret$5 = [];
|
|
576
|
+
var tmp_2 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.OpenAIEndpoint.Completions', tmp_1, tmp$ret$5);
|
|
577
|
+
var tmp_3 = Responses_getInstance();
|
|
578
|
+
// Inline function 'kotlin.arrayOf' call
|
|
579
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
580
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
581
|
+
var tmp$ret$8 = [];
|
|
582
|
+
// Inline function 'kotlin.arrayOf' call
|
|
583
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
584
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
585
|
+
var tmp_4 = [tmp_2, ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.OpenAIEndpoint.Responses', tmp_3, tmp$ret$8)];
|
|
586
|
+
// Inline function 'kotlin.arrayOf' call
|
|
587
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
588
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
589
|
+
var tmp$ret$14 = [];
|
|
590
|
+
return SealedClassSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.OpenAIEndpoint', tmp, tmp_0, tmp_4, tmp$ret$14);
|
|
591
|
+
}
|
|
592
|
+
function Completions() {
|
|
593
|
+
Completions_instance = this;
|
|
594
|
+
OpenAIEndpoint.call(this, 'openai-endpoint-chat-completions');
|
|
595
|
+
var tmp = this;
|
|
596
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
597
|
+
tmp.q3g_1 = lazy(tmp_0, LLMCapability$OpenAIEndpoint$Completions$_anonymous__8qiqvy);
|
|
598
|
+
}
|
|
599
|
+
protoOf(Completions).q1j = function () {
|
|
600
|
+
return _get_$cachedSerializer__te6jhj_17(this);
|
|
601
|
+
};
|
|
602
|
+
protoOf(Completions).o17 = function (typeParamsSerializers) {
|
|
603
|
+
return this.q1j();
|
|
604
|
+
};
|
|
605
|
+
protoOf(Completions).toString = function () {
|
|
606
|
+
return 'Completions';
|
|
607
|
+
};
|
|
608
|
+
protoOf(Completions).hashCode = function () {
|
|
609
|
+
return -128781672;
|
|
610
|
+
};
|
|
611
|
+
protoOf(Completions).equals = function (other) {
|
|
612
|
+
if (this === other)
|
|
613
|
+
return true;
|
|
614
|
+
if (!(other instanceof Completions))
|
|
615
|
+
return false;
|
|
616
|
+
other instanceof Completions || THROW_CCE();
|
|
617
|
+
return true;
|
|
618
|
+
};
|
|
619
|
+
var Completions_instance;
|
|
620
|
+
function Completions_getInstance() {
|
|
621
|
+
if (Completions_instance == null)
|
|
622
|
+
new Completions();
|
|
623
|
+
return Completions_instance;
|
|
624
|
+
}
|
|
625
|
+
function Responses() {
|
|
626
|
+
Responses_instance = this;
|
|
627
|
+
OpenAIEndpoint.call(this, 'openai-endpoint-responses');
|
|
628
|
+
var tmp = this;
|
|
629
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
630
|
+
tmp.t3g_1 = lazy(tmp_0, LLMCapability$OpenAIEndpoint$Responses$_anonymous__68df8j);
|
|
631
|
+
}
|
|
632
|
+
protoOf(Responses).q1j = function () {
|
|
633
|
+
return _get_$cachedSerializer__te6jhj_18(this);
|
|
634
|
+
};
|
|
635
|
+
protoOf(Responses).o17 = function (typeParamsSerializers) {
|
|
636
|
+
return this.q1j();
|
|
637
|
+
};
|
|
638
|
+
protoOf(Responses).toString = function () {
|
|
639
|
+
return 'Responses';
|
|
640
|
+
};
|
|
641
|
+
protoOf(Responses).hashCode = function () {
|
|
642
|
+
return 1042709267;
|
|
643
|
+
};
|
|
644
|
+
protoOf(Responses).equals = function (other) {
|
|
645
|
+
if (this === other)
|
|
646
|
+
return true;
|
|
647
|
+
if (!(other instanceof Responses))
|
|
648
|
+
return false;
|
|
649
|
+
other instanceof Responses || THROW_CCE();
|
|
650
|
+
return true;
|
|
651
|
+
};
|
|
652
|
+
var Responses_instance;
|
|
653
|
+
function Responses_getInstance() {
|
|
654
|
+
if (Responses_instance == null)
|
|
655
|
+
new Responses();
|
|
656
|
+
return Responses_instance;
|
|
657
|
+
}
|
|
658
|
+
function Companion_2() {
|
|
659
|
+
Companion_instance_2 = this;
|
|
660
|
+
var tmp = this;
|
|
661
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
662
|
+
tmp.u3g_1 = lazy(tmp_0, LLMCapability$OpenAIEndpoint$Companion$_anonymous__p7i27d);
|
|
663
|
+
}
|
|
664
|
+
protoOf(Companion_2).q1j = function () {
|
|
665
|
+
return _get_$cachedSerializer__te6jhj_19(this);
|
|
666
|
+
};
|
|
667
|
+
protoOf(Companion_2).o17 = function (typeParamsSerializers) {
|
|
668
|
+
return this.q1j();
|
|
669
|
+
};
|
|
670
|
+
var Companion_instance_2;
|
|
671
|
+
function Companion_getInstance_2() {
|
|
672
|
+
if (Companion_instance_2 == null)
|
|
673
|
+
new Companion_2();
|
|
674
|
+
return Companion_instance_2;
|
|
675
|
+
}
|
|
676
|
+
function _get_$cachedSerializer__te6jhj_20($this) {
|
|
677
|
+
return $this.v3g_1.b1();
|
|
678
|
+
}
|
|
679
|
+
function LLMCapability$Companion$_anonymous__c5v6ay() {
|
|
680
|
+
var tmp = getKClass(LLMCapability);
|
|
681
|
+
// Inline function 'kotlin.arrayOf' call
|
|
682
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
683
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
684
|
+
var tmp_0 = [getKClass(Audio), getKClass(Completion), getKClass(Document), getKClass(Embed), getKClass(Moderation), getKClass(MultipleChoices), getKClass(Completions), getKClass(Responses), getKClass(PromptCaching), getKClass(Basic), getKClass(Standard), getKClass(Speculation), getKClass(Temperature), getKClass(ToolChoice), getKClass(Tools), getKClass(Image), getKClass(Video)];
|
|
685
|
+
var tmp_1 = Audio_getInstance();
|
|
686
|
+
// Inline function 'kotlin.arrayOf' call
|
|
687
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
688
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
689
|
+
var tmp$ret$5 = [];
|
|
690
|
+
var tmp_2 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Audio', tmp_1, tmp$ret$5);
|
|
691
|
+
var tmp_3 = Completion_getInstance();
|
|
692
|
+
// Inline function 'kotlin.arrayOf' call
|
|
693
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
694
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
695
|
+
var tmp$ret$8 = [];
|
|
696
|
+
var tmp_4 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Completion', tmp_3, tmp$ret$8);
|
|
697
|
+
var tmp_5 = Document_getInstance();
|
|
698
|
+
// Inline function 'kotlin.arrayOf' call
|
|
699
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
700
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
701
|
+
var tmp$ret$11 = [];
|
|
702
|
+
var tmp_6 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Document', tmp_5, tmp$ret$11);
|
|
703
|
+
var tmp_7 = Embed_getInstance();
|
|
704
|
+
// Inline function 'kotlin.arrayOf' call
|
|
705
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
706
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
707
|
+
var tmp$ret$14 = [];
|
|
708
|
+
var tmp_8 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Embed', tmp_7, tmp$ret$14);
|
|
709
|
+
var tmp_9 = Moderation_getInstance();
|
|
710
|
+
// Inline function 'kotlin.arrayOf' call
|
|
711
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
712
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
713
|
+
var tmp$ret$17 = [];
|
|
714
|
+
var tmp_10 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Moderation', tmp_9, tmp$ret$17);
|
|
715
|
+
var tmp_11 = MultipleChoices_getInstance();
|
|
716
|
+
// Inline function 'kotlin.arrayOf' call
|
|
717
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
718
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
719
|
+
var tmp$ret$20 = [];
|
|
720
|
+
var tmp_12 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.MultipleChoices', tmp_11, tmp$ret$20);
|
|
721
|
+
var tmp_13 = Completions_getInstance();
|
|
722
|
+
// Inline function 'kotlin.arrayOf' call
|
|
723
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
724
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
725
|
+
var tmp$ret$23 = [];
|
|
726
|
+
var tmp_14 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.OpenAIEndpoint.Completions', tmp_13, tmp$ret$23);
|
|
727
|
+
var tmp_15 = Responses_getInstance();
|
|
728
|
+
// Inline function 'kotlin.arrayOf' call
|
|
729
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
730
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
731
|
+
var tmp$ret$26 = [];
|
|
732
|
+
var tmp_16 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.OpenAIEndpoint.Responses', tmp_15, tmp$ret$26);
|
|
733
|
+
var tmp_17 = PromptCaching_getInstance();
|
|
734
|
+
// Inline function 'kotlin.arrayOf' call
|
|
735
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
736
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
737
|
+
var tmp$ret$29 = [];
|
|
738
|
+
var tmp_18 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.PromptCaching', tmp_17, tmp$ret$29);
|
|
739
|
+
var tmp_19 = Basic_getInstance();
|
|
740
|
+
// Inline function 'kotlin.arrayOf' call
|
|
741
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
742
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
743
|
+
var tmp$ret$32 = [];
|
|
744
|
+
var tmp_20 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Basic', tmp_19, tmp$ret$32);
|
|
745
|
+
var tmp_21 = Standard_getInstance();
|
|
746
|
+
// Inline function 'kotlin.arrayOf' call
|
|
747
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
748
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
749
|
+
var tmp$ret$35 = [];
|
|
750
|
+
var tmp_22 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Schema.JSON.Standard', tmp_21, tmp$ret$35);
|
|
751
|
+
var tmp_23 = Speculation_getInstance();
|
|
752
|
+
// Inline function 'kotlin.arrayOf' call
|
|
753
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
754
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
755
|
+
var tmp$ret$38 = [];
|
|
756
|
+
var tmp_24 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Speculation', tmp_23, tmp$ret$38);
|
|
757
|
+
var tmp_25 = Temperature_getInstance();
|
|
758
|
+
// Inline function 'kotlin.arrayOf' call
|
|
759
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
760
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
761
|
+
var tmp$ret$41 = [];
|
|
762
|
+
var tmp_26 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Temperature', tmp_25, tmp$ret$41);
|
|
763
|
+
var tmp_27 = ToolChoice_getInstance();
|
|
764
|
+
// Inline function 'kotlin.arrayOf' call
|
|
765
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
766
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
767
|
+
var tmp$ret$44 = [];
|
|
768
|
+
var tmp_28 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.ToolChoice', tmp_27, tmp$ret$44);
|
|
769
|
+
var tmp_29 = Tools_getInstance();
|
|
770
|
+
// Inline function 'kotlin.arrayOf' call
|
|
771
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
772
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
773
|
+
var tmp$ret$47 = [];
|
|
774
|
+
var tmp_30 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Tools', tmp_29, tmp$ret$47);
|
|
775
|
+
var tmp_31 = Image_getInstance();
|
|
776
|
+
// Inline function 'kotlin.arrayOf' call
|
|
777
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
778
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
779
|
+
var tmp$ret$50 = [];
|
|
780
|
+
var tmp_32 = ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Vision.Image', tmp_31, tmp$ret$50);
|
|
781
|
+
var tmp_33 = Video_getInstance();
|
|
782
|
+
// Inline function 'kotlin.arrayOf' call
|
|
783
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
784
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
785
|
+
var tmp$ret$53 = [];
|
|
786
|
+
// Inline function 'kotlin.arrayOf' call
|
|
787
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
788
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
789
|
+
var tmp_34 = [tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp_12, tmp_14, tmp_16, tmp_18, tmp_20, tmp_22, tmp_24, tmp_26, tmp_28, tmp_30, tmp_32, ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability.Vision.Video', tmp_33, tmp$ret$53)];
|
|
790
|
+
// Inline function 'kotlin.arrayOf' call
|
|
791
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
792
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
793
|
+
var tmp$ret$59 = [];
|
|
794
|
+
return SealedClassSerializer_init_$Create$('ai.koog.prompt.llm.LLMCapability', tmp, tmp_0, tmp_34, tmp$ret$59);
|
|
795
|
+
}
|
|
796
|
+
function Speculation() {
|
|
797
|
+
Speculation_instance = this;
|
|
798
|
+
LLMCapability.call(this, 'speculation');
|
|
799
|
+
var tmp = this;
|
|
800
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
801
|
+
tmp.z3e_1 = lazy(tmp_0, LLMCapability$Speculation$_anonymous__dmi0nn);
|
|
802
|
+
}
|
|
803
|
+
protoOf(Speculation).q1j = function () {
|
|
804
|
+
return _get_$cachedSerializer__te6jhj(this);
|
|
805
|
+
};
|
|
806
|
+
protoOf(Speculation).o17 = function (typeParamsSerializers) {
|
|
807
|
+
return this.q1j();
|
|
808
|
+
};
|
|
809
|
+
protoOf(Speculation).toString = function () {
|
|
810
|
+
return 'Speculation';
|
|
811
|
+
};
|
|
812
|
+
protoOf(Speculation).hashCode = function () {
|
|
813
|
+
return 1981158715;
|
|
814
|
+
};
|
|
815
|
+
protoOf(Speculation).equals = function (other) {
|
|
816
|
+
if (this === other)
|
|
817
|
+
return true;
|
|
818
|
+
if (!(other instanceof Speculation))
|
|
819
|
+
return false;
|
|
820
|
+
other instanceof Speculation || THROW_CCE();
|
|
821
|
+
return true;
|
|
822
|
+
};
|
|
823
|
+
var Speculation_instance;
|
|
824
|
+
function Speculation_getInstance() {
|
|
825
|
+
if (Speculation_instance == null)
|
|
826
|
+
new Speculation();
|
|
827
|
+
return Speculation_instance;
|
|
828
|
+
}
|
|
829
|
+
function Temperature() {
|
|
830
|
+
Temperature_instance = this;
|
|
831
|
+
LLMCapability.call(this, 'temperature');
|
|
832
|
+
var tmp = this;
|
|
833
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
834
|
+
tmp.b3f_1 = lazy(tmp_0, LLMCapability$Temperature$_anonymous__l991fm);
|
|
835
|
+
}
|
|
836
|
+
protoOf(Temperature).q1j = function () {
|
|
837
|
+
return _get_$cachedSerializer__te6jhj_0(this);
|
|
838
|
+
};
|
|
839
|
+
protoOf(Temperature).o17 = function (typeParamsSerializers) {
|
|
840
|
+
return this.q1j();
|
|
841
|
+
};
|
|
842
|
+
protoOf(Temperature).toString = function () {
|
|
843
|
+
return 'Temperature';
|
|
844
|
+
};
|
|
845
|
+
protoOf(Temperature).hashCode = function () {
|
|
846
|
+
return 809449484;
|
|
847
|
+
};
|
|
848
|
+
protoOf(Temperature).equals = function (other) {
|
|
849
|
+
if (this === other)
|
|
850
|
+
return true;
|
|
851
|
+
if (!(other instanceof Temperature))
|
|
852
|
+
return false;
|
|
853
|
+
other instanceof Temperature || THROW_CCE();
|
|
854
|
+
return true;
|
|
855
|
+
};
|
|
856
|
+
var Temperature_instance;
|
|
857
|
+
function Temperature_getInstance() {
|
|
858
|
+
if (Temperature_instance == null)
|
|
859
|
+
new Temperature();
|
|
860
|
+
return Temperature_instance;
|
|
861
|
+
}
|
|
862
|
+
function Tools() {
|
|
863
|
+
Tools_instance = this;
|
|
864
|
+
LLMCapability.call(this, 'tools');
|
|
865
|
+
var tmp = this;
|
|
866
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
867
|
+
tmp.d3f_1 = lazy(tmp_0, LLMCapability$Tools$_anonymous__qu2w9n);
|
|
868
|
+
}
|
|
869
|
+
protoOf(Tools).q1j = function () {
|
|
870
|
+
return _get_$cachedSerializer__te6jhj_1(this);
|
|
871
|
+
};
|
|
872
|
+
protoOf(Tools).o17 = function (typeParamsSerializers) {
|
|
873
|
+
return this.q1j();
|
|
874
|
+
};
|
|
875
|
+
protoOf(Tools).toString = function () {
|
|
876
|
+
return 'Tools';
|
|
877
|
+
};
|
|
878
|
+
protoOf(Tools).hashCode = function () {
|
|
879
|
+
return 884543091;
|
|
880
|
+
};
|
|
881
|
+
protoOf(Tools).equals = function (other) {
|
|
882
|
+
if (this === other)
|
|
883
|
+
return true;
|
|
884
|
+
if (!(other instanceof Tools))
|
|
885
|
+
return false;
|
|
886
|
+
other instanceof Tools || THROW_CCE();
|
|
887
|
+
return true;
|
|
888
|
+
};
|
|
889
|
+
var Tools_instance;
|
|
890
|
+
function Tools_getInstance() {
|
|
891
|
+
if (Tools_instance == null)
|
|
892
|
+
new Tools();
|
|
893
|
+
return Tools_instance;
|
|
894
|
+
}
|
|
895
|
+
function ToolChoice() {
|
|
896
|
+
ToolChoice_instance = this;
|
|
897
|
+
LLMCapability.call(this, 'toolChoice');
|
|
898
|
+
var tmp = this;
|
|
899
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
900
|
+
tmp.f3f_1 = lazy(tmp_0, LLMCapability$ToolChoice$_anonymous__mihvi9);
|
|
901
|
+
}
|
|
902
|
+
protoOf(ToolChoice).q1j = function () {
|
|
903
|
+
return _get_$cachedSerializer__te6jhj_2(this);
|
|
904
|
+
};
|
|
905
|
+
protoOf(ToolChoice).o17 = function (typeParamsSerializers) {
|
|
906
|
+
return this.q1j();
|
|
907
|
+
};
|
|
908
|
+
protoOf(ToolChoice).toString = function () {
|
|
909
|
+
return 'ToolChoice';
|
|
910
|
+
};
|
|
911
|
+
protoOf(ToolChoice).hashCode = function () {
|
|
912
|
+
return 855768001;
|
|
913
|
+
};
|
|
914
|
+
protoOf(ToolChoice).equals = function (other) {
|
|
915
|
+
if (this === other)
|
|
916
|
+
return true;
|
|
917
|
+
if (!(other instanceof ToolChoice))
|
|
918
|
+
return false;
|
|
919
|
+
other instanceof ToolChoice || THROW_CCE();
|
|
920
|
+
return true;
|
|
921
|
+
};
|
|
922
|
+
var ToolChoice_instance;
|
|
923
|
+
function ToolChoice_getInstance() {
|
|
924
|
+
if (ToolChoice_instance == null)
|
|
925
|
+
new ToolChoice();
|
|
926
|
+
return ToolChoice_instance;
|
|
927
|
+
}
|
|
928
|
+
function MultipleChoices() {
|
|
929
|
+
MultipleChoices_instance = this;
|
|
930
|
+
LLMCapability.call(this, 'multipleChoices');
|
|
931
|
+
var tmp = this;
|
|
932
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
933
|
+
tmp.h3f_1 = lazy(tmp_0, LLMCapability$MultipleChoices$_anonymous__r4ki44);
|
|
934
|
+
}
|
|
935
|
+
protoOf(MultipleChoices).q1j = function () {
|
|
936
|
+
return _get_$cachedSerializer__te6jhj_3(this);
|
|
937
|
+
};
|
|
938
|
+
protoOf(MultipleChoices).o17 = function (typeParamsSerializers) {
|
|
939
|
+
return this.q1j();
|
|
940
|
+
};
|
|
941
|
+
protoOf(MultipleChoices).toString = function () {
|
|
942
|
+
return 'MultipleChoices';
|
|
943
|
+
};
|
|
944
|
+
protoOf(MultipleChoices).hashCode = function () {
|
|
945
|
+
return 908180826;
|
|
946
|
+
};
|
|
947
|
+
protoOf(MultipleChoices).equals = function (other) {
|
|
948
|
+
if (this === other)
|
|
949
|
+
return true;
|
|
950
|
+
if (!(other instanceof MultipleChoices))
|
|
951
|
+
return false;
|
|
952
|
+
other instanceof MultipleChoices || THROW_CCE();
|
|
953
|
+
return true;
|
|
954
|
+
};
|
|
955
|
+
var MultipleChoices_instance;
|
|
956
|
+
function MultipleChoices_getInstance() {
|
|
957
|
+
if (MultipleChoices_instance == null)
|
|
958
|
+
new MultipleChoices();
|
|
959
|
+
return MultipleChoices_instance;
|
|
960
|
+
}
|
|
961
|
+
function Vision(visionType) {
|
|
962
|
+
Companion_getInstance();
|
|
963
|
+
LLMCapability.call(this, visionType);
|
|
964
|
+
this.x3g_1 = visionType;
|
|
965
|
+
}
|
|
966
|
+
function Audio() {
|
|
967
|
+
Audio_instance = this;
|
|
968
|
+
LLMCapability.call(this, 'audio');
|
|
969
|
+
var tmp = this;
|
|
970
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
971
|
+
tmp.q3f_1 = lazy(tmp_0, LLMCapability$Audio$_anonymous__m6wcbk);
|
|
972
|
+
}
|
|
973
|
+
protoOf(Audio).q1j = function () {
|
|
974
|
+
return _get_$cachedSerializer__te6jhj_7(this);
|
|
975
|
+
};
|
|
976
|
+
protoOf(Audio).o17 = function (typeParamsSerializers) {
|
|
977
|
+
return this.q1j();
|
|
978
|
+
};
|
|
979
|
+
protoOf(Audio).toString = function () {
|
|
980
|
+
return 'Audio';
|
|
981
|
+
};
|
|
982
|
+
protoOf(Audio).hashCode = function () {
|
|
983
|
+
return 867164270;
|
|
984
|
+
};
|
|
985
|
+
protoOf(Audio).equals = function (other) {
|
|
986
|
+
if (this === other)
|
|
987
|
+
return true;
|
|
988
|
+
if (!(other instanceof Audio))
|
|
989
|
+
return false;
|
|
990
|
+
other instanceof Audio || THROW_CCE();
|
|
991
|
+
return true;
|
|
992
|
+
};
|
|
993
|
+
var Audio_instance;
|
|
994
|
+
function Audio_getInstance() {
|
|
995
|
+
if (Audio_instance == null)
|
|
996
|
+
new Audio();
|
|
997
|
+
return Audio_instance;
|
|
998
|
+
}
|
|
999
|
+
function Document() {
|
|
1000
|
+
Document_instance = this;
|
|
1001
|
+
LLMCapability.call(this, 'document');
|
|
1002
|
+
var tmp = this;
|
|
1003
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1004
|
+
tmp.s3f_1 = lazy(tmp_0, LLMCapability$Document$_anonymous__qyszer);
|
|
1005
|
+
}
|
|
1006
|
+
protoOf(Document).q1j = function () {
|
|
1007
|
+
return _get_$cachedSerializer__te6jhj_8(this);
|
|
1008
|
+
};
|
|
1009
|
+
protoOf(Document).o17 = function (typeParamsSerializers) {
|
|
1010
|
+
return this.q1j();
|
|
1011
|
+
};
|
|
1012
|
+
protoOf(Document).toString = function () {
|
|
1013
|
+
return 'Document';
|
|
1014
|
+
};
|
|
1015
|
+
protoOf(Document).hashCode = function () {
|
|
1016
|
+
return -651614845;
|
|
1017
|
+
};
|
|
1018
|
+
protoOf(Document).equals = function (other) {
|
|
1019
|
+
if (this === other)
|
|
1020
|
+
return true;
|
|
1021
|
+
if (!(other instanceof Document))
|
|
1022
|
+
return false;
|
|
1023
|
+
other instanceof Document || THROW_CCE();
|
|
1024
|
+
return true;
|
|
1025
|
+
};
|
|
1026
|
+
var Document_instance;
|
|
1027
|
+
function Document_getInstance() {
|
|
1028
|
+
if (Document_instance == null)
|
|
1029
|
+
new Document();
|
|
1030
|
+
return Document_instance;
|
|
1031
|
+
}
|
|
1032
|
+
function Embed() {
|
|
1033
|
+
Embed_instance = this;
|
|
1034
|
+
LLMCapability.call(this, 'embed');
|
|
1035
|
+
var tmp = this;
|
|
1036
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1037
|
+
tmp.u3f_1 = lazy(tmp_0, LLMCapability$Embed$_anonymous__trunmr);
|
|
1038
|
+
}
|
|
1039
|
+
protoOf(Embed).q1j = function () {
|
|
1040
|
+
return _get_$cachedSerializer__te6jhj_9(this);
|
|
1041
|
+
};
|
|
1042
|
+
protoOf(Embed).o17 = function (typeParamsSerializers) {
|
|
1043
|
+
return this.q1j();
|
|
1044
|
+
};
|
|
1045
|
+
protoOf(Embed).toString = function () {
|
|
1046
|
+
return 'Embed';
|
|
1047
|
+
};
|
|
1048
|
+
protoOf(Embed).hashCode = function () {
|
|
1049
|
+
return 870617969;
|
|
1050
|
+
};
|
|
1051
|
+
protoOf(Embed).equals = function (other) {
|
|
1052
|
+
if (this === other)
|
|
1053
|
+
return true;
|
|
1054
|
+
if (!(other instanceof Embed))
|
|
1055
|
+
return false;
|
|
1056
|
+
other instanceof Embed || THROW_CCE();
|
|
1057
|
+
return true;
|
|
1058
|
+
};
|
|
1059
|
+
var Embed_instance;
|
|
1060
|
+
function Embed_getInstance() {
|
|
1061
|
+
if (Embed_instance == null)
|
|
1062
|
+
new Embed();
|
|
1063
|
+
return Embed_instance;
|
|
1064
|
+
}
|
|
1065
|
+
function Completion() {
|
|
1066
|
+
Completion_instance = this;
|
|
1067
|
+
LLMCapability.call(this, 'completion');
|
|
1068
|
+
var tmp = this;
|
|
1069
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1070
|
+
tmp.w3f_1 = lazy(tmp_0, LLMCapability$Completion$_anonymous__l4aypo);
|
|
1071
|
+
}
|
|
1072
|
+
protoOf(Completion).q1j = function () {
|
|
1073
|
+
return _get_$cachedSerializer__te6jhj_10(this);
|
|
1074
|
+
};
|
|
1075
|
+
protoOf(Completion).o17 = function (typeParamsSerializers) {
|
|
1076
|
+
return this.q1j();
|
|
1077
|
+
};
|
|
1078
|
+
protoOf(Completion).toString = function () {
|
|
1079
|
+
return 'Completion';
|
|
1080
|
+
};
|
|
1081
|
+
protoOf(Completion).hashCode = function () {
|
|
1082
|
+
return 1137098308;
|
|
1083
|
+
};
|
|
1084
|
+
protoOf(Completion).equals = function (other) {
|
|
1085
|
+
if (this === other)
|
|
1086
|
+
return true;
|
|
1087
|
+
if (!(other instanceof Completion))
|
|
1088
|
+
return false;
|
|
1089
|
+
other instanceof Completion || THROW_CCE();
|
|
1090
|
+
return true;
|
|
1091
|
+
};
|
|
1092
|
+
var Completion_instance;
|
|
1093
|
+
function Completion_getInstance() {
|
|
1094
|
+
if (Completion_instance == null)
|
|
1095
|
+
new Completion();
|
|
1096
|
+
return Completion_instance;
|
|
1097
|
+
}
|
|
1098
|
+
function PromptCaching() {
|
|
1099
|
+
PromptCaching_instance = this;
|
|
1100
|
+
LLMCapability.call(this, 'promptCaching');
|
|
1101
|
+
var tmp = this;
|
|
1102
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1103
|
+
tmp.y3f_1 = lazy(tmp_0, LLMCapability$PromptCaching$_anonymous__15a9s5);
|
|
1104
|
+
}
|
|
1105
|
+
protoOf(PromptCaching).q1j = function () {
|
|
1106
|
+
return _get_$cachedSerializer__te6jhj_11(this);
|
|
1107
|
+
};
|
|
1108
|
+
protoOf(PromptCaching).o17 = function (typeParamsSerializers) {
|
|
1109
|
+
return this.q1j();
|
|
1110
|
+
};
|
|
1111
|
+
protoOf(PromptCaching).toString = function () {
|
|
1112
|
+
return 'PromptCaching';
|
|
1113
|
+
};
|
|
1114
|
+
protoOf(PromptCaching).hashCode = function () {
|
|
1115
|
+
return -293484973;
|
|
1116
|
+
};
|
|
1117
|
+
protoOf(PromptCaching).equals = function (other) {
|
|
1118
|
+
if (this === other)
|
|
1119
|
+
return true;
|
|
1120
|
+
if (!(other instanceof PromptCaching))
|
|
1121
|
+
return false;
|
|
1122
|
+
other instanceof PromptCaching || THROW_CCE();
|
|
1123
|
+
return true;
|
|
1124
|
+
};
|
|
1125
|
+
var PromptCaching_instance;
|
|
1126
|
+
function PromptCaching_getInstance() {
|
|
1127
|
+
if (PromptCaching_instance == null)
|
|
1128
|
+
new PromptCaching();
|
|
1129
|
+
return PromptCaching_instance;
|
|
1130
|
+
}
|
|
1131
|
+
function Moderation() {
|
|
1132
|
+
Moderation_instance = this;
|
|
1133
|
+
LLMCapability.call(this, 'moderation');
|
|
1134
|
+
var tmp = this;
|
|
1135
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1136
|
+
tmp.a3g_1 = lazy(tmp_0, LLMCapability$Moderation$_anonymous__mzol5a);
|
|
1137
|
+
}
|
|
1138
|
+
protoOf(Moderation).q1j = function () {
|
|
1139
|
+
return _get_$cachedSerializer__te6jhj_12(this);
|
|
1140
|
+
};
|
|
1141
|
+
protoOf(Moderation).o17 = function (typeParamsSerializers) {
|
|
1142
|
+
return this.q1j();
|
|
1143
|
+
};
|
|
1144
|
+
protoOf(Moderation).toString = function () {
|
|
1145
|
+
return 'Moderation';
|
|
1146
|
+
};
|
|
1147
|
+
protoOf(Moderation).hashCode = function () {
|
|
1148
|
+
return -337985650;
|
|
1149
|
+
};
|
|
1150
|
+
protoOf(Moderation).equals = function (other) {
|
|
1151
|
+
if (this === other)
|
|
1152
|
+
return true;
|
|
1153
|
+
if (!(other instanceof Moderation))
|
|
1154
|
+
return false;
|
|
1155
|
+
other instanceof Moderation || THROW_CCE();
|
|
1156
|
+
return true;
|
|
1157
|
+
};
|
|
1158
|
+
var Moderation_instance;
|
|
1159
|
+
function Moderation_getInstance() {
|
|
1160
|
+
if (Moderation_instance == null)
|
|
1161
|
+
new Moderation();
|
|
1162
|
+
return Moderation_instance;
|
|
1163
|
+
}
|
|
1164
|
+
function Schema(lang) {
|
|
1165
|
+
Companion_getInstance_1();
|
|
1166
|
+
LLMCapability.call(this, lang + '-schema');
|
|
1167
|
+
this.z3g_1 = lang;
|
|
1168
|
+
}
|
|
1169
|
+
function OpenAIEndpoint(endpoint) {
|
|
1170
|
+
Companion_getInstance_2();
|
|
1171
|
+
LLMCapability.call(this, endpoint);
|
|
1172
|
+
this.b3h_1 = endpoint;
|
|
1173
|
+
}
|
|
1174
|
+
function Companion_3() {
|
|
1175
|
+
Companion_instance_3 = this;
|
|
1176
|
+
var tmp = this;
|
|
1177
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1178
|
+
tmp.v3g_1 = lazy(tmp_0, LLMCapability$Companion$_anonymous__c5v6ay);
|
|
1179
|
+
}
|
|
1180
|
+
protoOf(Companion_3).q1j = function () {
|
|
1181
|
+
return _get_$cachedSerializer__te6jhj_20(this);
|
|
1182
|
+
};
|
|
1183
|
+
protoOf(Companion_3).o17 = function (typeParamsSerializers) {
|
|
1184
|
+
return this.q1j();
|
|
1185
|
+
};
|
|
1186
|
+
var Companion_instance_3;
|
|
1187
|
+
function Companion_getInstance_3() {
|
|
1188
|
+
if (Companion_instance_3 == null)
|
|
1189
|
+
new Companion_3();
|
|
1190
|
+
return Companion_instance_3;
|
|
1191
|
+
}
|
|
1192
|
+
function LLMCapability(id) {
|
|
1193
|
+
Companion_getInstance_3();
|
|
1194
|
+
this.c3h_1 = id;
|
|
1195
|
+
}
|
|
1196
|
+
function _get_$cachedSerializer__te6jhj_21($this) {
|
|
1197
|
+
return $this.f3h_1.b1();
|
|
1198
|
+
}
|
|
1199
|
+
function LLMProvider$Google$_anonymous__cw2wew() {
|
|
1200
|
+
var tmp = Google_getInstance();
|
|
1201
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1202
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1203
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1204
|
+
var tmp$ret$2 = [];
|
|
1205
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMProvider.Google', tmp, tmp$ret$2);
|
|
1206
|
+
}
|
|
1207
|
+
function _get_$cachedSerializer__te6jhj_22($this) {
|
|
1208
|
+
return $this.i3h_1.b1();
|
|
1209
|
+
}
|
|
1210
|
+
function LLMProvider$OpenAI$_anonymous__7cwnrz() {
|
|
1211
|
+
var tmp = OpenAI_getInstance();
|
|
1212
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1213
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1214
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1215
|
+
var tmp$ret$2 = [];
|
|
1216
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMProvider.OpenAI', tmp, tmp$ret$2);
|
|
1217
|
+
}
|
|
1218
|
+
function _get_$cachedSerializer__te6jhj_23($this) {
|
|
1219
|
+
return $this.l3h_1.b1();
|
|
1220
|
+
}
|
|
1221
|
+
function LLMProvider$Anthropic$_anonymous__b4wzch() {
|
|
1222
|
+
var tmp = Anthropic_getInstance();
|
|
1223
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1224
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1225
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1226
|
+
var tmp$ret$2 = [];
|
|
1227
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMProvider.Anthropic', tmp, tmp$ret$2);
|
|
1228
|
+
}
|
|
1229
|
+
function _get_$cachedSerializer__te6jhj_24($this) {
|
|
1230
|
+
return $this.o3h_1.b1();
|
|
1231
|
+
}
|
|
1232
|
+
function LLMProvider$OpenRouter$_anonymous__2qsfby() {
|
|
1233
|
+
var tmp = OpenRouter_getInstance();
|
|
1234
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1235
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1236
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1237
|
+
var tmp$ret$2 = [];
|
|
1238
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMProvider.OpenRouter', tmp, tmp$ret$2);
|
|
1239
|
+
}
|
|
1240
|
+
function _get_$cachedSerializer__te6jhj_25($this) {
|
|
1241
|
+
return $this.r3h_1.b1();
|
|
1242
|
+
}
|
|
1243
|
+
function LLMProvider$Ollama$_anonymous__tzj3dh() {
|
|
1244
|
+
var tmp = Ollama_getInstance();
|
|
1245
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1246
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1247
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1248
|
+
var tmp$ret$2 = [];
|
|
1249
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMProvider.Ollama', tmp, tmp$ret$2);
|
|
1250
|
+
}
|
|
1251
|
+
function _get_$cachedSerializer__te6jhj_26($this) {
|
|
1252
|
+
return $this.u3h_1.b1();
|
|
1253
|
+
}
|
|
1254
|
+
function LLMProvider$DeepSeek$_anonymous__3mee2b() {
|
|
1255
|
+
var tmp = DeepSeek_getInstance();
|
|
1256
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1257
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1258
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1259
|
+
var tmp$ret$2 = [];
|
|
1260
|
+
return ObjectSerializer_init_$Create$('ai.koog.prompt.llm.LLMProvider.DeepSeek', tmp, tmp$ret$2);
|
|
1261
|
+
}
|
|
1262
|
+
function _get_$cachedSerializer__te6jhj_27($this) {
|
|
1263
|
+
return $this.v3h_1.b1();
|
|
1264
|
+
}
|
|
1265
|
+
function LLMProvider$Companion$_anonymous__f52l67() {
|
|
1266
|
+
var tmp = getKClass(LLMProvider);
|
|
1267
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1268
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1269
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1270
|
+
var tmp$ret$2 = [];
|
|
1271
|
+
return PolymorphicSerializer_init_$Create$(tmp, tmp$ret$2);
|
|
1272
|
+
}
|
|
1273
|
+
function Google() {
|
|
1274
|
+
Google_instance = this;
|
|
1275
|
+
LLMProvider.call(this, 'google', 'Google');
|
|
1276
|
+
var tmp = this;
|
|
1277
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1278
|
+
tmp.f3h_1 = lazy(tmp_0, LLMProvider$Google$_anonymous__cw2wew);
|
|
1279
|
+
}
|
|
1280
|
+
protoOf(Google).q1j = function () {
|
|
1281
|
+
return _get_$cachedSerializer__te6jhj_21(this);
|
|
1282
|
+
};
|
|
1283
|
+
protoOf(Google).o17 = function (typeParamsSerializers) {
|
|
1284
|
+
return this.q1j();
|
|
1285
|
+
};
|
|
1286
|
+
protoOf(Google).toString = function () {
|
|
1287
|
+
return 'Google';
|
|
1288
|
+
};
|
|
1289
|
+
protoOf(Google).hashCode = function () {
|
|
1290
|
+
return 1225939496;
|
|
1291
|
+
};
|
|
1292
|
+
protoOf(Google).equals = function (other) {
|
|
1293
|
+
if (this === other)
|
|
1294
|
+
return true;
|
|
1295
|
+
if (!(other instanceof Google))
|
|
1296
|
+
return false;
|
|
1297
|
+
other instanceof Google || THROW_CCE();
|
|
1298
|
+
return true;
|
|
1299
|
+
};
|
|
1300
|
+
var Google_instance;
|
|
1301
|
+
function Google_getInstance() {
|
|
1302
|
+
if (Google_instance == null)
|
|
1303
|
+
new Google();
|
|
1304
|
+
return Google_instance;
|
|
1305
|
+
}
|
|
1306
|
+
function OpenAI() {
|
|
1307
|
+
OpenAI_instance = this;
|
|
1308
|
+
LLMProvider.call(this, 'openai', 'OpenAI');
|
|
1309
|
+
var tmp = this;
|
|
1310
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1311
|
+
tmp.i3h_1 = lazy(tmp_0, LLMProvider$OpenAI$_anonymous__7cwnrz);
|
|
1312
|
+
}
|
|
1313
|
+
protoOf(OpenAI).q1j = function () {
|
|
1314
|
+
return _get_$cachedSerializer__te6jhj_22(this);
|
|
1315
|
+
};
|
|
1316
|
+
protoOf(OpenAI).o17 = function (typeParamsSerializers) {
|
|
1317
|
+
return this.q1j();
|
|
1318
|
+
};
|
|
1319
|
+
protoOf(OpenAI).toString = function () {
|
|
1320
|
+
return 'OpenAI';
|
|
1321
|
+
};
|
|
1322
|
+
protoOf(OpenAI).hashCode = function () {
|
|
1323
|
+
return 1455603681;
|
|
1324
|
+
};
|
|
1325
|
+
protoOf(OpenAI).equals = function (other) {
|
|
1326
|
+
if (this === other)
|
|
1327
|
+
return true;
|
|
1328
|
+
if (!(other instanceof OpenAI))
|
|
1329
|
+
return false;
|
|
1330
|
+
other instanceof OpenAI || THROW_CCE();
|
|
1331
|
+
return true;
|
|
1332
|
+
};
|
|
1333
|
+
var OpenAI_instance;
|
|
1334
|
+
function OpenAI_getInstance() {
|
|
1335
|
+
if (OpenAI_instance == null)
|
|
1336
|
+
new OpenAI();
|
|
1337
|
+
return OpenAI_instance;
|
|
1338
|
+
}
|
|
1339
|
+
function Anthropic() {
|
|
1340
|
+
Anthropic_instance = this;
|
|
1341
|
+
LLMProvider.call(this, 'anthropic', 'Anthropic');
|
|
1342
|
+
var tmp = this;
|
|
1343
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1344
|
+
tmp.l3h_1 = lazy(tmp_0, LLMProvider$Anthropic$_anonymous__b4wzch);
|
|
1345
|
+
}
|
|
1346
|
+
protoOf(Anthropic).q1j = function () {
|
|
1347
|
+
return _get_$cachedSerializer__te6jhj_23(this);
|
|
1348
|
+
};
|
|
1349
|
+
protoOf(Anthropic).o17 = function (typeParamsSerializers) {
|
|
1350
|
+
return this.q1j();
|
|
1351
|
+
};
|
|
1352
|
+
protoOf(Anthropic).toString = function () {
|
|
1353
|
+
return 'Anthropic';
|
|
1354
|
+
};
|
|
1355
|
+
protoOf(Anthropic).hashCode = function () {
|
|
1356
|
+
return -1749247715;
|
|
1357
|
+
};
|
|
1358
|
+
protoOf(Anthropic).equals = function (other) {
|
|
1359
|
+
if (this === other)
|
|
1360
|
+
return true;
|
|
1361
|
+
if (!(other instanceof Anthropic))
|
|
1362
|
+
return false;
|
|
1363
|
+
other instanceof Anthropic || THROW_CCE();
|
|
1364
|
+
return true;
|
|
1365
|
+
};
|
|
1366
|
+
var Anthropic_instance;
|
|
1367
|
+
function Anthropic_getInstance() {
|
|
1368
|
+
if (Anthropic_instance == null)
|
|
1369
|
+
new Anthropic();
|
|
1370
|
+
return Anthropic_instance;
|
|
1371
|
+
}
|
|
1372
|
+
function OpenRouter() {
|
|
1373
|
+
OpenRouter_instance = this;
|
|
1374
|
+
LLMProvider.call(this, 'openrouter', 'OpenRouter');
|
|
1375
|
+
var tmp = this;
|
|
1376
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1377
|
+
tmp.o3h_1 = lazy(tmp_0, LLMProvider$OpenRouter$_anonymous__2qsfby);
|
|
1378
|
+
}
|
|
1379
|
+
protoOf(OpenRouter).q1j = function () {
|
|
1380
|
+
return _get_$cachedSerializer__te6jhj_24(this);
|
|
1381
|
+
};
|
|
1382
|
+
protoOf(OpenRouter).o17 = function (typeParamsSerializers) {
|
|
1383
|
+
return this.q1j();
|
|
1384
|
+
};
|
|
1385
|
+
protoOf(OpenRouter).toString = function () {
|
|
1386
|
+
return 'OpenRouter';
|
|
1387
|
+
};
|
|
1388
|
+
protoOf(OpenRouter).hashCode = function () {
|
|
1389
|
+
return -721504606;
|
|
1390
|
+
};
|
|
1391
|
+
protoOf(OpenRouter).equals = function (other) {
|
|
1392
|
+
if (this === other)
|
|
1393
|
+
return true;
|
|
1394
|
+
if (!(other instanceof OpenRouter))
|
|
1395
|
+
return false;
|
|
1396
|
+
other instanceof OpenRouter || THROW_CCE();
|
|
1397
|
+
return true;
|
|
1398
|
+
};
|
|
1399
|
+
var OpenRouter_instance;
|
|
1400
|
+
function OpenRouter_getInstance() {
|
|
1401
|
+
if (OpenRouter_instance == null)
|
|
1402
|
+
new OpenRouter();
|
|
1403
|
+
return OpenRouter_instance;
|
|
1404
|
+
}
|
|
1405
|
+
function Ollama() {
|
|
1406
|
+
Ollama_instance = this;
|
|
1407
|
+
LLMProvider.call(this, 'ollama', 'Ollama');
|
|
1408
|
+
var tmp = this;
|
|
1409
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1410
|
+
tmp.r3h_1 = lazy(tmp_0, LLMProvider$Ollama$_anonymous__tzj3dh);
|
|
1411
|
+
}
|
|
1412
|
+
protoOf(Ollama).q1j = function () {
|
|
1413
|
+
return _get_$cachedSerializer__te6jhj_25(this);
|
|
1414
|
+
};
|
|
1415
|
+
protoOf(Ollama).o17 = function (typeParamsSerializers) {
|
|
1416
|
+
return this.q1j();
|
|
1417
|
+
};
|
|
1418
|
+
protoOf(Ollama).toString = function () {
|
|
1419
|
+
return 'Ollama';
|
|
1420
|
+
};
|
|
1421
|
+
protoOf(Ollama).hashCode = function () {
|
|
1422
|
+
return 1452107029;
|
|
1423
|
+
};
|
|
1424
|
+
protoOf(Ollama).equals = function (other) {
|
|
1425
|
+
if (this === other)
|
|
1426
|
+
return true;
|
|
1427
|
+
if (!(other instanceof Ollama))
|
|
1428
|
+
return false;
|
|
1429
|
+
other instanceof Ollama || THROW_CCE();
|
|
1430
|
+
return true;
|
|
1431
|
+
};
|
|
1432
|
+
var Ollama_instance;
|
|
1433
|
+
function Ollama_getInstance() {
|
|
1434
|
+
if (Ollama_instance == null)
|
|
1435
|
+
new Ollama();
|
|
1436
|
+
return Ollama_instance;
|
|
1437
|
+
}
|
|
1438
|
+
function DeepSeek() {
|
|
1439
|
+
DeepSeek_instance = this;
|
|
1440
|
+
LLMProvider.call(this, 'deepseek', 'DeepSeek');
|
|
1441
|
+
var tmp = this;
|
|
1442
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1443
|
+
tmp.u3h_1 = lazy(tmp_0, LLMProvider$DeepSeek$_anonymous__3mee2b);
|
|
1444
|
+
}
|
|
1445
|
+
protoOf(DeepSeek).q1j = function () {
|
|
1446
|
+
return _get_$cachedSerializer__te6jhj_26(this);
|
|
1447
|
+
};
|
|
1448
|
+
protoOf(DeepSeek).o17 = function (typeParamsSerializers) {
|
|
1449
|
+
return this.q1j();
|
|
1450
|
+
};
|
|
1451
|
+
protoOf(DeepSeek).toString = function () {
|
|
1452
|
+
return 'DeepSeek';
|
|
1453
|
+
};
|
|
1454
|
+
protoOf(DeepSeek).hashCode = function () {
|
|
1455
|
+
return -190470733;
|
|
1456
|
+
};
|
|
1457
|
+
protoOf(DeepSeek).equals = function (other) {
|
|
1458
|
+
if (this === other)
|
|
1459
|
+
return true;
|
|
1460
|
+
if (!(other instanceof DeepSeek))
|
|
1461
|
+
return false;
|
|
1462
|
+
other instanceof DeepSeek || THROW_CCE();
|
|
1463
|
+
return true;
|
|
1464
|
+
};
|
|
1465
|
+
var DeepSeek_instance;
|
|
1466
|
+
function DeepSeek_getInstance() {
|
|
1467
|
+
if (DeepSeek_instance == null)
|
|
1468
|
+
new DeepSeek();
|
|
1469
|
+
return DeepSeek_instance;
|
|
1470
|
+
}
|
|
1471
|
+
function Companion_4() {
|
|
1472
|
+
Companion_instance_4 = this;
|
|
1473
|
+
var tmp = this;
|
|
1474
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1475
|
+
tmp.v3h_1 = lazy(tmp_0, LLMProvider$Companion$_anonymous__f52l67);
|
|
1476
|
+
}
|
|
1477
|
+
protoOf(Companion_4).q1j = function () {
|
|
1478
|
+
return _get_$cachedSerializer__te6jhj_27(this);
|
|
1479
|
+
};
|
|
1480
|
+
protoOf(Companion_4).o17 = function (typeParamsSerializers) {
|
|
1481
|
+
return this.q1j();
|
|
1482
|
+
};
|
|
1483
|
+
var Companion_instance_4;
|
|
1484
|
+
function Companion_getInstance_4() {
|
|
1485
|
+
if (Companion_instance_4 == null)
|
|
1486
|
+
new Companion_4();
|
|
1487
|
+
return Companion_instance_4;
|
|
1488
|
+
}
|
|
1489
|
+
function LLMProvider(id, display) {
|
|
1490
|
+
Companion_getInstance_4();
|
|
1491
|
+
this.w3h_1 = id;
|
|
1492
|
+
this.x3h_1 = display;
|
|
1493
|
+
}
|
|
1494
|
+
function LLModel$Companion$$childSerializers$_anonymous__tueq0v() {
|
|
1495
|
+
return Companion_getInstance_4().q1j();
|
|
1496
|
+
}
|
|
1497
|
+
function LLModel$Companion$$childSerializers$_anonymous__tueq0v_0() {
|
|
1498
|
+
return new ArrayListSerializer(Companion_getInstance_3().q1j());
|
|
1499
|
+
}
|
|
1500
|
+
function Companion_5() {
|
|
1501
|
+
Companion_instance_5 = this;
|
|
1502
|
+
var tmp = this;
|
|
1503
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1504
|
+
var tmp_1 = lazy(tmp_0, LLModel$Companion$$childSerializers$_anonymous__tueq0v);
|
|
1505
|
+
var tmp_2 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1506
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1507
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1508
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1509
|
+
tmp.y3h_1 = [tmp_1, null, lazy(tmp_2, LLModel$Companion$$childSerializers$_anonymous__tueq0v_0), null, null];
|
|
1510
|
+
}
|
|
1511
|
+
var Companion_instance_5;
|
|
1512
|
+
function Companion_getInstance_5() {
|
|
1513
|
+
if (Companion_instance_5 == null)
|
|
1514
|
+
new Companion_5();
|
|
1515
|
+
return Companion_instance_5;
|
|
1516
|
+
}
|
|
1517
|
+
function $serializer() {
|
|
1518
|
+
$serializer_instance = this;
|
|
1519
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('ai.koog.prompt.llm.LLModel', this, 5);
|
|
1520
|
+
tmp0_serialDesc.m16('provider', false);
|
|
1521
|
+
tmp0_serialDesc.m16('id', false);
|
|
1522
|
+
tmp0_serialDesc.m16('capabilities', false);
|
|
1523
|
+
tmp0_serialDesc.m16('contextLength', false);
|
|
1524
|
+
tmp0_serialDesc.m16('maxOutputTokens', true);
|
|
1525
|
+
this.z3h_1 = tmp0_serialDesc;
|
|
1526
|
+
}
|
|
1527
|
+
protoOf($serializer).a3i = function (encoder, value) {
|
|
1528
|
+
var tmp0_desc = this.z3h_1;
|
|
1529
|
+
var tmp1_output = encoder.wy(tmp0_desc);
|
|
1530
|
+
var tmp2_cached = Companion_getInstance_5().y3h_1;
|
|
1531
|
+
tmp1_output.n10(tmp0_desc, 0, tmp2_cached[0].b1(), value.b3i_1);
|
|
1532
|
+
tmp1_output.l10(tmp0_desc, 1, value.c3i_1);
|
|
1533
|
+
tmp1_output.n10(tmp0_desc, 2, tmp2_cached[2].b1(), value.d3i_1);
|
|
1534
|
+
tmp1_output.h10(tmp0_desc, 3, value.e3i_1);
|
|
1535
|
+
if (tmp1_output.t10(tmp0_desc, 4) ? true : !(value.f3i_1 == null)) {
|
|
1536
|
+
tmp1_output.p10(tmp0_desc, 4, LongSerializer_getInstance(), value.f3i_1);
|
|
1537
|
+
}
|
|
1538
|
+
tmp1_output.xy(tmp0_desc);
|
|
1539
|
+
};
|
|
1540
|
+
protoOf($serializer).gv = function (encoder, value) {
|
|
1541
|
+
return this.a3i(encoder, value instanceof LLModel ? value : THROW_CCE());
|
|
1542
|
+
};
|
|
1543
|
+
protoOf($serializer).hv = function (decoder) {
|
|
1544
|
+
var tmp0_desc = this.z3h_1;
|
|
1545
|
+
var tmp1_flag = true;
|
|
1546
|
+
var tmp2_index = 0;
|
|
1547
|
+
var tmp3_bitMask0 = 0;
|
|
1548
|
+
var tmp4_local0 = null;
|
|
1549
|
+
var tmp5_local1 = null;
|
|
1550
|
+
var tmp6_local2 = null;
|
|
1551
|
+
var tmp7_local3 = new Long(0, 0);
|
|
1552
|
+
var tmp8_local4 = null;
|
|
1553
|
+
var tmp9_input = decoder.wy(tmp0_desc);
|
|
1554
|
+
var tmp10_cached = Companion_getInstance_5().y3h_1;
|
|
1555
|
+
if (tmp9_input.mz()) {
|
|
1556
|
+
tmp4_local0 = tmp9_input.iz(tmp0_desc, 0, tmp10_cached[0].b1(), tmp4_local0);
|
|
1557
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1558
|
+
tmp5_local1 = tmp9_input.gz(tmp0_desc, 1);
|
|
1559
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1560
|
+
tmp6_local2 = tmp9_input.iz(tmp0_desc, 2, tmp10_cached[2].b1(), tmp6_local2);
|
|
1561
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1562
|
+
tmp7_local3 = tmp9_input.cz(tmp0_desc, 3);
|
|
1563
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1564
|
+
tmp8_local4 = tmp9_input.kz(tmp0_desc, 4, LongSerializer_getInstance(), tmp8_local4);
|
|
1565
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1566
|
+
} else
|
|
1567
|
+
while (tmp1_flag) {
|
|
1568
|
+
tmp2_index = tmp9_input.nz(tmp0_desc);
|
|
1569
|
+
switch (tmp2_index) {
|
|
1570
|
+
case -1:
|
|
1571
|
+
tmp1_flag = false;
|
|
1572
|
+
break;
|
|
1573
|
+
case 0:
|
|
1574
|
+
tmp4_local0 = tmp9_input.iz(tmp0_desc, 0, tmp10_cached[0].b1(), tmp4_local0);
|
|
1575
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1576
|
+
break;
|
|
1577
|
+
case 1:
|
|
1578
|
+
tmp5_local1 = tmp9_input.gz(tmp0_desc, 1);
|
|
1579
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1580
|
+
break;
|
|
1581
|
+
case 2:
|
|
1582
|
+
tmp6_local2 = tmp9_input.iz(tmp0_desc, 2, tmp10_cached[2].b1(), tmp6_local2);
|
|
1583
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1584
|
+
break;
|
|
1585
|
+
case 3:
|
|
1586
|
+
tmp7_local3 = tmp9_input.cz(tmp0_desc, 3);
|
|
1587
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1588
|
+
break;
|
|
1589
|
+
case 4:
|
|
1590
|
+
tmp8_local4 = tmp9_input.kz(tmp0_desc, 4, LongSerializer_getInstance(), tmp8_local4);
|
|
1591
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1592
|
+
break;
|
|
1593
|
+
default:
|
|
1594
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
tmp9_input.xy(tmp0_desc);
|
|
1598
|
+
return LLModel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
|
|
1599
|
+
};
|
|
1600
|
+
protoOf($serializer).fv = function () {
|
|
1601
|
+
return this.z3h_1;
|
|
1602
|
+
};
|
|
1603
|
+
protoOf($serializer).d17 = function () {
|
|
1604
|
+
var tmp0_cached = Companion_getInstance_5().y3h_1;
|
|
1605
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1606
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1607
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1608
|
+
return [tmp0_cached[0].b1(), StringSerializer_getInstance(), tmp0_cached[2].b1(), LongSerializer_getInstance(), get_nullable(LongSerializer_getInstance())];
|
|
1609
|
+
};
|
|
1610
|
+
var $serializer_instance;
|
|
1611
|
+
function $serializer_getInstance() {
|
|
1612
|
+
if ($serializer_instance == null)
|
|
1613
|
+
new $serializer();
|
|
1614
|
+
return $serializer_instance;
|
|
1615
|
+
}
|
|
1616
|
+
function LLModel_init_$Init$(seen0, provider, id, capabilities, contextLength, maxOutputTokens, serializationConstructorMarker, $this) {
|
|
1617
|
+
if (!(15 === (15 & seen0))) {
|
|
1618
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance().z3h_1);
|
|
1619
|
+
}
|
|
1620
|
+
$this.b3i_1 = provider;
|
|
1621
|
+
$this.c3i_1 = id;
|
|
1622
|
+
$this.d3i_1 = capabilities;
|
|
1623
|
+
$this.e3i_1 = contextLength;
|
|
1624
|
+
if (0 === (seen0 & 16))
|
|
1625
|
+
$this.f3i_1 = null;
|
|
1626
|
+
else
|
|
1627
|
+
$this.f3i_1 = maxOutputTokens;
|
|
1628
|
+
return $this;
|
|
1629
|
+
}
|
|
1630
|
+
function LLModel_init_$Create$(seen0, provider, id, capabilities, contextLength, maxOutputTokens, serializationConstructorMarker) {
|
|
1631
|
+
return LLModel_init_$Init$(seen0, provider, id, capabilities, contextLength, maxOutputTokens, serializationConstructorMarker, objectCreate(protoOf(LLModel)));
|
|
1632
|
+
}
|
|
1633
|
+
function LLModel(provider, id, capabilities, contextLength, maxOutputTokens) {
|
|
1634
|
+
Companion_getInstance_5();
|
|
1635
|
+
maxOutputTokens = maxOutputTokens === VOID ? null : maxOutputTokens;
|
|
1636
|
+
this.b3i_1 = provider;
|
|
1637
|
+
this.c3i_1 = id;
|
|
1638
|
+
this.d3i_1 = capabilities;
|
|
1639
|
+
this.e3i_1 = contextLength;
|
|
1640
|
+
this.f3i_1 = maxOutputTokens;
|
|
1641
|
+
}
|
|
1642
|
+
protoOf(LLModel).g3i = function (capability) {
|
|
1643
|
+
return this.d3i_1.w(capability);
|
|
1644
|
+
};
|
|
1645
|
+
protoOf(LLModel).toString = function () {
|
|
1646
|
+
return 'LLModel(provider=' + toString(this.b3i_1) + ', id=' + this.c3i_1 + ', capabilities=' + toString(this.d3i_1) + ', contextLength=' + this.e3i_1.toString() + ', maxOutputTokens=' + toString_0(this.f3i_1) + ')';
|
|
1647
|
+
};
|
|
1648
|
+
protoOf(LLModel).hashCode = function () {
|
|
1649
|
+
var result = hashCode(this.b3i_1);
|
|
1650
|
+
result = imul(result, 31) + getStringHashCode(this.c3i_1) | 0;
|
|
1651
|
+
result = imul(result, 31) + hashCode(this.d3i_1) | 0;
|
|
1652
|
+
result = imul(result, 31) + this.e3i_1.hashCode() | 0;
|
|
1653
|
+
result = imul(result, 31) + (this.f3i_1 == null ? 0 : this.f3i_1.hashCode()) | 0;
|
|
1654
|
+
return result;
|
|
1655
|
+
};
|
|
1656
|
+
protoOf(LLModel).equals = function (other) {
|
|
1657
|
+
if (this === other)
|
|
1658
|
+
return true;
|
|
1659
|
+
if (!(other instanceof LLModel))
|
|
1660
|
+
return false;
|
|
1661
|
+
var tmp0_other_with_cast = other instanceof LLModel ? other : THROW_CCE();
|
|
1662
|
+
if (!equals(this.b3i_1, tmp0_other_with_cast.b3i_1))
|
|
1663
|
+
return false;
|
|
1664
|
+
if (!(this.c3i_1 === tmp0_other_with_cast.c3i_1))
|
|
1665
|
+
return false;
|
|
1666
|
+
if (!equals(this.d3i_1, tmp0_other_with_cast.d3i_1))
|
|
1667
|
+
return false;
|
|
1668
|
+
if (!this.e3i_1.equals(tmp0_other_with_cast.e3i_1))
|
|
1669
|
+
return false;
|
|
1670
|
+
if (!equals(this.f3i_1, tmp0_other_with_cast.f3i_1))
|
|
1671
|
+
return false;
|
|
1672
|
+
return true;
|
|
1673
|
+
};
|
|
1674
|
+
function toModelInfo(_this__u8e3s4) {
|
|
1675
|
+
return new ModelInfo(_this__u8e3s4.b3i_1.w3h_1, _this__u8e3s4.c3i_1, _this__u8e3s4.b3i_1.x3h_1, _this__u8e3s4.e3i_1, _this__u8e3s4.f3i_1);
|
|
1676
|
+
}
|
|
1677
|
+
//region block: post-declaration
|
|
1678
|
+
protoOf($serializer).e17 = typeParametersSerializers;
|
|
1679
|
+
//endregion
|
|
1680
|
+
//region block: exports
|
|
1681
|
+
_.$_$ = _.$_$ || {};
|
|
1682
|
+
_.$_$.a = LLModel;
|
|
1683
|
+
_.$_$.b = toModelInfo;
|
|
1684
|
+
_.$_$.c = Audio_getInstance;
|
|
1685
|
+
_.$_$.d = Completion_getInstance;
|
|
1686
|
+
_.$_$.e = Document_getInstance;
|
|
1687
|
+
_.$_$.f = Embed_getInstance;
|
|
1688
|
+
_.$_$.g = MultipleChoices_getInstance;
|
|
1689
|
+
_.$_$.h = Completions_getInstance;
|
|
1690
|
+
_.$_$.i = Responses_getInstance;
|
|
1691
|
+
_.$_$.j = Companion_getInstance_1;
|
|
1692
|
+
_.$_$.k = Basic_getInstance;
|
|
1693
|
+
_.$_$.l = Standard_getInstance;
|
|
1694
|
+
_.$_$.m = Speculation_getInstance;
|
|
1695
|
+
_.$_$.n = Temperature_getInstance;
|
|
1696
|
+
_.$_$.o = ToolChoice_getInstance;
|
|
1697
|
+
_.$_$.p = Tools_getInstance;
|
|
1698
|
+
_.$_$.q = Image_getInstance;
|
|
1699
|
+
_.$_$.r = Video_getInstance;
|
|
1700
|
+
_.$_$.s = Anthropic_getInstance;
|
|
1701
|
+
_.$_$.t = DeepSeek_getInstance;
|
|
1702
|
+
_.$_$.u = Google_getInstance;
|
|
1703
|
+
_.$_$.v = Ollama_getInstance;
|
|
1704
|
+
_.$_$.w = OpenAI_getInstance;
|
|
1705
|
+
_.$_$.x = OpenRouter_getInstance;
|
|
1706
|
+
//endregion
|
|
1707
|
+
return _;
|
|
1708
|
+
}));
|
|
1709
|
+
|
|
1710
|
+
//# sourceMappingURL=koog-prompt-prompt-llm.js.map
|