@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.
Files changed (173) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +7836 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  3. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
  4. package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
  5. package/Xiuper-mpp-codegraph.js +1471 -0
  6. package/Xiuper-mpp-codegraph.js.map +1 -0
  7. package/annotations.js +15 -0
  8. package/annotations.js.map +1 -0
  9. package/autodev-mpp-core.d.ts +1312 -0
  10. package/autodev-mpp-core.js +86483 -0
  11. package/autodev-mpp-core.js.map +1 -0
  12. package/kaml.js +3387 -0
  13. package/kaml.js.map +1 -0
  14. package/koog-agents-agents-core.js +22927 -0
  15. package/koog-agents-agents-core.js.map +1 -0
  16. package/koog-agents-agents-ext.js +15 -0
  17. package/koog-agents-agents-ext.js.map +1 -0
  18. package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
  19. package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
  20. package/koog-agents-agents-features-agents-features-memory.js +15 -0
  21. package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
  22. package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
  23. package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
  24. package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
  25. package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
  26. package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
  27. package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
  28. package/koog-agents-agents-features-agents-features-trace.js +15 -0
  29. package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
  30. package/koog-agents-agents-mcp.js +15 -0
  31. package/koog-agents-agents-mcp.js.map +1 -0
  32. package/koog-agents-agents-tools.js +322 -0
  33. package/koog-agents-agents-tools.js.map +1 -0
  34. package/koog-agents-agents-utils.js +232 -0
  35. package/koog-agents-agents-utils.js.map +1 -0
  36. package/koog-embeddings-embeddings-base.js +15 -0
  37. package/koog-embeddings-embeddings-base.js.map +1 -0
  38. package/koog-embeddings-embeddings-llm.js +15 -0
  39. package/koog-embeddings-embeddings-llm.js.map +1 -0
  40. package/koog-http-client-http-client-core.js +57 -0
  41. package/koog-http-client-http-client-core.js.map +1 -0
  42. package/koog-http-client-http-client-ktor.js +703 -0
  43. package/koog-http-client-http-client-ktor.js.map +1 -0
  44. package/koog-koog-agents.js +15 -0
  45. package/koog-koog-agents.js.map +1 -0
  46. package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
  47. package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
  48. package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
  49. package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
  50. package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
  51. package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
  52. package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
  53. package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
  54. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
  55. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
  56. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
  57. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
  58. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
  59. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
  60. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
  61. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
  62. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
  63. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
  64. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
  65. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
  66. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
  67. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
  68. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
  69. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
  70. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
  71. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
  72. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
  73. package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
  74. package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
  75. package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
  76. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
  77. package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
  78. package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
  79. package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
  80. package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
  81. package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
  82. package/koog-prompt-prompt-llm.js +1710 -0
  83. package/koog-prompt-prompt-llm.js.map +1 -0
  84. package/koog-prompt-prompt-markdown.js +122 -0
  85. package/koog-prompt-prompt-markdown.js.map +1 -0
  86. package/koog-prompt-prompt-model.js +5848 -0
  87. package/koog-prompt-prompt-model.js.map +1 -0
  88. package/koog-prompt-prompt-structure.js +1513 -0
  89. package/koog-prompt-prompt-structure.js.map +1 -0
  90. package/koog-prompt-prompt-tokenizer.js +15 -0
  91. package/koog-prompt-prompt-tokenizer.js.map +1 -0
  92. package/koog-prompt-prompt-xml.js +15 -0
  93. package/koog-prompt-prompt-xml.js.map +1 -0
  94. package/koog-rag-rag-base.js +15 -0
  95. package/koog-rag-rag-base.js.map +1 -0
  96. package/koog-rag-vector-storage.js +15 -0
  97. package/koog-rag-vector-storage.js.map +1 -0
  98. package/koog-utils.js +63 -0
  99. package/koog-utils.js.map +1 -0
  100. package/kotlin-kotlin-stdlib.js +18965 -0
  101. package/kotlin-kotlin-stdlib.js.map +1 -0
  102. package/kotlin-logging.js +509 -0
  103. package/kotlin-logging.js.map +1 -0
  104. package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
  105. package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
  106. package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
  107. package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
  108. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  109. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  110. package/kotlinx-atomicfu.js +259 -0
  111. package/kotlinx-atomicfu.js.map +1 -0
  112. package/kotlinx-coroutines-core.js +13742 -0
  113. package/kotlinx-coroutines-core.js.map +1 -0
  114. package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
  115. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  116. package/kotlinx-io-kotlinx-io-core.js +2892 -0
  117. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  118. package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
  119. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  120. package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
  121. package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
  122. package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
  123. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  124. package/ktor-ktor-client-content-negotiation.js +775 -0
  125. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  126. package/ktor-ktor-client-core.js +11110 -0
  127. package/ktor-ktor-client-core.js.map +1 -0
  128. package/ktor-ktor-client-logging.js +15 -0
  129. package/ktor-ktor-client-logging.js.map +1 -0
  130. package/ktor-ktor-events.js +126 -0
  131. package/ktor-ktor-events.js.map +1 -0
  132. package/ktor-ktor-http-cio.js +4257 -0
  133. package/ktor-ktor-http-cio.js.map +1 -0
  134. package/ktor-ktor-http.js +3671 -0
  135. package/ktor-ktor-http.js.map +1 -0
  136. package/ktor-ktor-io.js +4114 -0
  137. package/ktor-ktor-io.js.map +1 -0
  138. package/ktor-ktor-network.js +1399 -0
  139. package/ktor-ktor-network.js.map +1 -0
  140. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  141. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  142. package/ktor-ktor-serialization-kotlinx.js +881 -0
  143. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  144. package/ktor-ktor-serialization.js +388 -0
  145. package/ktor-ktor-serialization.js.map +1 -0
  146. package/ktor-ktor-server-cio.js +3735 -0
  147. package/ktor-ktor-server-cio.js.map +1 -0
  148. package/ktor-ktor-server-core.js +8696 -0
  149. package/ktor-ktor-server-core.js.map +1 -0
  150. package/ktor-ktor-server-sse.js +668 -0
  151. package/ktor-ktor-server-sse.js.map +1 -0
  152. package/ktor-ktor-server-websockets.js +15 -0
  153. package/ktor-ktor-server-websockets.js.map +1 -0
  154. package/ktor-ktor-sse.js +161 -0
  155. package/ktor-ktor-sse.js.map +1 -0
  156. package/ktor-ktor-utils.js +3589 -0
  157. package/ktor-ktor-utils.js.map +1 -0
  158. package/ktor-ktor-websocket-serialization.js +15 -0
  159. package/ktor-ktor-websocket-serialization.js.map +1 -0
  160. package/ktor-ktor-websockets.js +450 -0
  161. package/ktor-ktor-websockets.js.map +1 -0
  162. package/markdown.js +5174 -0
  163. package/markdown.js.map +1 -0
  164. package/okio-parent-okio.js +2628 -0
  165. package/okio-parent-okio.js.map +1 -0
  166. package/package.json +18 -0
  167. package/snakeyaml-engine-kmp.js +7079 -0
  168. package/snakeyaml-engine-kmp.js.map +1 -0
  169. package/urlencoder-urlencoder-lib.js +322 -0
  170. package/urlencoder-urlencoder-lib.js.map +1 -0
  171. package/xiuper-mpp-core.d.ts +1312 -0
  172. package/xiuper-mpp-core.js +86483 -0
  173. package/xiuper-mpp-core.js.map +1 -0
@@ -0,0 +1,15 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports);
6
+ else
7
+ globalThis['koog-agents-agents-features-agents-features-memory'] = factory(typeof globalThis['koog-agents-agents-features-agents-features-memory'] === 'undefined' ? {} : globalThis['koog-agents-agents-features-agents-features-memory']);
8
+ }(function (_) {
9
+ 'use strict';
10
+ //region block: pre-declaration
11
+ //endregion
12
+ return _;
13
+ }));
14
+
15
+ //# sourceMappingURL=koog-agents-agents-features-agents-features-memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports);
6
+ else
7
+ globalThis['koog-agents-agents-features-agents-features-opentelemetry'] = factory(typeof globalThis['koog-agents-agents-features-agents-features-opentelemetry'] === 'undefined' ? {} : globalThis['koog-agents-agents-features-agents-features-opentelemetry']);
8
+ }(function (_) {
9
+ 'use strict';
10
+ //region block: pre-declaration
11
+ //endregion
12
+ return _;
13
+ }));
14
+
15
+ //# sourceMappingURL=koog-agents-agents-features-agents-features-opentelemetry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports);
6
+ else
7
+ globalThis['koog-agents-agents-features-agents-features-snapshot'] = factory(typeof globalThis['koog-agents-agents-features-agents-features-snapshot'] === 'undefined' ? {} : globalThis['koog-agents-agents-features-agents-features-snapshot']);
8
+ }(function (_) {
9
+ 'use strict';
10
+ //region block: pre-declaration
11
+ //endregion
12
+ return _;
13
+ }));
14
+
15
+ //# sourceMappingURL=koog-agents-agents-features-agents-features-snapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports);
6
+ else
7
+ globalThis['koog-agents-agents-features-agents-features-tokenizer'] = factory(typeof globalThis['koog-agents-agents-features-agents-features-tokenizer'] === 'undefined' ? {} : globalThis['koog-agents-agents-features-agents-features-tokenizer']);
8
+ }(function (_) {
9
+ 'use strict';
10
+ //region block: pre-declaration
11
+ //endregion
12
+ return _;
13
+ }));
14
+
15
+ //# sourceMappingURL=koog-agents-agents-features-agents-features-tokenizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports);
6
+ else
7
+ globalThis['koog-agents-agents-features-agents-features-trace'] = factory(typeof globalThis['koog-agents-agents-features-agents-features-trace'] === 'undefined' ? {} : globalThis['koog-agents-agents-features-agents-features-trace']);
8
+ }(function (_) {
9
+ 'use strict';
10
+ //region block: pre-declaration
11
+ //endregion
12
+ return _;
13
+ }));
14
+
15
+ //# sourceMappingURL=koog-agents-agents-features-agents-features-trace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports);
6
+ else
7
+ globalThis['koog-agents-agents-mcp'] = factory(typeof globalThis['koog-agents-agents-mcp'] === 'undefined' ? {} : globalThis['koog-agents-agents-mcp']);
8
+ }(function (_) {
9
+ 'use strict';
10
+ //region block: pre-declaration
11
+ //endregion
12
+ return _;
13
+ }));
14
+
15
+ //# sourceMappingURL=koog-agents-agents-mcp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,322 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-json.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'koog-agents-agents-tools'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'koog-agents-agents-tools'.");
9
+ }
10
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
11
+ throw new Error("Error loading module 'koog-agents-agents-tools'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'koog-agents-agents-tools'.");
12
+ }
13
+ globalThis['koog-agents-agents-tools'] = factory(typeof globalThis['koog-agents-agents-tools'] === 'undefined' ? {} : globalThis['koog-agents-agents-tools'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-json']);
14
+ }
15
+ }(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
16
+ 'use strict';
17
+ //region block: imports
18
+ var imul = Math.imul;
19
+ var protoOf = kotlin_kotlin.$_$.we;
20
+ var KProperty1 = kotlin_kotlin.$_$.tf;
21
+ var getPropertyCallableRef = kotlin_kotlin.$_$.rd;
22
+ var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b1;
23
+ var THROW_CCE = kotlin_kotlin.$_$.zk;
24
+ var initMetadataForClass = kotlin_kotlin.$_$.ud;
25
+ var VOID = kotlin_kotlin.$_$.h;
26
+ var initMetadataForObject = kotlin_kotlin.$_$.ae;
27
+ var initMetadataForCompanion = kotlin_kotlin.$_$.vd;
28
+ var Exception = kotlin_kotlin.$_$.ok;
29
+ var defineProp = kotlin_kotlin.$_$.ld;
30
+ var emptyList = kotlin_kotlin.$_$.m8;
31
+ var toMutableList = kotlin_kotlin.$_$.mb;
32
+ var toList = kotlin_kotlin.$_$.gb;
33
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
34
+ var getStringHashCode = kotlin_kotlin.$_$.sd;
35
+ var Unit_instance = kotlin_kotlin.$_$.h6;
36
+ var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.x;
37
+ //endregion
38
+ //region block: pre-declaration
39
+ initMetadataForClass(Tool, 'Tool', VOID, VOID, VOID, [1, 2]);
40
+ initMetadataForClass(ToolParameterType, 'ToolParameterType');
41
+ initMetadataForObject(String_0, 'String', VOID, ToolParameterType);
42
+ initMetadataForObject(Integer, 'Integer', VOID, ToolParameterType);
43
+ initMetadataForObject(Float, 'Float', VOID, ToolParameterType);
44
+ initMetadataForObject(Boolean_0, 'Boolean', VOID, ToolParameterType);
45
+ initMetadataForClass(Enum, 'Enum', VOID, ToolParameterType);
46
+ initMetadataForClass(List, 'List', VOID, ToolParameterType);
47
+ initMetadataForClass(Object_0, 'Object', VOID, ToolParameterType);
48
+ initMetadataForCompanion(Companion);
49
+ initMetadataForClass(ToolException, 'ToolException', VOID, Exception);
50
+ initMetadataForCompanion(Companion_0);
51
+ initMetadataForClass(ToolRegistry, 'ToolRegistry');
52
+ initMetadataForClass(LLMDescription, 'LLMDescription');
53
+ //endregion
54
+ function Tool$_get_name_$ref_82uhrv() {
55
+ return function (p0) {
56
+ return p0.h3e();
57
+ };
58
+ }
59
+ function Tool$_get_descriptor_$ref_rzaq3t() {
60
+ return function (p0) {
61
+ return p0.fv();
62
+ };
63
+ }
64
+ function Tool() {
65
+ }
66
+ protoOf(Tool).v4e = function () {
67
+ return this.q4e_1;
68
+ };
69
+ protoOf(Tool).h3e = function () {
70
+ var tmp0 = this.r4e_1;
71
+ var tmp = KProperty1;
72
+ // Inline function 'kotlin.getValue' call
73
+ getPropertyCallableRef('name', 1, tmp, Tool$_get_name_$ref_82uhrv(), null);
74
+ return tmp0.b1();
75
+ };
76
+ protoOf(Tool).fv = function () {
77
+ var tmp0 = this.s4e_1;
78
+ var tmp = KProperty1;
79
+ // Inline function 'kotlin.getValue' call
80
+ getPropertyCallableRef('descriptor', 1, tmp, Tool$_get_descriptor_$ref_rzaq3t(), null);
81
+ return tmp0.b1();
82
+ };
83
+ protoOf(Tool).x4e = function (args, enabler, $completion) {
84
+ return this.w4e(args, $completion);
85
+ };
86
+ protoOf(Tool).y4e = function (rawArgs) {
87
+ return get_ToolJson().j1h(this.t4e(), rawArgs);
88
+ };
89
+ protoOf(Tool).z4e = function (args) {
90
+ return get_jsonObject(get_ToolJson().i1h(this.t4e(), args));
91
+ };
92
+ protoOf(Tool).a4f = function (result) {
93
+ return this.v4e().gw(this.u4e(), result);
94
+ };
95
+ protoOf(Tool).b4f = function (result) {
96
+ return this.a4f((result == null ? true : !(result == null)) ? result : THROW_CCE());
97
+ };
98
+ function String_0() {
99
+ String_instance = this;
100
+ ToolParameterType.call(this, 'STRING');
101
+ }
102
+ protoOf(String_0).toString = function () {
103
+ return 'String';
104
+ };
105
+ protoOf(String_0).hashCode = function () {
106
+ return -1619894782;
107
+ };
108
+ protoOf(String_0).equals = function (other) {
109
+ if (this === other)
110
+ return true;
111
+ if (!(other instanceof String_0))
112
+ return false;
113
+ other instanceof String_0 || THROW_CCE();
114
+ return true;
115
+ };
116
+ var String_instance;
117
+ function String_getInstance() {
118
+ if (String_instance == null)
119
+ new String_0();
120
+ return String_instance;
121
+ }
122
+ function Integer() {
123
+ Integer_instance = this;
124
+ ToolParameterType.call(this, 'INT');
125
+ }
126
+ protoOf(Integer).toString = function () {
127
+ return 'Integer';
128
+ };
129
+ protoOf(Integer).hashCode = function () {
130
+ return 867713389;
131
+ };
132
+ protoOf(Integer).equals = function (other) {
133
+ if (this === other)
134
+ return true;
135
+ if (!(other instanceof Integer))
136
+ return false;
137
+ other instanceof Integer || THROW_CCE();
138
+ return true;
139
+ };
140
+ var Integer_instance;
141
+ function Integer_getInstance() {
142
+ if (Integer_instance == null)
143
+ new Integer();
144
+ return Integer_instance;
145
+ }
146
+ function Float() {
147
+ Float_instance = this;
148
+ ToolParameterType.call(this, 'FLOAT');
149
+ }
150
+ protoOf(Float).toString = function () {
151
+ return 'Float';
152
+ };
153
+ protoOf(Float).hashCode = function () {
154
+ return -1449975221;
155
+ };
156
+ protoOf(Float).equals = function (other) {
157
+ if (this === other)
158
+ return true;
159
+ if (!(other instanceof Float))
160
+ return false;
161
+ other instanceof Float || THROW_CCE();
162
+ return true;
163
+ };
164
+ var Float_instance;
165
+ function Float_getInstance() {
166
+ if (Float_instance == null)
167
+ new Float();
168
+ return Float_instance;
169
+ }
170
+ function Boolean_0() {
171
+ Boolean_instance = this;
172
+ ToolParameterType.call(this, 'BOOLEAN');
173
+ }
174
+ protoOf(Boolean_0).toString = function () {
175
+ return 'Boolean';
176
+ };
177
+ protoOf(Boolean_0).hashCode = function () {
178
+ return -1025627049;
179
+ };
180
+ protoOf(Boolean_0).equals = function (other) {
181
+ if (this === other)
182
+ return true;
183
+ if (!(other instanceof Boolean_0))
184
+ return false;
185
+ other instanceof Boolean_0 || THROW_CCE();
186
+ return true;
187
+ };
188
+ var Boolean_instance;
189
+ function Boolean_getInstance() {
190
+ if (Boolean_instance == null)
191
+ new Boolean_0();
192
+ return Boolean_instance;
193
+ }
194
+ function Enum() {
195
+ }
196
+ function List() {
197
+ }
198
+ function Object_0() {
199
+ }
200
+ function Companion() {
201
+ }
202
+ var Companion_instance;
203
+ function Companion_getInstance() {
204
+ return Companion_instance;
205
+ }
206
+ function ToolParameterType(name) {
207
+ this.c4f_1 = name;
208
+ }
209
+ function ToolException() {
210
+ }
211
+ protoOf(ToolException).r1 = function () {
212
+ return this.d4f_1;
213
+ };
214
+ function Companion_0() {
215
+ Companion_instance_0 = this;
216
+ this.e4f_1 = new ToolRegistry(emptyList());
217
+ }
218
+ var Companion_instance_0;
219
+ function Companion_getInstance_0() {
220
+ if (Companion_instance_0 == null)
221
+ new Companion_0();
222
+ return Companion_instance_0;
223
+ }
224
+ function ToolRegistry(tools) {
225
+ Companion_getInstance_0();
226
+ tools = tools === VOID ? emptyList() : tools;
227
+ this.f4f_1 = toMutableList(tools);
228
+ }
229
+ protoOf(ToolRegistry).g4f = function () {
230
+ return toList(this.f4f_1);
231
+ };
232
+ protoOf(ToolRegistry).h4f = function (toolName) {
233
+ var tmp0 = this.g4f();
234
+ var tmp$ret$1;
235
+ $l$block: {
236
+ // Inline function 'kotlin.collections.firstOrNull' call
237
+ var _iterator__ex2g4s = tmp0.p();
238
+ while (_iterator__ex2g4s.q()) {
239
+ var element = _iterator__ex2g4s.r();
240
+ if (element.h3e() === toolName) {
241
+ tmp$ret$1 = element;
242
+ break $l$block;
243
+ }
244
+ }
245
+ tmp$ret$1 = null;
246
+ }
247
+ var tmp0_elvis_lhs = tmp$ret$1;
248
+ var tmp;
249
+ if (tmp0_elvis_lhs == null) {
250
+ throw IllegalArgumentException_init_$Create$('Tool "' + toolName + '" is not defined');
251
+ } else {
252
+ tmp = tmp0_elvis_lhs;
253
+ }
254
+ return tmp;
255
+ };
256
+ function LLMDescription(description) {
257
+ this.i4f_1 = description;
258
+ }
259
+ protoOf(LLMDescription).equals = function (other) {
260
+ if (!(other instanceof LLMDescription))
261
+ return false;
262
+ var tmp0_other_with_cast = other instanceof LLMDescription ? other : THROW_CCE();
263
+ if (!(this.i4f_1 === tmp0_other_with_cast.i4f_1))
264
+ return false;
265
+ return true;
266
+ };
267
+ protoOf(LLMDescription).hashCode = function () {
268
+ return imul(getStringHashCode('description'), 127) ^ getStringHashCode(this.i4f_1);
269
+ };
270
+ protoOf(LLMDescription).toString = function () {
271
+ return '@ai.koog.agents.core.tools.annotations.LLMDescription(' + 'description=' + this.i4f_1 + ')';
272
+ };
273
+ function get_ToolJson() {
274
+ _init_properties_ToolSerialization_kt__a0n51i();
275
+ return ToolJson;
276
+ }
277
+ var ToolJson;
278
+ function ToolJson$lambda($this$Json) {
279
+ _init_properties_ToolSerialization_kt__a0n51i();
280
+ $this$Json.c1i_1 = true;
281
+ $this$Json.a1i_1 = true;
282
+ $this$Json.b1i_1 = false;
283
+ $this$Json.l1i_1 = true;
284
+ return Unit_instance;
285
+ }
286
+ var properties_initialized_ToolSerialization_kt_uxobu0;
287
+ function _init_properties_ToolSerialization_kt__a0n51i() {
288
+ if (!properties_initialized_ToolSerialization_kt_uxobu0) {
289
+ properties_initialized_ToolSerialization_kt_uxobu0 = true;
290
+ ToolJson = Json(VOID, ToolJson$lambda);
291
+ }
292
+ }
293
+ //region block: post-declaration
294
+ defineProp(protoOf(ToolException), 'message', function () {
295
+ return this.r1();
296
+ });
297
+ //endregion
298
+ //region block: init
299
+ Companion_instance = new Companion();
300
+ //endregion
301
+ //region block: exports
302
+ _.$_$ = _.$_$ || {};
303
+ _.$_$.a = LLMDescription;
304
+ _.$_$.b = ToolException;
305
+ _.$_$.c = Boolean_0;
306
+ _.$_$.d = Enum;
307
+ _.$_$.e = Float;
308
+ _.$_$.f = Integer;
309
+ _.$_$.g = List;
310
+ _.$_$.h = Object_0;
311
+ _.$_$.i = String_0;
312
+ _.$_$.j = Tool;
313
+ _.$_$.k = Boolean_getInstance;
314
+ _.$_$.l = Float_getInstance;
315
+ _.$_$.m = Integer_getInstance;
316
+ _.$_$.n = String_getInstance;
317
+ _.$_$.o = Companion_getInstance_0;
318
+ //endregion
319
+ return _;
320
+ }));
321
+
322
+ //# sourceMappingURL=koog-agents-agents-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../admin/buildAgent/work/7a80e3842dcc30f8/agents/agents-tools/src/commonMain/kotlin/ai/koog/agents/core/tools/Tool.kt","../../../../../mpp-core/build/compileSync/js/main/productionLibrary/kotlin/src/kotlin/util/Lazy.kt","../../../../../../../../admin/buildAgent/work/7a80e3842dcc30f8/agents/agents-tools/src/commonMain/kotlin/ai/koog/agents/core/tools/ToolDescriptors.kt","../../../../../../../../admin/buildAgent/work/7a80e3842dcc30f8/agents/agents-tools/src/commonMain/kotlin/ai/koog/agents/core/tools/ToolException.kt","../../../../../../../../admin/buildAgent/work/7a80e3842dcc30f8/agents/agents-tools/src/commonMain/kotlin/ai/koog/agents/core/tools/ToolRegistry.kt","../../../../../mpp-core/build/compileSync/js/main/productionLibrary/kotlin/common/src/generated/_Collections.kt","../../../../../../../../admin/buildAgent/work/7a80e3842dcc30f8/agents/agents-tools/src/commonMain/kotlin/ai/koog/agents/core/tools/annotations/LLMDescription.kt","../../../../../../../../admin/buildAgent/work/7a80e3842dcc30f8/agents/agents-tools/src/commonMain/kotlin/ai/koog/agents/core/tools/serialization/ToolSerialization.kt"],"sourcesContent":[null,null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-format>","<get-name>","<get-descriptor>","execute","args","enabler","$completion","decodeArgs","rawArgs","encodeArgs","encodeResultToString","result","encodeResultToStringUnsafe","<init>","name","<get-message>","tools","<get-tools>","getTool","toolName","element","description","equals","other","hashCode","toString","<get-ToolJson>","ToolJson$lambda","<init properties ToolSerialization.kt>"],"mappings":"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"}