keyring-agent-core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/README.md +169 -0
  2. package/dist/agent/AgentCore.d.ts +220 -0
  3. package/dist/agent/AgentCore.d.ts.map +1 -0
  4. package/dist/agent/AgentCore.js +950 -0
  5. package/dist/agent/AgentCore.js.map +1 -0
  6. package/dist/agent/QueryRewriter.d.ts +67 -0
  7. package/dist/agent/QueryRewriter.d.ts.map +1 -0
  8. package/dist/agent/QueryRewriter.js +262 -0
  9. package/dist/agent/QueryRewriter.js.map +1 -0
  10. package/dist/agent/Router.d.ts +33 -0
  11. package/dist/agent/Router.d.ts.map +1 -0
  12. package/dist/agent/Router.js +191 -0
  13. package/dist/agent/Router.js.map +1 -0
  14. package/dist/agent/Subagent.d.ts +63 -0
  15. package/dist/agent/Subagent.d.ts.map +1 -0
  16. package/dist/agent/Subagent.js +240 -0
  17. package/dist/agent/Subagent.js.map +1 -0
  18. package/dist/agent/Synthesizer.d.ts +11 -0
  19. package/dist/agent/Synthesizer.d.ts.map +1 -0
  20. package/dist/agent/Synthesizer.js +86 -0
  21. package/dist/agent/Synthesizer.js.map +1 -0
  22. package/dist/agent/index.d.ts +10 -0
  23. package/dist/agent/index.d.ts.map +1 -0
  24. package/dist/agent/index.js +24 -0
  25. package/dist/agent/index.js.map +1 -0
  26. package/dist/agent/subagents/AiAgent.d.ts +6 -0
  27. package/dist/agent/subagents/AiAgent.d.ts.map +1 -0
  28. package/dist/agent/subagents/AiAgent.js +48 -0
  29. package/dist/agent/subagents/AiAgent.js.map +1 -0
  30. package/dist/agent/subagents/NftAgent.d.ts +6 -0
  31. package/dist/agent/subagents/NftAgent.d.ts.map +1 -0
  32. package/dist/agent/subagents/NftAgent.js +69 -0
  33. package/dist/agent/subagents/NftAgent.js.map +1 -0
  34. package/dist/agent/subagents/PoolAgent.d.ts +6 -0
  35. package/dist/agent/subagents/PoolAgent.d.ts.map +1 -0
  36. package/dist/agent/subagents/PoolAgent.js +184 -0
  37. package/dist/agent/subagents/PoolAgent.js.map +1 -0
  38. package/dist/agent/subagents/TokenAgent.d.ts +6 -0
  39. package/dist/agent/subagents/TokenAgent.d.ts.map +1 -0
  40. package/dist/agent/subagents/TokenAgent.js +75 -0
  41. package/dist/agent/subagents/TokenAgent.js.map +1 -0
  42. package/dist/agent/subagents/WalletAgent.d.ts +6 -0
  43. package/dist/agent/subagents/WalletAgent.d.ts.map +1 -0
  44. package/dist/agent/subagents/WalletAgent.js +92 -0
  45. package/dist/agent/subagents/WalletAgent.js.map +1 -0
  46. package/dist/agent/subagents/index.d.ts +14 -0
  47. package/dist/agent/subagents/index.d.ts.map +1 -0
  48. package/dist/agent/subagents/index.js +38 -0
  49. package/dist/agent/subagents/index.js.map +1 -0
  50. package/dist/constants/abi.d.ts +520 -0
  51. package/dist/constants/abi.d.ts.map +1 -0
  52. package/dist/constants/abi.js +667 -0
  53. package/dist/constants/abi.js.map +1 -0
  54. package/dist/functions/pool.d.ts +25 -0
  55. package/dist/functions/pool.d.ts.map +1 -0
  56. package/dist/functions/pool.js +151 -0
  57. package/dist/functions/pool.js.map +1 -0
  58. package/dist/functions/web3.d.ts +32 -0
  59. package/dist/functions/web3.d.ts.map +1 -0
  60. package/dist/functions/web3.js +277 -0
  61. package/dist/functions/web3.js.map +1 -0
  62. package/dist/index.d.ts +24 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +65 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/llm/GeminiProvider.d.ts +16 -0
  67. package/dist/llm/GeminiProvider.d.ts.map +1 -0
  68. package/dist/llm/GeminiProvider.js +248 -0
  69. package/dist/llm/GeminiProvider.js.map +1 -0
  70. package/dist/llm/index.d.ts +2 -0
  71. package/dist/llm/index.d.ts.map +1 -0
  72. package/dist/llm/index.js +6 -0
  73. package/dist/llm/index.js.map +1 -0
  74. package/dist/memory/ChatHistory.d.ts +83 -0
  75. package/dist/memory/ChatHistory.d.ts.map +1 -0
  76. package/dist/memory/ChatHistory.js +143 -0
  77. package/dist/memory/ChatHistory.js.map +1 -0
  78. package/dist/memory/KnowledgeBase.d.ts +38 -0
  79. package/dist/memory/KnowledgeBase.d.ts.map +1 -0
  80. package/dist/memory/KnowledgeBase.js +139 -0
  81. package/dist/memory/KnowledgeBase.js.map +1 -0
  82. package/dist/memory/Summarizer.d.ts +12 -0
  83. package/dist/memory/Summarizer.d.ts.map +1 -0
  84. package/dist/memory/Summarizer.js +39 -0
  85. package/dist/memory/Summarizer.js.map +1 -0
  86. package/dist/memory/UpstashKnowledgeBase.d.ts +124 -0
  87. package/dist/memory/UpstashKnowledgeBase.d.ts.map +1 -0
  88. package/dist/memory/UpstashKnowledgeBase.js +152 -0
  89. package/dist/memory/UpstashKnowledgeBase.js.map +1 -0
  90. package/dist/memory/historyUtils.d.ts +58 -0
  91. package/dist/memory/historyUtils.d.ts.map +1 -0
  92. package/dist/memory/historyUtils.js +190 -0
  93. package/dist/memory/historyUtils.js.map +1 -0
  94. package/dist/memory/index.d.ts +7 -0
  95. package/dist/memory/index.d.ts.map +1 -0
  96. package/dist/memory/index.js +12 -0
  97. package/dist/memory/index.js.map +1 -0
  98. package/dist/memory/ingestKnowledgeBase.d.ts +17 -0
  99. package/dist/memory/ingestKnowledgeBase.d.ts.map +1 -0
  100. package/dist/memory/ingestKnowledgeBase.js +35 -0
  101. package/dist/memory/ingestKnowledgeBase.js.map +1 -0
  102. package/dist/services/MoralisService.d.ts +1350 -0
  103. package/dist/services/MoralisService.d.ts.map +1 -0
  104. package/dist/services/MoralisService.js +1364 -0
  105. package/dist/services/MoralisService.js.map +1 -0
  106. package/dist/services/PantographService.d.ts +38 -0
  107. package/dist/services/PantographService.d.ts.map +1 -0
  108. package/dist/services/PantographService.js +199 -0
  109. package/dist/services/PantographService.js.map +1 -0
  110. package/dist/services/PoolService.d.ts +241 -0
  111. package/dist/services/PoolService.d.ts.map +1 -0
  112. package/dist/services/PoolService.js +507 -0
  113. package/dist/services/PoolService.js.map +1 -0
  114. package/dist/services/UniswapService.d.ts +289 -0
  115. package/dist/services/UniswapService.d.ts.map +1 -0
  116. package/dist/services/UniswapService.js +585 -0
  117. package/dist/services/UniswapService.js.map +1 -0
  118. package/dist/services/swap/BaseSwapService.d.ts +17 -0
  119. package/dist/services/swap/BaseSwapService.d.ts.map +1 -0
  120. package/dist/services/swap/BaseSwapService.js +19 -0
  121. package/dist/services/swap/BaseSwapService.js.map +1 -0
  122. package/dist/services/swap/DebridgeAdapter.d.ts +20 -0
  123. package/dist/services/swap/DebridgeAdapter.d.ts.map +1 -0
  124. package/dist/services/swap/DebridgeAdapter.js +175 -0
  125. package/dist/services/swap/DebridgeAdapter.js.map +1 -0
  126. package/dist/services/swap/RelayAdapter.d.ts +19 -0
  127. package/dist/services/swap/RelayAdapter.d.ts.map +1 -0
  128. package/dist/services/swap/RelayAdapter.js +189 -0
  129. package/dist/services/swap/RelayAdapter.js.map +1 -0
  130. package/dist/services/swap/SwapServiceFactory.d.ts +24 -0
  131. package/dist/services/swap/SwapServiceFactory.d.ts.map +1 -0
  132. package/dist/services/swap/SwapServiceFactory.js +74 -0
  133. package/dist/services/swap/SwapServiceFactory.js.map +1 -0
  134. package/dist/services/swap/addresses.d.ts +3 -0
  135. package/dist/services/swap/addresses.d.ts.map +1 -0
  136. package/dist/services/swap/addresses.js +68 -0
  137. package/dist/services/swap/addresses.js.map +1 -0
  138. package/dist/services/swap/affiliate.d.ts +17 -0
  139. package/dist/services/swap/affiliate.d.ts.map +1 -0
  140. package/dist/services/swap/affiliate.js +126 -0
  141. package/dist/services/swap/affiliate.js.map +1 -0
  142. package/dist/services/swap/config.d.ts +9 -0
  143. package/dist/services/swap/config.d.ts.map +1 -0
  144. package/dist/services/swap/config.js +19 -0
  145. package/dist/services/swap/config.js.map +1 -0
  146. package/dist/services/swap/index.d.ts +10 -0
  147. package/dist/services/swap/index.d.ts.map +1 -0
  148. package/dist/services/swap/index.js +22 -0
  149. package/dist/services/swap/index.js.map +1 -0
  150. package/dist/services/swap/types.d.ts +89 -0
  151. package/dist/services/swap/types.d.ts.map +1 -0
  152. package/dist/services/swap/types.js +6 -0
  153. package/dist/services/swap/types.js.map +1 -0
  154. package/dist/tools/BaseTool.d.ts +15 -0
  155. package/dist/tools/BaseTool.d.ts.map +1 -0
  156. package/dist/tools/BaseTool.js +35 -0
  157. package/dist/tools/BaseTool.js.map +1 -0
  158. package/dist/tools/ToolRegistry.d.ts +27 -0
  159. package/dist/tools/ToolRegistry.d.ts.map +1 -0
  160. package/dist/tools/ToolRegistry.js +80 -0
  161. package/dist/tools/ToolRegistry.js.map +1 -0
  162. package/dist/tools/builtin/ai/MoralisCortexTool.d.ts +33 -0
  163. package/dist/tools/builtin/ai/MoralisCortexTool.d.ts.map +1 -0
  164. package/dist/tools/builtin/ai/MoralisCortexTool.js +76 -0
  165. package/dist/tools/builtin/ai/MoralisCortexTool.js.map +1 -0
  166. package/dist/tools/builtin/ai/SolanaCortexTool.d.ts +22 -0
  167. package/dist/tools/builtin/ai/SolanaCortexTool.d.ts.map +1 -0
  168. package/dist/tools/builtin/ai/SolanaCortexTool.js +80 -0
  169. package/dist/tools/builtin/ai/SolanaCortexTool.js.map +1 -0
  170. package/dist/tools/builtin/ai/index.d.ts +5 -0
  171. package/dist/tools/builtin/ai/index.d.ts.map +1 -0
  172. package/dist/tools/builtin/ai/index.js +8 -0
  173. package/dist/tools/builtin/ai/index.js.map +1 -0
  174. package/dist/tools/builtin/index.d.ts +6 -0
  175. package/dist/tools/builtin/index.d.ts.map +1 -0
  176. package/dist/tools/builtin/index.js +22 -0
  177. package/dist/tools/builtin/index.js.map +1 -0
  178. package/dist/tools/builtin/nft/NFTContractInfoTool.d.ts +21 -0
  179. package/dist/tools/builtin/nft/NFTContractInfoTool.d.ts.map +1 -0
  180. package/dist/tools/builtin/nft/NFTContractInfoTool.js +54 -0
  181. package/dist/tools/builtin/nft/NFTContractInfoTool.js.map +1 -0
  182. package/dist/tools/builtin/nft/NFTMetadataTool.d.ts +121 -0
  183. package/dist/tools/builtin/nft/NFTMetadataTool.d.ts.map +1 -0
  184. package/dist/tools/builtin/nft/NFTMetadataTool.js +159 -0
  185. package/dist/tools/builtin/nft/NFTMetadataTool.js.map +1 -0
  186. package/dist/tools/builtin/nft/WalletNFTsTool.d.ts +82 -0
  187. package/dist/tools/builtin/nft/WalletNFTsTool.d.ts.map +1 -0
  188. package/dist/tools/builtin/nft/WalletNFTsTool.js +172 -0
  189. package/dist/tools/builtin/nft/WalletNFTsTool.js.map +1 -0
  190. package/dist/tools/builtin/nft/index.d.ts +7 -0
  191. package/dist/tools/builtin/nft/index.d.ts.map +1 -0
  192. package/dist/tools/builtin/nft/index.js +10 -0
  193. package/dist/tools/builtin/nft/index.js.map +1 -0
  194. package/dist/tools/builtin/pool/EstimatePoolYieldTool.d.ts +124 -0
  195. package/dist/tools/builtin/pool/EstimatePoolYieldTool.d.ts.map +1 -0
  196. package/dist/tools/builtin/pool/EstimatePoolYieldTool.js +235 -0
  197. package/dist/tools/builtin/pool/EstimatePoolYieldTool.js.map +1 -0
  198. package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.d.ts +127 -0
  199. package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.d.ts.map +1 -0
  200. package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.js +517 -0
  201. package/dist/tools/builtin/pool/OpenAddLiquidityFormTool.js.map +1 -0
  202. package/dist/tools/builtin/pool/PoolByAddressTool.d.ts +127 -0
  203. package/dist/tools/builtin/pool/PoolByAddressTool.d.ts.map +1 -0
  204. package/dist/tools/builtin/pool/PoolByAddressTool.js +237 -0
  205. package/dist/tools/builtin/pool/PoolByAddressTool.js.map +1 -0
  206. package/dist/tools/builtin/pool/PoolDetailTool.d.ts +127 -0
  207. package/dist/tools/builtin/pool/PoolDetailTool.d.ts.map +1 -0
  208. package/dist/tools/builtin/pool/PoolDetailTool.js +272 -0
  209. package/dist/tools/builtin/pool/PoolDetailTool.js.map +1 -0
  210. package/dist/tools/builtin/pool/PoolSearchTool.d.ts +50 -0
  211. package/dist/tools/builtin/pool/PoolSearchTool.d.ts.map +1 -0
  212. package/dist/tools/builtin/pool/PoolSearchTool.js +159 -0
  213. package/dist/tools/builtin/pool/PoolSearchTool.js.map +1 -0
  214. package/dist/tools/builtin/pool/PreviewAddLiquidityTool.d.ts +123 -0
  215. package/dist/tools/builtin/pool/PreviewAddLiquidityTool.d.ts.map +1 -0
  216. package/dist/tools/builtin/pool/PreviewAddLiquidityTool.js +380 -0
  217. package/dist/tools/builtin/pool/PreviewAddLiquidityTool.js.map +1 -0
  218. package/dist/tools/builtin/pool/TopPoolsTool.d.ts +68 -0
  219. package/dist/tools/builtin/pool/TopPoolsTool.d.ts.map +1 -0
  220. package/dist/tools/builtin/pool/TopPoolsTool.js +158 -0
  221. package/dist/tools/builtin/pool/TopPoolsTool.js.map +1 -0
  222. package/dist/tools/builtin/pool/index.d.ts +15 -0
  223. package/dist/tools/builtin/pool/index.d.ts.map +1 -0
  224. package/dist/tools/builtin/pool/index.js +18 -0
  225. package/dist/tools/builtin/pool/index.js.map +1 -0
  226. package/dist/tools/builtin/token/TokenAnalyticsTool.d.ts +71 -0
  227. package/dist/tools/builtin/token/TokenAnalyticsTool.d.ts.map +1 -0
  228. package/dist/tools/builtin/token/TokenAnalyticsTool.js +146 -0
  229. package/dist/tools/builtin/token/TokenAnalyticsTool.js.map +1 -0
  230. package/dist/tools/builtin/token/TokenHoldersTool.d.ts +81 -0
  231. package/dist/tools/builtin/token/TokenHoldersTool.d.ts.map +1 -0
  232. package/dist/tools/builtin/token/TokenHoldersTool.js +138 -0
  233. package/dist/tools/builtin/token/TokenHoldersTool.js.map +1 -0
  234. package/dist/tools/builtin/token/TokenInfoTool.d.ts +36 -0
  235. package/dist/tools/builtin/token/TokenInfoTool.d.ts.map +1 -0
  236. package/dist/tools/builtin/token/TokenInfoTool.js +163 -0
  237. package/dist/tools/builtin/token/TokenInfoTool.js.map +1 -0
  238. package/dist/tools/builtin/token/TokenScoreTool.d.ts +63 -0
  239. package/dist/tools/builtin/token/TokenScoreTool.d.ts.map +1 -0
  240. package/dist/tools/builtin/token/TokenScoreTool.js +147 -0
  241. package/dist/tools/builtin/token/TokenScoreTool.js.map +1 -0
  242. package/dist/tools/builtin/token/TopGainersTool.d.ts +46 -0
  243. package/dist/tools/builtin/token/TopGainersTool.d.ts.map +1 -0
  244. package/dist/tools/builtin/token/TopGainersTool.js +110 -0
  245. package/dist/tools/builtin/token/TopGainersTool.js.map +1 -0
  246. package/dist/tools/builtin/token/TopLosersTool.d.ts +66 -0
  247. package/dist/tools/builtin/token/TopLosersTool.d.ts.map +1 -0
  248. package/dist/tools/builtin/token/TopLosersTool.js +128 -0
  249. package/dist/tools/builtin/token/TopLosersTool.js.map +1 -0
  250. package/dist/tools/builtin/token/TrendingTokensTool.d.ts +39 -0
  251. package/dist/tools/builtin/token/TrendingTokensTool.d.ts.map +1 -0
  252. package/dist/tools/builtin/token/TrendingTokensTool.js +75 -0
  253. package/dist/tools/builtin/token/TrendingTokensTool.js.map +1 -0
  254. package/dist/tools/builtin/token/index.d.ts +15 -0
  255. package/dist/tools/builtin/token/index.d.ts.map +1 -0
  256. package/dist/tools/builtin/token/index.js +18 -0
  257. package/dist/tools/builtin/token/index.js.map +1 -0
  258. package/dist/tools/builtin/wallet/TransactionByHashTool.d.ts +70 -0
  259. package/dist/tools/builtin/wallet/TransactionByHashTool.d.ts.map +1 -0
  260. package/dist/tools/builtin/wallet/TransactionByHashTool.js +110 -0
  261. package/dist/tools/builtin/wallet/TransactionByHashTool.js.map +1 -0
  262. package/dist/tools/builtin/wallet/WalletApprovalsTool.d.ts +107 -0
  263. package/dist/tools/builtin/wallet/WalletApprovalsTool.d.ts.map +1 -0
  264. package/dist/tools/builtin/wallet/WalletApprovalsTool.js +163 -0
  265. package/dist/tools/builtin/wallet/WalletApprovalsTool.js.map +1 -0
  266. package/dist/tools/builtin/wallet/WalletDefiPositionsTool.d.ts +61 -0
  267. package/dist/tools/builtin/wallet/WalletDefiPositionsTool.d.ts.map +1 -0
  268. package/dist/tools/builtin/wallet/WalletDefiPositionsTool.js +99 -0
  269. package/dist/tools/builtin/wallet/WalletDefiPositionsTool.js.map +1 -0
  270. package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.d.ts +68 -0
  271. package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.d.ts.map +1 -0
  272. package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.js +114 -0
  273. package/dist/tools/builtin/wallet/WalletDefiProtocolPositionsTool.js.map +1 -0
  274. package/dist/tools/builtin/wallet/WalletDefiSummaryTool.d.ts +50 -0
  275. package/dist/tools/builtin/wallet/WalletDefiSummaryTool.d.ts.map +1 -0
  276. package/dist/tools/builtin/wallet/WalletDefiSummaryTool.js +79 -0
  277. package/dist/tools/builtin/wallet/WalletDefiSummaryTool.js.map +1 -0
  278. package/dist/tools/builtin/wallet/WalletHistoryTool.d.ts +31 -0
  279. package/dist/tools/builtin/wallet/WalletHistoryTool.d.ts.map +1 -0
  280. package/dist/tools/builtin/wallet/WalletHistoryTool.js +153 -0
  281. package/dist/tools/builtin/wallet/WalletHistoryTool.js.map +1 -0
  282. package/dist/tools/builtin/wallet/WalletNetWorthTool.d.ts +44 -0
  283. package/dist/tools/builtin/wallet/WalletNetWorthTool.d.ts.map +1 -0
  284. package/dist/tools/builtin/wallet/WalletNetWorthTool.js +122 -0
  285. package/dist/tools/builtin/wallet/WalletNetWorthTool.js.map +1 -0
  286. package/dist/tools/builtin/wallet/WalletNftTransfersTool.d.ts +86 -0
  287. package/dist/tools/builtin/wallet/WalletNftTransfersTool.d.ts.map +1 -0
  288. package/dist/tools/builtin/wallet/WalletNftTransfersTool.js +264 -0
  289. package/dist/tools/builtin/wallet/WalletNftTransfersTool.js.map +1 -0
  290. package/dist/tools/builtin/wallet/WalletPnlSummaryTool.d.ts +43 -0
  291. package/dist/tools/builtin/wallet/WalletPnlSummaryTool.d.ts.map +1 -0
  292. package/dist/tools/builtin/wallet/WalletPnlSummaryTool.js +88 -0
  293. package/dist/tools/builtin/wallet/WalletPnlSummaryTool.js.map +1 -0
  294. package/dist/tools/builtin/wallet/WalletPnlTool.d.ts +43 -0
  295. package/dist/tools/builtin/wallet/WalletPnlTool.d.ts.map +1 -0
  296. package/dist/tools/builtin/wallet/WalletPnlTool.js +174 -0
  297. package/dist/tools/builtin/wallet/WalletPnlTool.js.map +1 -0
  298. package/dist/tools/builtin/wallet/WalletTokenBalancesTool.d.ts +35 -0
  299. package/dist/tools/builtin/wallet/WalletTokenBalancesTool.d.ts.map +1 -0
  300. package/dist/tools/builtin/wallet/WalletTokenBalancesTool.js +67 -0
  301. package/dist/tools/builtin/wallet/WalletTokenBalancesTool.js.map +1 -0
  302. package/dist/tools/builtin/wallet/WalletTokenTransfersTool.d.ts +109 -0
  303. package/dist/tools/builtin/wallet/WalletTokenTransfersTool.d.ts.map +1 -0
  304. package/dist/tools/builtin/wallet/WalletTokenTransfersTool.js +353 -0
  305. package/dist/tools/builtin/wallet/WalletTokenTransfersTool.js.map +1 -0
  306. package/dist/tools/builtin/wallet/index.d.ts +25 -0
  307. package/dist/tools/builtin/wallet/index.d.ts.map +1 -0
  308. package/dist/tools/builtin/wallet/index.js +28 -0
  309. package/dist/tools/builtin/wallet/index.js.map +1 -0
  310. package/dist/tools/index.d.ts +4 -0
  311. package/dist/tools/index.d.ts.map +1 -0
  312. package/dist/tools/index.js +23 -0
  313. package/dist/tools/index.js.map +1 -0
  314. package/dist/types/index.d.ts +566 -0
  315. package/dist/types/index.d.ts.map +1 -0
  316. package/dist/types/index.js +6 -0
  317. package/dist/types/index.js.map +1 -0
  318. package/package.json +52 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionByHashTool = exports.WalletDefiProtocolPositionsTool = exports.WalletDefiPositionsTool = exports.WalletDefiSummaryTool = exports.WalletApprovalsTool = exports.WalletPnlTool = exports.WalletPnlSummaryTool = exports.WalletNetWorthTool = exports.WalletNftTransfersTool = exports.WalletTokenTransfersTool = exports.WalletHistoryTool = exports.WalletTokenBalancesTool = void 0;
4
+ var WalletTokenBalancesTool_1 = require("./WalletTokenBalancesTool");
5
+ Object.defineProperty(exports, "WalletTokenBalancesTool", { enumerable: true, get: function () { return WalletTokenBalancesTool_1.WalletTokenBalancesTool; } });
6
+ var WalletHistoryTool_1 = require("./WalletHistoryTool");
7
+ Object.defineProperty(exports, "WalletHistoryTool", { enumerable: true, get: function () { return WalletHistoryTool_1.WalletHistoryTool; } });
8
+ var WalletTokenTransfersTool_1 = require("./WalletTokenTransfersTool");
9
+ Object.defineProperty(exports, "WalletTokenTransfersTool", { enumerable: true, get: function () { return WalletTokenTransfersTool_1.WalletTokenTransfersTool; } });
10
+ var WalletNftTransfersTool_1 = require("./WalletNftTransfersTool");
11
+ Object.defineProperty(exports, "WalletNftTransfersTool", { enumerable: true, get: function () { return WalletNftTransfersTool_1.WalletNftTransfersTool; } });
12
+ var WalletNetWorthTool_1 = require("./WalletNetWorthTool");
13
+ Object.defineProperty(exports, "WalletNetWorthTool", { enumerable: true, get: function () { return WalletNetWorthTool_1.WalletNetWorthTool; } });
14
+ var WalletPnlSummaryTool_1 = require("./WalletPnlSummaryTool");
15
+ Object.defineProperty(exports, "WalletPnlSummaryTool", { enumerable: true, get: function () { return WalletPnlSummaryTool_1.WalletPnlSummaryTool; } });
16
+ var WalletPnlTool_1 = require("./WalletPnlTool");
17
+ Object.defineProperty(exports, "WalletPnlTool", { enumerable: true, get: function () { return WalletPnlTool_1.WalletPnlTool; } });
18
+ var WalletApprovalsTool_1 = require("./WalletApprovalsTool");
19
+ Object.defineProperty(exports, "WalletApprovalsTool", { enumerable: true, get: function () { return WalletApprovalsTool_1.WalletApprovalsTool; } });
20
+ var WalletDefiSummaryTool_1 = require("./WalletDefiSummaryTool");
21
+ Object.defineProperty(exports, "WalletDefiSummaryTool", { enumerable: true, get: function () { return WalletDefiSummaryTool_1.WalletDefiSummaryTool; } });
22
+ var WalletDefiPositionsTool_1 = require("./WalletDefiPositionsTool");
23
+ Object.defineProperty(exports, "WalletDefiPositionsTool", { enumerable: true, get: function () { return WalletDefiPositionsTool_1.WalletDefiPositionsTool; } });
24
+ var WalletDefiProtocolPositionsTool_1 = require("./WalletDefiProtocolPositionsTool");
25
+ Object.defineProperty(exports, "WalletDefiProtocolPositionsTool", { enumerable: true, get: function () { return WalletDefiProtocolPositionsTool_1.WalletDefiProtocolPositionsTool; } });
26
+ var TransactionByHashTool_1 = require("./TransactionByHashTool");
27
+ Object.defineProperty(exports, "TransactionByHashTool", { enumerable: true, get: function () { return TransactionByHashTool_1.TransactionByHashTool; } });
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/builtin/wallet/index.ts"],"names":[],"mappings":";;;AAAA,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAEhC,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA;AAE1B,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AAEjC,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAE/B,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAE3B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAE7B,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAEtB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAE5B,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAE9B,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAEhC,qFAAoF;AAA3E,kJAAA,+BAA+B,OAAA;AAExC,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA"}
@@ -0,0 +1,4 @@
1
+ export { ToolRegistry } from './ToolRegistry';
2
+ export { BaseTool } from './BaseTool';
3
+ export * from './builtin';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,WAAW,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.BaseTool = exports.ToolRegistry = void 0;
18
+ var ToolRegistry_1 = require("./ToolRegistry");
19
+ Object.defineProperty(exports, "ToolRegistry", { enumerable: true, get: function () { return ToolRegistry_1.ToolRegistry; } });
20
+ var BaseTool_1 = require("./BaseTool");
21
+ Object.defineProperty(exports, "BaseTool", { enumerable: true, get: function () { return BaseTool_1.BaseTool; } });
22
+ __exportStar(require("./builtin"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,4CAA0B"}
@@ -0,0 +1,566 @@
1
+ import type { PoolOnchainInfo } from '../services/PoolService';
2
+ /** Role inside a conversation */
3
+ export type ChatRole = 'user' | 'assistant' | 'system' | 'tool';
4
+ /** A single message in the conversation */
5
+ export interface ChatMessage {
6
+ role: ChatRole;
7
+ content: string;
8
+ /** If role === 'tool', the name of the tool that produced this message */
9
+ toolName?: string;
10
+ /** If role === 'tool', the call id this result belongs to */
11
+ toolCallId?: string;
12
+ /** If role === 'assistant' and the model made function calls */
13
+ toolCalls?: LLMToolCall[];
14
+ /**
15
+ * Names of the subagents that produced this assistant message (if any).
16
+ * Used for follow-up resolution: if this turn was handled by ["wallet-agent"],
17
+ * a short reply like "more" / "tiếp" almost certainly still belongs to wallet.
18
+ * Only set on role === 'assistant' (the final user-facing answer).
19
+ */
20
+ subagents?: string[];
21
+ /**
22
+ * Suggested follow-up prompts attached to this assistant turn. Persisted with
23
+ * history so that when a session is restored, the FE can re-render the same
24
+ * suggestion chips next to the message. Only set on role === 'assistant'.
25
+ */
26
+ suggestedPrompts?: string[];
27
+ /**
28
+ * UI payloads (forms / confirms / result widgets) emitted by tools during
29
+ * this turn. Persisted with history so the FE can re-render these widgets
30
+ * after a reload. Only set on role === 'assistant'.
31
+ */
32
+ uiActions?: UIPayload[];
33
+ /**
34
+ * Stable id of the response turn (matches `AgentResponse.messageId`). Lets
35
+ * the FE key persistent widgets across reloads. Only set on role === 'assistant'.
36
+ */
37
+ messageId?: string;
38
+ /**
39
+ * Internal flag — set on the bridging assistant message that `persistToolMessages`
40
+ * injects after each subagent's tool exchange (to satisfy Gemini's rule that
41
+ * function-response turns must be followed by a model turn). These messages
42
+ * must be stripped before building a Synthesiser or direct-LLM history so they
43
+ * don't appear as duplicate model turns alongside the synthesised answer.
44
+ */
45
+ _intermediate?: boolean;
46
+ timestamp: number;
47
+ }
48
+ /** Describes a parameter for a tool */
49
+ export interface ToolParameter {
50
+ name: string;
51
+ type: 'string' | 'number' | 'boolean' | 'object' | 'array';
52
+ description: string;
53
+ required: boolean;
54
+ default?: unknown;
55
+ /** For array types, the type of items in the array (default: 'string') */
56
+ items?: {
57
+ type: 'string' | 'number' | 'boolean' | 'object';
58
+ };
59
+ }
60
+ /**
61
+ * Tool kind — drives how the orchestrator handles the result.
62
+ * - 'data' (default): result fed back into the LLM for synthesis
63
+ * - 'ui' : result includes a `ui` payload that the FE renders as a component
64
+ * - 'action' : result includes an unsigned transaction the FE will sign + send
65
+ */
66
+ export type ToolKind = 'data' | 'ui' | 'action';
67
+ /** Definition of a single tool that the agent can invoke */
68
+ export interface ToolDefinition {
69
+ /** Unique tool name (slug-style, e.g. "get-faq") */
70
+ name: string;
71
+ /** Human-readable description – sent to the LLM so it knows when to use the tool */
72
+ description: string;
73
+ /** The parameters the tool accepts */
74
+ parameters: ToolParameter[];
75
+ /** Optional category for grouping */
76
+ category?: string;
77
+ /** Whether this tool returns plain data, a UI payload, or an unsigned action. Default 'data'. */
78
+ kind?: ToolKind;
79
+ }
80
+ /**
81
+ * UI payload emitted by a tool. The FE has pre-built components keyed by
82
+ * `component`; it dispatches on the name and forwards `props` verbatim.
83
+ *
84
+ * `TProps` is the typed shape of `props`. Tools that ship typed props should
85
+ * narrow this generic (e.g. `UIPayload<AddLiquidityFormProps>`) so the FE can
86
+ * `props as AddLiquidityFormProps` without losing type-safety.
87
+ */
88
+ export interface UIPayload<TProps = Record<string, unknown>> {
89
+ /** Component name registered on the FE (e.g. "AddLiquidityForm") */
90
+ component: string;
91
+ /** Props forwarded to that component as-is */
92
+ props: TProps;
93
+ /**
94
+ * BCP-47 language tag (e.g. "en", "vi", "zh", "ja") detected from the
95
+ * CURRENT user message. Stamped by AgentCore so the FE renders this
96
+ * component in whichever language the user just typed in — independent of
97
+ * the FE's app locale. Tools do NOT set this themselves.
98
+ */
99
+ language?: string;
100
+ }
101
+ /** Identifies a chain in BE↔FE payloads. */
102
+ export interface ChainRef {
103
+ /** Hex chain id, e.g. "0x2105" for Base */
104
+ hexId: string;
105
+ /** Human-readable chain name, e.g. "Base" */
106
+ name: string;
107
+ }
108
+ /** A token shown to the user inside a pool/strategy display. */
109
+ export interface TokenDisplay {
110
+ address: string;
111
+ symbol?: string;
112
+ name?: string;
113
+ decimals?: number;
114
+ logo?: string;
115
+ }
116
+ /** On-chain + display state of a Uniswap V3 pool, normalised for the FE. */
117
+ export interface PoolDisplayInfo {
118
+ address: string;
119
+ /** Fee tier in basis points (e.g. 500 for 0.05%) */
120
+ fee: number;
121
+ /** Same as `fee / 10_000` — pre-computed for convenience */
122
+ feePercent: number;
123
+ tickSpacing: number;
124
+ currentTick: number;
125
+ /** Decimal-adjusted price (token1 per token0) */
126
+ currentPrice: number;
127
+ /** Stringified bigint — sqrt price in Q96 fixed-point */
128
+ sqrtPriceX96: string;
129
+ token0: TokenDisplay;
130
+ token1: TokenDisplay;
131
+ }
132
+ /**
133
+ * Hard bounds for the price-range inputs (token1 per token0, decimal-adjusted).
134
+ * The form should clamp user inputs to this window — anything outside the
135
+ * Uniswap V3 valid tick range is unmintable.
136
+ */
137
+ export interface PriceBounds {
138
+ /** Decimal-adjusted absolute minimum (corresponds to MIN_TICK). */
139
+ min: number;
140
+ /** Decimal-adjusted absolute maximum (corresponds to MAX_TICK). */
141
+ max: number;
142
+ }
143
+ /** Pre-computed quick-pick chip (e.g. "25% of spendable"). */
144
+ export interface QuickRate {
145
+ percent: number;
146
+ /** Wei as decimal string */
147
+ amountWei: string;
148
+ /** Human-readable amount in token units */
149
+ amount: number;
150
+ }
151
+ /**
152
+ * Self-contained block describing the input field of the AddLiquidityForm.
153
+ * The CoinPool gateway only accepts native coin as input — the FE renders a
154
+ * locked input bound to this single token.
155
+ */
156
+ export interface InputTokenInfo {
157
+ /** Always zeroAddress for native */
158
+ address: string;
159
+ /** Always true today — kept for forward compatibility */
160
+ isNative: boolean;
161
+ symbol: string;
162
+ name: string;
163
+ decimals: number;
164
+ /** USD price; null when the price oracle was unavailable */
165
+ priceUsd: number | null;
166
+ balanceWei: string;
167
+ balance: number;
168
+ gasReserveWei: string;
169
+ spendableWei: string;
170
+ spendable: number;
171
+ /** spendable × priceUsd; null when priceUsd is null */
172
+ spendableUsd: number | null;
173
+ /** Quick-pick chips (25/50/75/100% of spendable) */
174
+ quickRates: QuickRate[];
175
+ /** Minimum USD value the user must add (e.g. 10) */
176
+ minProvideUsd: number;
177
+ /** Machine-readable warning code; null when balance is fine */
178
+ warning: 'no_balance' | 'insufficient_balance' | null;
179
+ /** Optional human-language hint mirroring `warning` */
180
+ warningMessage: string | null;
181
+ /**
182
+ * Pre-fill amount the FE should populate the input with on first render.
183
+ * Set when the user supplied an amount before choosing a pool (e.g.
184
+ * "add 0.1 ETH to USDC/WETH"). null when no pre-fill is available.
185
+ */
186
+ prefillAmount: number | null;
187
+ prefillAmountWei: string | null;
188
+ }
189
+ /**
190
+ * Pre-filled price range for the AddLiquidityForm. The FE should populate the
191
+ * min/max inputs with these values on first render, but MUST keep the inputs
192
+ * editable so the user can override before submitting.
193
+ */
194
+ export interface PriceRangePrefill {
195
+ /**
196
+ * How the range was derived:
197
+ * - "user": user passed explicit minPrice / maxPrice
198
+ * - "stable": ±tickSpacing × N around currentTick (narrow, high-yield, high-out-of-range risk)
199
+ * - "wide": currentPrice × [0.5, 2.0] (broad, lower yield, less rebalancing)
200
+ * - "full": [priceBounds.min, priceBounds.max] (full V3 tick range, lowest yield, no out-of-range risk)
201
+ */
202
+ strategy: 'user' | 'stable' | 'wide' | 'full';
203
+ /** Decimal-adjusted prices in token1-per-token0 units (same as pool.currentPrice). */
204
+ minPrice: number;
205
+ maxPrice: number;
206
+ }
207
+ /** Props for the FE `AddLiquidityForm` component. */
208
+ export interface AddLiquidityFormProps {
209
+ chain: ChainRef;
210
+ pool: PoolDisplayInfo;
211
+ inputToken: InputTokenInfo;
212
+ /**
213
+ * Allowed bounds for the user-entered price range, in token1-per-token0 units
214
+ * (decimal-adjusted, the same unit as `pool.currentPrice`). The form should
215
+ * not let the user submit values outside this window.
216
+ */
217
+ priceBounds: PriceBounds;
218
+ /**
219
+ * Optional pre-fill for the min/max price inputs. Populated when the user
220
+ * named explicit prices ("range 1800 to 2200") or asked for a preset strategy
221
+ * ("safe range", "wide range"). null when no pre-fill was requested. The FE
222
+ * must keep the inputs editable in all cases.
223
+ */
224
+ prefillRange: PriceRangePrefill | null;
225
+ /** CoinPool gateway contract address on this chain */
226
+ gatewayAddress: string;
227
+ }
228
+ /** Unsigned EVM transaction the FE will pass to the connected wallet. */
229
+ export interface UnsignedTx {
230
+ /** Hex chain id */
231
+ chainId: string;
232
+ to: string;
233
+ data: string;
234
+ /** Wei as decimal string */
235
+ value: string;
236
+ from: string;
237
+ }
238
+ /** Human-readable summary of an add-liquidity tx, shown above the Confirm button. */
239
+ export interface AddLiquiditySummary {
240
+ nativeIn: number;
241
+ nativeInUsd: number | null;
242
+ ratio: {
243
+ token0Percent: number;
244
+ token1Percent: number;
245
+ };
246
+ expectedToken0: number;
247
+ expectedToken1: number;
248
+ amount0Min: string;
249
+ amount1Min: string;
250
+ slippageBps: number | string;
251
+ }
252
+ /**
253
+ * Resolved range for an add-liquidity action — both the protocol-level ticks
254
+ * (used in the on-chain mint) and the human prices the user entered.
255
+ */
256
+ export interface ResolvedRange {
257
+ tickLower: number;
258
+ tickUpper: number;
259
+ /** Decimal-adjusted price (token1 per token0) at tickLower */
260
+ minPrice: number;
261
+ /** Decimal-adjusted price at tickUpper */
262
+ maxPrice: number;
263
+ }
264
+ /** Props for the FE `ConfirmAddLiquidityTx` component. */
265
+ export interface ConfirmAddLiquidityTxProps {
266
+ chain: ChainRef;
267
+ unsignedTx: UnsignedTx;
268
+ summary: AddLiquiditySummary;
269
+ pool: Omit<PoolOnchainInfo, 'token0' | 'token1'> & {
270
+ token0: TokenDisplay;
271
+ token1: TokenDisplay;
272
+ feePercent: number;
273
+ };
274
+ range: ResolvedRange;
275
+ gatewayAddress: string;
276
+ }
277
+ /** The result returned after a tool executes */
278
+ export interface ToolResult {
279
+ toolName: string;
280
+ callId: string;
281
+ success: boolean;
282
+ data?: unknown;
283
+ error?: string;
284
+ /** Execution time in ms */
285
+ duration: number;
286
+ /**
287
+ * Optional UI payload. Set by tools with kind='ui' or 'action' to ask the FE
288
+ * to render a component. AgentCore aggregates these into AgentResponse.uiActions.
289
+ */
290
+ ui?: UIPayload;
291
+ }
292
+ /** A concrete handler for a tool (provided by the consumer) */
293
+ export interface Tool extends ToolDefinition {
294
+ /** Execute the tool with the given arguments and return a result */
295
+ execute(args: Record<string, unknown>, userContext?: UserContext): Promise<ToolResult>;
296
+ }
297
+ export type ReActPhase = 'think' | 'act' | 'observe';
298
+ export interface ReActStep {
299
+ phase: ReActPhase;
300
+ content: string;
301
+ toolCall?: {
302
+ toolName: string;
303
+ args: Record<string, unknown>;
304
+ };
305
+ toolResult?: ToolResult;
306
+ timestamp: number;
307
+ }
308
+ export interface ReActTrace {
309
+ steps: ReActStep[];
310
+ finalAnswer: string;
311
+ }
312
+ /**
313
+ * A capability card advertised by a subagent to the Router.
314
+ * Only `name` + `description` are sent to the Router's LLM, so they must
315
+ * be dense and token-efficient.
316
+ */
317
+ export interface SubagentCard {
318
+ /** Unique subagent id, e.g. "wallet-agent" */
319
+ name: string;
320
+ /** When to use this subagent (one-liner, shown to the router LLM) */
321
+ description: string;
322
+ /** High-level domain tag for logging / UI */
323
+ domain: string;
324
+ }
325
+ /** A focused sub-query dispatched to a single subagent. */
326
+ export interface SubagentTask {
327
+ /** Domain-scoped query rewritten by the router */
328
+ query: string;
329
+ /** Router's reason for assigning this subagent (optional, for logging) */
330
+ reasoning?: string;
331
+ }
332
+ /** Output of a single subagent run (tool calls + final summary). */
333
+ export interface SubagentResult {
334
+ /** Name of the subagent that produced this result */
335
+ subagentName: string;
336
+ /** ReAct steps (think/act/observe) produced internally */
337
+ steps: ReActStep[];
338
+ /** Subagent's summarised answer for its domain */
339
+ finalAnswer: string;
340
+ /** Raw tool results from the run (useful for synthesiser and debugging) */
341
+ toolResults: ToolResult[];
342
+ /**
343
+ * Interleaved assistant-with-toolCalls + role:'tool' result messages.
344
+ * AgentCore appends these to ChatHistory so the next turn can reference
345
+ * previous tool data — pagination cursors, raw results, etc.
346
+ * Tool result content is truncated to cap history size.
347
+ */
348
+ toolMessages: ChatMessage[];
349
+ }
350
+ /** A single routing assignment the Router emits. */
351
+ export interface RouterAssignment {
352
+ /** Name of the subagent to invoke */
353
+ subagent: string;
354
+ /** Focused sub-query for that subagent, in the user's language */
355
+ query: string;
356
+ /** Router's reason */
357
+ reasoning: string;
358
+ }
359
+ /** The Router's decision for a user query. */
360
+ export interface RouterDecision {
361
+ /** Brief intent analysis (user-language) */
362
+ analysis: string;
363
+ /** Subagents to invoke. Empty array = no subagent needed (answer directly). */
364
+ assignments: RouterAssignment[];
365
+ }
366
+ /** Context about the connected wallet — set/updated by the UI layer. */
367
+ export interface UserContext {
368
+ /** Connected wallet address (e.g. "0x…"). null/undefined = not connected. */
369
+ walletAddress?: string | null;
370
+ /** Current chain the wallet is on (e.g. "ethereum", "arbitrum", "base"). */
371
+ chain?: string | null;
372
+ }
373
+ /**
374
+ * Platform-agnostic storage interface.
375
+ * - Web: pass `localStorage` directly (or a wrapper).
376
+ * - React Native: pass `AsyncStorage` (all methods return Promise).
377
+ * - Node: pass any key-value store.
378
+ *
379
+ * All methods may return a value OR a Promise — the SDK awaits either.
380
+ */
381
+ export interface StorageProvider {
382
+ getItem(key: string): string | null | Promise<string | null>;
383
+ setItem(key: string, value: string): void | Promise<void>;
384
+ removeItem(key: string): void | Promise<void>;
385
+ }
386
+ /** A single entry in the knowledge base. */
387
+ export interface KnowledgeBaseEntry {
388
+ /** The question or topic. Used for matching against user queries. */
389
+ question: string;
390
+ /** The reference answer content. The LLM will use this as source material (not returned verbatim). */
391
+ answer: string;
392
+ }
393
+ /** A scored knowledge-base hit. Score is in [0, 1] — higher is better. */
394
+ export interface KBSearchResult {
395
+ entry: KnowledgeBaseEntry;
396
+ score: number;
397
+ }
398
+ /**
399
+ * Pluggable knowledge-base backend. The agent only needs `search()`; ingestion
400
+ * is the responsibility of each concrete provider (in-memory, Upstash, pgvector…).
401
+ */
402
+ export interface KnowledgeBaseProvider {
403
+ /** Find the top-K most relevant entries for the query. */
404
+ search(query: string, maxResults?: number): Promise<KBSearchResult[]>;
405
+ }
406
+ /** Vector-backed KB config (Upstash-flavoured by default). */
407
+ export interface VectorKBConfig {
408
+ /**
409
+ * Master switch. `true` → use vector search. `false`/omitted → legacy
410
+ * LLM-based matcher (unchanged behaviour).
411
+ */
412
+ enabled: boolean;
413
+ /**
414
+ * Upstash Vector REST URL. Falls back to UPSTASH_VECTOR_REST_URL env var.
415
+ */
416
+ url?: string;
417
+ /**
418
+ * Upstash Vector REST token. Falls back to UPSTASH_VECTOR_REST_TOKEN env var.
419
+ */
420
+ token?: string;
421
+ /** Optional namespace for multi-tenant isolation. */
422
+ namespace?: string;
423
+ /** Minimum cosine score (0..1) for a hit to be returned. Default 0.7. */
424
+ minScore?: number;
425
+ /** Default top-K. Default 3. */
426
+ defaultTopK?: number;
427
+ /**
428
+ * If true, the agent upserts `config.knowledgeBase` entries to Upstash the
429
+ * first time it runs. Idempotent — same entries produce the same ids, so
430
+ * re-running does not duplicate. Default false (manage ingestion yourself).
431
+ */
432
+ autoIngest?: boolean;
433
+ /**
434
+ * Bring your own provider. Overrides every other field above when set —
435
+ * useful for swapping in pgvector, Pinecone, or test doubles.
436
+ */
437
+ provider?: KnowledgeBaseProvider;
438
+ }
439
+ export interface LLMProviderConfig {
440
+ /** Model name, e.g. "gemini-2.5-flash-lite" */
441
+ model?: string;
442
+ /** Max tokens for generation */
443
+ maxTokens?: number;
444
+ /** Temperature (0-2) */
445
+ temperature?: number;
446
+ /** Base URL for the Gemini API proxy. Defaults to "https://nft.keyring.app/api/gemini-cortex/proxy" */
447
+ baseUrl?: string;
448
+ }
449
+ export interface AgentConfig {
450
+ /** LLM provider configuration */
451
+ llm: LLMProviderConfig;
452
+ /** Maximum number of ReAct iterations before forcing an answer */
453
+ maxIterations?: number;
454
+ /** Maximum number of messages to keep in history before summarising */
455
+ maxHistoryMessages?: number;
456
+ /** System prompt prepended to every LLM call */
457
+ systemPrompt?: string;
458
+ /** Enable debug logging */
459
+ debug?: boolean;
460
+ /**
461
+ * Cross-platform storage for persisting chat history.
462
+ * - Web: pass `localStorage`
463
+ * - React Native: pass `AsyncStorage`
464
+ * If omitted, history is in-memory only (lost on reload).
465
+ */
466
+ storage?: StorageProvider;
467
+ /**
468
+ * Key used in storage. Defaults to "keyring-agent-history".
469
+ * Useful when running multiple agent instances.
470
+ */
471
+ storageKey?: string;
472
+ /**
473
+ * Whether chat history is persisted across app restarts. Default true.
474
+ *
475
+ * When false, the agent does NOT load prior history from `storage` on the
476
+ * first turn and does NOT write subsequent turns back — every app launch
477
+ * starts a fresh session. Useful for incognito-style chats or to opt out
478
+ * even when a storage provider is configured globally.
479
+ *
480
+ * Note: when `storage` is omitted, history is in-memory only regardless
481
+ * of this flag.
482
+ */
483
+ persistHistory?: boolean;
484
+ /**
485
+ * Pre-defined Q&A knowledge base entries. By default the agent matches them
486
+ * with an LLM (sends the whole list each call — fine up to ~50 entries).
487
+ * Toggle `vectorKB.enabled` to switch to Upstash vector search instead.
488
+ */
489
+ knowledgeBase?: KnowledgeBaseEntry[];
490
+ /**
491
+ * Vector-backed knowledge base config. When `enabled: true`, the agent
492
+ * searches via Upstash Vector instead of the LLM matcher. When omitted or
493
+ * `enabled: false`, behaviour is identical to versions without this flag.
494
+ */
495
+ vectorKB?: VectorKBConfig;
496
+ /**
497
+ * Minimum top-hit score (0..1) at which the agent answers directly from
498
+ * the KB and skips the Router/Subagent pipeline entirely. Default 0.8.
499
+ *
500
+ * Vector backends (e.g. Upstash bge-m3 hybrid) commonly produce scores in
501
+ * the 0.7–0.85 range for genuinely relevant matches; lowering this to
502
+ * around 0.7 typically gives better KB recall in production.
503
+ */
504
+ kbAnswerThreshold?: number;
505
+ /**
506
+ * Whether to generate suggested follow-up prompts after each answer.
507
+ * Default true. Set to false to skip the extra LLM call and omit
508
+ * `suggestedPrompts` from every response.
509
+ */
510
+ generateSuggestions?: boolean;
511
+ /** Moralis AI tool config. Set to false to disable the built-in Moralis tool. */
512
+ moralis?: {
513
+ /** Base URL for Moralis proxy (default: https://nft.keyring.app) */
514
+ baseUrl?: string;
515
+ /** Pantograph API base URL for price enrichment */
516
+ pantographUrl?: string;
517
+ /** Cortex AI model (default: gpt-4.1-mini) */
518
+ cortexModel?: string;
519
+ } | false;
520
+ /** Uniswap Explore gateway config. Set to false to disable the built-in pool tools. */
521
+ uniswap?: {
522
+ /** Base URL for the Uniswap interface gateway (default: https://interface.gateway.uniswap.org) */
523
+ baseUrl?: string;
524
+ /**
525
+ * RPC URL per hex chain id. Used for on-chain reads (slot0, balance,
526
+ * gas price). Falls back to a public RPC if omitted.
527
+ */
528
+ rpcUrls?: Record<string, string>;
529
+ /** Minimum USD value the user must supply to add liquidity. Default 10. */
530
+ minProvideUsd?: number;
531
+ /**
532
+ * Hit production endpoints (coinpool.app) for addresses + bridge-provider
533
+ * mapping. Set false for staging. Default true.
534
+ */
535
+ isProduction?: boolean;
536
+ } | false;
537
+ }
538
+ export interface LLMToolCall {
539
+ toolName: string;
540
+ args: Record<string, unknown>;
541
+ callId: string;
542
+ }
543
+ export interface LLMResponse {
544
+ text: string;
545
+ toolCalls: LLMToolCall[];
546
+ /** Raw usage stats from the provider */
547
+ usage?: {
548
+ promptTokens: number;
549
+ completionTokens: number;
550
+ totalTokens: number;
551
+ };
552
+ }
553
+ /** Optional flags for an LLM call */
554
+ export interface ChatOptions {
555
+ /** Enable Google Search grounding (Gemini only) */
556
+ googleSearch?: boolean;
557
+ /** Maximum number of retries for transient errors */
558
+ maxRetries?: number;
559
+ /** Delay between retries in ms */
560
+ retryDelayMs?: number;
561
+ }
562
+ export interface LLMProvider {
563
+ /** Send messages to the LLM and get a response */
564
+ chat(messages: ChatMessage[], tools?: ToolDefinition[], options?: ChatOptions): Promise<LLMResponse>;
565
+ }
566
+ //# sourceMappingURL=index.d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,CAAC,CAAC;QACjC,2EAA2E;QAC3E,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB;;;WAGG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,GACD,KAAK,CAAC;CACX;AAID,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,wCAAwC;IACxC,KAAK,CAAC,EAAE;QACN,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,qCAAqC;AACrC,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,KAAK,CAAC,EAAE,cAAc,EAAE,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACtG"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // ============================================================
3
+ // Shared types for keyring-agent-core
4
+ // ============================================================
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,sCAAsC;AACtC,+DAA+D"}