keyring-agent-core 0.2.7 → 0.2.9

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/dist/index.d.ts CHANGED
@@ -448,6 +448,43 @@ declare class PoolService {
448
448
  _keccak(hex: string): string;
449
449
  }
450
450
 
451
+ /**
452
+ * Canonical hex ids of every chain this core CAN support (EVM only). This is the
453
+ * immutable CATALOG; the ACTIVE set may be narrowed at runtime via
454
+ * {@link configureSupportedChains} and can only ever be a subset of this.
455
+ */
456
+ declare const SUPPORTED_CHAINS: readonly ["0x1", "0xa", "0x38", "0x89", "0x2105", "0xa4b1", "0xa86a", "0xe708"];
457
+ /** Canonical hex id of a built-in chain (the immutable catalog), e.g. "0x2105". */
458
+ type SupportedChainId = (typeof SUPPORTED_CHAINS)[number];
459
+ /** Human-readable name of a built-in chain — the other accepted selector form. */
460
+ type SupportedChainName = 'ethereum' | 'optimism' | 'bsc' | 'polygon' | 'base' | 'arbitrum' | 'avalanche' | 'linea';
461
+ /**
462
+ * Any identifier accepted where a built-in chain must be named (e.g.
463
+ * {@link configureSupportedChains} / `AgentConfig.excludeChains`): the canonical
464
+ * hex id OR its human name. Decimal ids ("10") still resolve at runtime but are
465
+ * intentionally left out of the type so editor autocomplete stays clean and
466
+ * typos are caught at compile time.
467
+ */
468
+ type ChainSelector = SupportedChainId | SupportedChainName;
469
+ /** Preferred default if still active, otherwise the first remaining active chain. */
470
+ declare let DEFAULT_CHAIN: string;
471
+ /** Human-readable list of ACTIVE supported chains, for user-facing messages. */
472
+ declare let SUPPORTED_CHAINS_LABEL: string;
473
+ /**
474
+ * Narrow the ACTIVE supported-chain set by REMOVING the given chains from the
475
+ * catalog. You can only ever remove — the active set is always a subset of
476
+ * {@link SUPPORTED_CHAINS}. Guards (per design):
477
+ * - entries that aren't a catalog chain (unknown id/name, non-EVM) are ignored;
478
+ * - an exclude list that would remove EVERY chain is ignored (the set is left
479
+ * at the full catalog) — we never produce an empty supported set;
480
+ * - if the preferred default (Ethereum) is removed, {@link DEFAULT_CHAIN} falls
481
+ * back to the first still-active chain.
482
+ *
483
+ * Call once at startup (AgentCore does this from `config.excludeChains`). Updates
484
+ * every resolver plus the exported `DEFAULT_CHAIN` / `SUPPORTED_CHAINS_LABEL`.
485
+ */
486
+ declare function configureSupportedChains(exclude?: Iterable<ChainSelector>): void;
487
+
451
488
  /** Role inside a conversation */
452
489
  type ChatRole = 'user' | 'assistant' | 'system' | 'tool';
453
490
  /** A single message in the conversation */
@@ -969,6 +1006,13 @@ interface UserContext {
969
1006
  walletAddress?: string | null;
970
1007
  /** Current chain the wallet is on (e.g. "ethereum", "arbitrum", "base"). */
971
1008
  chain?: string | null;
1009
+ /**
1010
+ * The raw user query for this turn (verbatim phrasing). Tools that need to
1011
+ * disambiguate LLM-extracted args against what the user actually typed read it
1012
+ * — e.g. BuyToken checks which token an amount sits next to to decide whether
1013
+ * it's the buy-side or pay-side amount. Optional; absent on programmatic calls.
1014
+ */
1015
+ query?: string;
972
1016
  }
973
1017
  /**
974
1018
  * Platform-agnostic storage interface.
@@ -1064,6 +1108,15 @@ interface AgentConfig {
1064
1108
  * built-in public default for that chain.
1065
1109
  */
1066
1110
  rpcUrls?: Record<string, string>;
1111
+ /**
1112
+ * Restrict which of the built-in supported chains are active by REMOVING the
1113
+ * listed ones. Each entry is a {@link ChainSelector} — the chain's canonical
1114
+ * hex id ("0xa") or its human name ("optimism") — so typos are caught at
1115
+ * compile time. You can ONLY remove chains from the built-in set; a list
1116
+ * covering every chain is ignored (the full set is kept). Omit to keep all
1117
+ * built-in chains enabled.
1118
+ */
1119
+ excludeChains?: ChainSelector[];
1067
1120
  /** Maximum number of ReAct iterations before forcing an answer */
1068
1121
  maxIterations?: number;
1069
1122
  /** Maximum number of messages to keep in history before summarising */
@@ -1225,6 +1278,14 @@ interface ChatOptions {
1225
1278
  maxRetries?: number;
1226
1279
  /** Delay between retries in ms */
1227
1280
  retryDelayMs?: number;
1281
+ /**
1282
+ * Force the model to call one of the supplied `tools` instead of answering in
1283
+ * text (Gemini `functionCallingConfig.mode = "ANY"`). Used by action subagents
1284
+ * that MUST open a form, so the first turn calls a tool directly instead of
1285
+ * burning a round-trip on a text answer that then has to be re-prompted.
1286
+ * Ignored when no tools are passed.
1287
+ */
1288
+ forceToolUse?: boolean;
1228
1289
  }
1229
1290
  interface LLMProvider {
1230
1291
  /** Send messages to the LLM and get a response */
@@ -1562,6 +1623,14 @@ declare class AgentCore {
1562
1623
  * this turn (e.g. a token-picker after the user said "send token" without
1563
1624
  * naming one). Preserves emission order; drops malformed entries.
1564
1625
  */
1626
+ /**
1627
+ * Uppercase only the FIRST character of a button click-prompt so it reads as
1628
+ * a proper sentence when echoed as the user's sent message. Language-agnostic:
1629
+ * locale-aware casing on the leading character only, a harmless no-op for
1630
+ * scripts without letter case (e.g. Japanese/Chinese). Uses code-point
1631
+ * iteration so a leading surrogate-pair/emoji isn't split.
1632
+ */
1633
+ private capitalizeFirst;
1565
1634
  private collectActionButtons;
1566
1635
  private collectUiActions;
1567
1636
  /**
@@ -3370,7 +3439,7 @@ type TopGainersToolConfig = MoralisServiceConfig;
3370
3439
  * Queries Pantograph's `GET /token-list/top-gainers/{chain}?duration=…` — the
3371
3440
  * tokens with the largest USD price increase over a chosen window. Single-chain
3372
3441
  * (Pantograph has no cross-chain feed); defaults to the connected chain, then
3373
- * Base. Returns the canonical trending-token shape: price, market cap, 24h
3442
+ * Ethereum. Returns the canonical trending-token shape: price, market cap, 24h
3374
3443
  * volume, and the price change over the selected window.
3375
3444
  */
3376
3445
  declare class TopGainersTool extends BaseTool {
@@ -5835,6 +5904,32 @@ declare class BuyTokenTool extends BaseTool {
5835
5904
  private buildResult;
5836
5905
  private normaliseAddress;
5837
5906
  private normaliseAmount;
5907
+ /**
5908
+ * Deterministically fix which SIDE an amount belongs to. The LLM occasionally
5909
+ * assigns the spend amount to the wrong field — e.g. "buy WETH with 0.0000011
5910
+ * WBTC" arriving as buy_amount="0.0000011" when 0.0000011 is the WBTC (pay)
5911
+ * amount. When EXACTLY one amount is present and BOTH token symbols are named,
5912
+ * we read the RAW user query and assign the amount to whichever symbol it
5913
+ * physically sits next to. Language-agnostic: proximity/position only, never
5914
+ * prepositions ("with"/"bằng"/"で"). Only corrects when the number AND both
5915
+ * symbols are found verbatim in the query (high confidence); otherwise it
5916
+ * leaves the LLM's assignment untouched, so a correct call is never worsened.
5917
+ */
5918
+ private correctAmountSide;
5919
+ /**
5920
+ * Decide which named token an amount sits next to in the raw query by text
5921
+ * proximity. Returns 'buy' / 'pay' for the closer symbol, or `null` when the
5922
+ * number or either symbol can't be located as a standalone token (caller then
5923
+ * declines to override). Symbols match on token boundaries so "ETH" is not
5924
+ * found inside "WETH".
5925
+ */
5926
+ private nearestSymbolSide;
5927
+ /**
5928
+ * indexOf for a symbol token that must stand alone (not be a substring of a
5929
+ * larger alphanumeric word) — so "eth" matches in "with eth" but not in "weth".
5930
+ * Returns the symbol's index, or -1 when not present as a standalone token.
5931
+ */
5932
+ private indexOfToken;
5838
5933
  private requireChain;
5839
5934
  /**
5840
5935
  * Resolve a token reference (symbol "USDC" or address "0x…") on a chain.
@@ -6286,8 +6381,8 @@ declare class SendNftTool extends BaseWalletActionTool {
6286
6381
  /**
6287
6382
  * Shared JSON-RPC client + default public RPC endpoints.
6288
6383
  *
6289
- * Kept dependency-free (no imports from PoolService / swap) so both
6290
- * `PoolService` and the swap adapters can use it without a circular import.
6384
+ * Kept free of PoolService / swap imports so both `PoolService` and the swap
6385
+ * adapters can use it without a circular import.
6291
6386
  */
6292
6387
  /** Default public RPC endpoint per hex chain id. Single source of truth. */
6293
6388
  declare const DEFAULT_RPC_BY_CHAIN: Record<string, string>;
@@ -6381,7 +6476,7 @@ declare class PantographService {
6381
6476
  * `tokenAddress` work unchanged.
6382
6477
  *
6383
6478
  * Pantograph scopes results to a single chain (it has no cross-chain feed),
6384
- * so when no `chain` is given we fall back to Base ("0x2105").
6479
+ * so when no `chain` is given we fall back to {@link DEFAULT_CHAIN} (Ethereum).
6385
6480
  */
6386
6481
  getTrendingTokens(params?: {
6387
6482
  chain?: string;
@@ -6405,7 +6500,7 @@ declare class PantographService {
6405
6500
  * returned in the canonical {@link TrendingToken} shape.
6406
6501
  *
6407
6502
  * Pantograph scopes results to a single chain (no cross-chain feed), so when
6408
- * no `chain` is given we fall back to Base ("0x2105").
6503
+ * no `chain` is given we fall back to {@link DEFAULT_CHAIN} (Ethereum).
6409
6504
  *
6410
6505
  * `duration` accepts Pantograph windows: "1h", "24h", "7d", "30d".
6411
6506
  */
@@ -6684,4 +6779,4 @@ declare class Summarizer {
6684
6779
  summarize(messages: ChatMessage[]): Promise<string>;
6685
6780
  }
6686
6781
 
6687
- export { AI_AGENT_TOOL_NAMES, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftMessageTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, type ChainMeta, type ChainRef, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type ConfirmAddLiquidityTxProps, type CortexResponse, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DebridgeAdapter, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type HolderChangePeriod, type HolderSupplyTier, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFTContractInfoTool, type NFTContractInfoToolConfig, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, type NFTMetadataToolConfig, NFT_AGENT_TOOL_NAMES, type NativeTokenInfo, type NftMessageToolConfig, type NftTransferLastSale, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, POOL_AGENT_TOOL_NAMES, PantographService, type PantographServiceConfig, type PaymentToken, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, type PoolOnchainInfo, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProviderName, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, type StorageProvider, Subagent, type SubagentCard, type SubagentOptions, type SubagentParams, type SubagentResult, type SubagentTask, type SubagentToggles, SubgraphCoinPoolPairsTool, type SubgraphCoinPoolPairsToolConfig, SubgraphPoolByAddressTool, type SubgraphPoolByAddressToolConfig, SubgraphPoolByPositionIdTool, type SubgraphPoolByPositionIdToolConfig, SubgraphPoolSearchTool, type SubgraphPoolSearchToolConfig, SubgraphPositionDetailTool, type SubgraphPositionDetailToolConfig, SubgraphTrendingPoolsTool, type SubgraphTrendingPoolsToolConfig, type SuggestedAction, Summarizer, type SwapQuoteParams, type SwapQuoteResult, type SwapServiceConfig, SwapServiceFactory, type SwapTokenConfirmTxProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, TRANSFER_TOPIC, TRENDING_DEFAULT_BY_HEX_CHAIN, type TokenAnalyticsResponse, type TokenAnalyticsTimeframeBuckets, TokenAnalyticsTool, type TokenAnalyticsToolConfig, type TokenApproval, type TokenApprovalSpender, type TokenApprovalToken, type TokenBalance, type TokenDisplay, type TokenHoldersResponse, TokenHoldersTool, type TokenHoldersToolConfig, TokenInfoTool, type TokenInfoToolConfig, type TokenMetadata, type TokenScoreMetrics, type TokenScoreResponse, type TokenScoreSupply, type TokenScoreTimeframeBuckets, TokenScoreTool, type TokenScoreToolConfig, type Tool, type ToolDefinition, type ToolKind, type ToolParameter, ToolRegistry, type ToolResult, type TopGainerTimeFrames, type TopGainerToken, type TopGainersTimeFrame, TopGainersTool, type TopGainersToolConfig, TopPoolsTool, type TopPoolsToolConfig, type TrackStatus, type TrackTransactionParams, type TrackTransactionResult, type TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, type UnsignedTx, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, type WalletActionProps, type WalletActionType, type WalletApprovalsResponse, WalletApprovalsTool, type WalletApprovalsToolConfig, type WalletDefiPositionSummary, WalletDefiPositionsTool, type WalletDefiPositionsToolConfig, type WalletDefiPositionsV1Response, type WalletDefiProtocolPositionsResponse, WalletDefiProtocolPositionsTool, type WalletDefiProtocolPositionsToolConfig, type WalletDefiProtocolPositionsV1Response, type WalletDefiSummaryResponse, WalletDefiSummaryTool, type WalletDefiSummaryToolConfig, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, type WalletNetWorthChainBreakdown, type WalletNetWorthResponse, WalletNetWorthTool, type WalletNetWorthToolConfig, type WalletNetWorthUnavailableChain, type WalletNftTransferItem, type WalletNftTransfersResponse, WalletNftTransfersTool, type WalletNftTransfersToolConfig, type WalletPnlDaysWindow, type WalletPnlResponse, type WalletPnlSummaryResponse, WalletPnlSummaryTool, type WalletPnlSummaryToolConfig, type WalletPnlTokenItem, WalletPnlTool, type WalletPnlToolConfig, WalletTokenBalancesTool, type WalletTokenBalancesToolConfig, type WalletTokenTransferItem, type WalletTokenTransfersResponse, WalletTokenTransfersTool, type WalletTokenTransfersToolConfig, ZERO_ADDRESS, buildRangePresets, buildUniswapPoolUrl, clampTick, createAiAgent, createDefaultSubagents, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletAgent, ethCallAt, ethCallByChain, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, priceToTick, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };
6782
+ export { AI_AGENT_TOOL_NAMES, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftMessageTool, BaseSwapService, BaseTool, BaseWalletActionTool, type BuyTokenConfirmTxProps, type BuyTokenSide, BuyTokenTool, type ChainMeta, type ChainRef, type ChainSelector, ChatHistory, type ChatMessage, type ChatOptions, type ChatRole, type CheckApprovalParams, type CheckApprovalResult, type ConfirmAddLiquidityTxProps, type CortexResponse, DEFAULT_CHAIN, DEFAULT_PROVIDER, DEFAULT_RPC_BY_CHAIN, DebridgeAdapter, type DecodedCall, type DecodedEvent, type DecodedParam, type DefaultSubagentName, type DefiPosition, type DefiPositionDetails, type DefiPositionToken, type DefiProtocolSummary, EstimatePoolYieldTool, type EstimatePoolYieldToolConfig, type ExchangeProviderConfig, type ExecuteSwapParams, type ExecuteSwapResult, GeminiProvider, GeminiSearchAiTool, type GeminiSearchAiToolConfig, HEX_TO_PANTOGRAPH, type HolderChangePeriod, type HolderSupplyTier, type IngestKnowledgeBaseInput, type IngestKnowledgeBaseResult, type InputTokenInfo, type KBSearchResult, KnowledgeBase, type KnowledgeBaseEntry, type KnowledgeBaseProvider, type LLMProvider, type LLMProviderConfig, type LLMResponse, type LLMToolCall, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFTContractInfoTool, type NFTContractInfoToolConfig, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, type NFTMetadataToolConfig, NFT_AGENT_TOOL_NAMES, type NativeTokenInfo, type NftMessageToolConfig, type NftTransferLastSale, OpenAddLiquidityFormTool, type OpenAddLiquidityFormToolConfig, POOL_AGENT_TOOL_NAMES, PantographService, type PantographServiceConfig, type PaymentToken, PoolByAddressTool, type PoolByAddressToolConfig, PoolDetailTool, type PoolDetailToolConfig, type PoolDisplayInfo, type PoolOnchainInfo, PoolSearchTool, type PoolSearchToolConfig, PoolService, type PoolServiceConfig, type PresetInputs, PreviewAddLiquidityTool, type PreviewAddLiquidityToolConfig, type PriceBounds, type PriceRangePrefill, type ProviderName, type QuickRate, type RangePreset, type ReActPhase, type ReActStep, type ReActTrace, RelayAdapter, type ResolvedRange, Router, type RouterAssignment, type RouterDecision, SUPPORTED_CHAINS, SUPPORTED_CHAINS_LABEL, SWAP_PROVIDER_CONFIG, SendNativeTool, SendNftTool, SendTokenTool, type StorageProvider, Subagent, type SubagentCard, type SubagentOptions, type SubagentParams, type SubagentResult, type SubagentTask, type SubagentToggles, SubgraphCoinPoolPairsTool, type SubgraphCoinPoolPairsToolConfig, SubgraphPoolByAddressTool, type SubgraphPoolByAddressToolConfig, SubgraphPoolByPositionIdTool, type SubgraphPoolByPositionIdToolConfig, SubgraphPoolSearchTool, type SubgraphPoolSearchToolConfig, SubgraphPositionDetailTool, type SubgraphPositionDetailToolConfig, SubgraphTrendingPoolsTool, type SubgraphTrendingPoolsToolConfig, type SuggestedAction, Summarizer, type SupportedChainId, type SupportedChainName, type SwapQuoteParams, type SwapQuoteResult, type SwapServiceConfig, SwapServiceFactory, type SwapTokenConfirmTxProps, SwapTokenTool, type SwapTxData, Synthesizer, TOKEN_AGENT_TOOL_NAMES, TRANSFER_TOPIC, TRENDING_DEFAULT_BY_HEX_CHAIN, type TokenAnalyticsResponse, type TokenAnalyticsTimeframeBuckets, TokenAnalyticsTool, type TokenAnalyticsToolConfig, type TokenApproval, type TokenApprovalSpender, type TokenApprovalToken, type TokenBalance, type TokenDisplay, type TokenHoldersResponse, TokenHoldersTool, type TokenHoldersToolConfig, TokenInfoTool, type TokenInfoToolConfig, type TokenMetadata, type TokenScoreMetrics, type TokenScoreResponse, type TokenScoreSupply, type TokenScoreTimeframeBuckets, TokenScoreTool, type TokenScoreToolConfig, type Tool, type ToolDefinition, type ToolKind, type ToolParameter, ToolRegistry, type ToolResult, type TopGainerTimeFrames, type TopGainerToken, type TopGainersTimeFrame, TopGainersTool, type TopGainersToolConfig, TopPoolsTool, type TopPoolsToolConfig, type TrackStatus, type TrackTransactionParams, type TrackTransactionResult, type TransactionByHashResponse, TransactionByHashTool, type TransactionByHashToolConfig, type TransactionLog, type TransactionReceipt, type TransactionReceiptLog, type TrendingToken, type TrendingTokenTimeframeBuckets, TrendingTokensTool, type TrendingTokensToolConfig, type UIPayload, UNISWAP_CHAIN_SLUG, type UnsignedTx, type UpstashEmbedStrategy, type UpstashFusionAlgorithm, type UpstashKBUpsertEntry, UpstashKnowledgeBase, type UpstashKnowledgeBaseConfig, type UserContext, type VectorKBConfig, WALLET_ACTION_AGENT_TOOL_NAMES, WALLET_AGENT_TOOL_NAMES, type WalletActionProps, type WalletActionType, type WalletApprovalsResponse, WalletApprovalsTool, type WalletApprovalsToolConfig, type WalletDefiPositionSummary, WalletDefiPositionsTool, type WalletDefiPositionsToolConfig, type WalletDefiPositionsV1Response, type WalletDefiProtocolPositionsResponse, WalletDefiProtocolPositionsTool, type WalletDefiProtocolPositionsToolConfig, type WalletDefiProtocolPositionsV1Response, type WalletDefiSummaryResponse, WalletDefiSummaryTool, type WalletDefiSummaryToolConfig, type WalletHistoryCategory, type WalletHistoryContractInteraction, type WalletHistoryErc20Transfer, type WalletHistoryItem, type WalletHistoryNativeTransfer, type WalletHistoryNftTransfer, type WalletHistoryResponse, WalletHistoryTool, type WalletHistoryToolConfig, WalletNFTsTool, type WalletNFTsToolConfig, type WalletNetWorthChainBreakdown, type WalletNetWorthResponse, WalletNetWorthTool, type WalletNetWorthToolConfig, type WalletNetWorthUnavailableChain, type WalletNftTransferItem, type WalletNftTransfersResponse, WalletNftTransfersTool, type WalletNftTransfersToolConfig, type WalletPnlDaysWindow, type WalletPnlResponse, type WalletPnlSummaryResponse, WalletPnlSummaryTool, type WalletPnlSummaryToolConfig, type WalletPnlTokenItem, WalletPnlTool, type WalletPnlToolConfig, WalletTokenBalancesTool, type WalletTokenBalancesToolConfig, type WalletTokenTransferItem, type WalletTokenTransfersResponse, WalletTokenTransfersTool, type WalletTokenTransfersToolConfig, ZERO_ADDRESS, buildRangePresets, buildUniswapPoolUrl, clampTick, configureSupportedChains, createAiAgent, createDefaultSubagents, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletAgent, ethCallAt, ethCallByChain, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, priceToTick, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };