keyring-agent-core 0.2.26 → 0.2.28

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
@@ -1848,6 +1848,209 @@ declare class AgentCore {
1848
1848
  getToolRegistry(): ToolRegistry;
1849
1849
  }
1850
1850
 
1851
+ /**
1852
+ * Configuration for {@link WebsiteTrustKeyringAgent}.
1853
+ *
1854
+ * The agent is self-contained — it does NOT need the full {@link AgentCore}
1855
+ * pipeline. A consuming app just constructs it once (optionally with its own
1856
+ * Gemini proxy / model) and calls {@link WebsiteTrustKeyringAgent.chat}.
1857
+ */
1858
+ interface WebsiteTrustKeyringAgentConfig {
1859
+ /**
1860
+ * Gemini LLM config (model / baseUrl / temperature). Omit to use the default
1861
+ * proxy. Ignored when an explicit `provider` is supplied.
1862
+ */
1863
+ llm?: LLMProviderConfig;
1864
+ /** Bring your own LLM provider (e.g. a shared instance). Overrides `llm`. */
1865
+ provider?: LLMProvider;
1866
+ /** Enable debug logging. */
1867
+ debug?: boolean;
1868
+ }
1869
+ /** Input for a single website-trust analysis ({@link WebsiteTrustKeyringAgent.chat}). */
1870
+ interface WebsiteTrustInput {
1871
+ /** The website URL to analyze (e.g. "https://example.com"). */
1872
+ url: string;
1873
+ /**
1874
+ * When true the site is PRE-MARKED official/trusted by the caller: the agent
1875
+ * skips the phishing/impersonation checks and just describes what the site is.
1876
+ * When false the agent runs the full multi-step phishing assessment.
1877
+ */
1878
+ isMarkOfficial: boolean;
1879
+ /**
1880
+ * Language for the user-facing strings (`answer`, `reasons`) — a BCP-47 tag
1881
+ * ("vi", "en") or a language name. Defaults to English.
1882
+ */
1883
+ language?: string;
1884
+ /** Cancels the underlying LLM requests when aborted. */
1885
+ signal?: AbortSignal;
1886
+ }
1887
+ /** Structured trust signals returned alongside the natural-language answer. */
1888
+ interface WebsiteTrustExtraData {
1889
+ /** The site that was analyzed (hostname when parseable, else the raw input). */
1890
+ currentSite: string;
1891
+ /**
1892
+ * True under either criterion: (1) it impersonates a WELL-KNOWN brand
1893
+ * (prominent in crypto / blockchain / NFT / DeFi / Web3, or otherwise major)
1894
+ * without being one of that brand's official domains; or (2) it does not
1895
+ * impersonate anyone but a real source (article / scanner / blocklist) reports
1896
+ * it as phishing/scam. An obscure or brand-free site with no such report is
1897
+ * NOT flagged.
1898
+ */
1899
+ isPhishing: boolean;
1900
+ /**
1901
+ * The reputable site this one is judged to copy / impersonate (domain or
1902
+ * brand name, e.g. "relay.link"). Present ONLY when the verdict is that it
1903
+ * imitates another site.
1904
+ */
1905
+ copiedSite?: string;
1906
+ /**
1907
+ * At least 3 (up to 5) concise, expert, evidence-grounded reasons the site is
1908
+ * flagged as phishing — the look-alike trick used and any scam-report /
1909
+ * article findings, written in the requested language. Report-based reasons
1910
+ * cite their source as a markdown link; unsourced accusations are omitted so a
1911
+ * legitimate-but-obscure site is never defamed. Present ONLY when `isPhishing`.
1912
+ */
1913
+ reasons?: string[];
1914
+ }
1915
+ /** Result of {@link WebsiteTrustKeyringAgent.chat}. */
1916
+ interface WebsiteTrustResult {
1917
+ /**
1918
+ * Natural-language information ABOUT the site under test — what it is, what it
1919
+ * does and who runs it — ending with the safety verdict, in the requested
1920
+ * language. The purpose is to tell the user what the provided site actually is.
1921
+ */
1922
+ answer: string;
1923
+ /** Structured trust signals. */
1924
+ extraData: WebsiteTrustExtraData;
1925
+ }
1926
+ /**
1927
+ * Self-contained website phishing-detection agent backed by a search-grounded
1928
+ * Gemini model.
1929
+ *
1930
+ * Two clean phases, so accuracy and output-language never fight each other:
1931
+ * 1. GATHER — one web-search call investigates the EXACT domain and returns
1932
+ * structured signals + English evidence (is it a brand's official site, is
1933
+ * it impersonating another site, any scam reports). Anti-impersonation
1934
+ * rigor (no autocorrect, exact name+TLD match) lives here.
1935
+ * 2. The phishing verdict is derived from those signals in code, so it is
1936
+ * stable and not at the mercy of one free-form answer.
1937
+ * 3. PRESENT — one non-search call rewrites the evidence into the user-facing
1938
+ * `answer` + `reasons`, with the output language mandated at the system
1939
+ * level. Both come from the SAME call, so they are always one language.
1940
+ *
1941
+ * `isMarkOfficial: true` skips the phishing checks: it just describes the site
1942
+ * (trusted by the caller, `isPhishing: false`).
1943
+ *
1944
+ * Returns `{ answer, extraData: { currentSite, isPhishing, copiedSite?,
1945
+ * reasons? } }`. Designed to be exported and used standalone.
1946
+ */
1947
+ declare class WebsiteTrustKeyringAgent {
1948
+ private readonly llm;
1949
+ private readonly debug;
1950
+ constructor(config?: WebsiteTrustKeyringAgentConfig);
1951
+ chat(input: WebsiteTrustInput): Promise<WebsiteTrustResult>;
1952
+ /**
1953
+ * Derive the phishing verdict + raw (English) evidence reasons from the
1954
+ * investigation — pure logic, no AI, so the verdict is stable across runs.
1955
+ */
1956
+ private buildVerdict;
1957
+ /**
1958
+ * ONE search-grounded investigation of the EXACT domain. Returns every signal
1959
+ * the verdict needs plus English evidence. Folding the old brand / existence /
1960
+ * describe steps into a single call removes the multi-call fragility (any one
1961
+ * step returning an empty/unparseable turn used to blank out the analysis).
1962
+ */
1963
+ private investigate;
1964
+ /** Gather a plain description for a caller-trusted (official) site. */
1965
+ private describeOfficial;
1966
+ /**
1967
+ * ONE non-search call that turns the finished assessment into the user-facing
1968
+ * `answer` + `reasons`, in the requested language. Because both come from the
1969
+ * SAME call — with the language mandated at the system level — they are always
1970
+ * the same language and never leak the English evidence. Falls back to the raw
1971
+ * facts (English) only if the model reply is unusable, so we never return empty.
1972
+ */
1973
+ private present;
1974
+ /**
1975
+ * Resolve a caller-supplied language (a BCP-47 tag like "vi" or a name) to an
1976
+ * explicit English language NAME the model cannot misread. Bare tags like "vi"
1977
+ * are sometimes ignored; "Vietnamese" is unambiguous. Unknown values pass
1978
+ * through unchanged (a full name like "Tiếng Việt" already works).
1979
+ */
1980
+ private languageLabel;
1981
+ /**
1982
+ * System instruction for user-facing presentation calls. Reinforces — at the
1983
+ * system level — the inline language directive in the prompt. Pass an explicit
1984
+ * language NAME (via {@link languageLabel}), not a bare tag.
1985
+ */
1986
+ private presentationSystem;
1987
+ /**
1988
+ * One focused LLM call returning the parsed JSON object.
1989
+ *
1990
+ * - `system` swaps the system instruction. The gather call uses the default
1991
+ * {@link GATHER_SYSTEM_PROMPT}; the user-facing presentation call passes
1992
+ * {@link presentationSystem} so the output language is mandated at the
1993
+ * strongest level (system instructions dominate inline ones).
1994
+ * - `googleSearch` defaults to true; pass false for pure rewrite/formatting
1995
+ * calls where grounding only drags the reply toward the source language.
1996
+ * - `maxRetries` lets search-grounded calls survive the occasional empty turn
1997
+ * (a single attempt used to blank out the whole analysis).
1998
+ */
1999
+ private askJson;
2000
+ /** Hostname when the URL parses, else the raw (trimmed) input. */
2001
+ private normalizeSite;
2002
+ /** Lowercased hostname with any scheme/path and a leading "www." stripped. */
2003
+ private toHost;
2004
+ /**
2005
+ * True when `test` is the SAME registrable domain as `official` (or a real
2006
+ * subdomain of it) — a deterministic, byte-exact comparison. This is what
2007
+ * defeats look-alikes: `binance.co`, `binаnce.com` (homoglyph) and
2008
+ * `secure-binance.com` are NOT equal to `binance.com`, while `www.binance.com`
2009
+ * and `accounts.binance.com` ARE. Used to override the model's exact-match flag.
2010
+ */
2011
+ private isSameRegistrableDomain;
2012
+ /** Lowercased, letters-and-digits-only form (drops dots, hyphens, etc.). */
2013
+ private alnum;
2014
+ /** The registrable name label (the one just before the TLD), letters+digits only. */
2015
+ private registrableName;
2016
+ /** Levenshtein edit distance between two strings. */
2017
+ private editDistance;
2018
+ /**
2019
+ * True when `name` is a typosquat near-miss of `core` — close but not equal,
2020
+ * e.g. "opensee" vs "opensea" (a missing/swapped/doubled letter). The allowed
2021
+ * distance scales with length so short names don't false-match.
2022
+ */
2023
+ private isNearMiss;
2024
+ /**
2025
+ * True when the host trades on a brand's core name — the generic squatting
2026
+ * signal the model under-reports. Covers BOTH combosquats by EMBEDDING
2027
+ * (`infurarpc` contains "infura", `binance-pro` contains "binance") AND
2028
+ * typosquats by NEAR-MISS (`opensee` ≈ "opensea"). The brand core comes from
2029
+ * the official domain's first label (preferred) and/or the model's brand name;
2030
+ * a ≥4-char guard avoids trivial coincidences. Brand-agnostic — it works for
2031
+ * any brand the model can name, so it covers the class, not one domain.
2032
+ */
2033
+ private carriesBrandName;
2034
+ /**
2035
+ * Name the specific look-alike trick a domain uses against the official one,
2036
+ * when it is one of the high-confidence, deterministically detectable cases.
2037
+ * Returns English evidence (later localized by {@link present}); `undefined`
2038
+ * when the difference is not one we can state with certainty.
2039
+ */
2040
+ private describeLookAlike;
2041
+ /** Parse the first balanced JSON object out of the model's reply. */
2042
+ private parseJson;
2043
+ /** Trim a value to a non-empty string, treating null-ish words as absent. */
2044
+ private cleanStr;
2045
+ /**
2046
+ * Normalize a model `string[]` into a clean array. Accepts an array of
2047
+ * strings, or a single string (split on lines / bullets) as a fallback.
2048
+ */
2049
+ private cleanStrArray;
2050
+ /** Drop case-insensitive duplicate strings, preserving order. */
2051
+ private dedupe;
2052
+ }
2053
+
1851
2054
  /**
1852
2055
  * Router — top-level orchestrator in the Router → Subagent → Tool architecture.
1853
2056
  *
@@ -7770,4 +7973,4 @@ declare class AbortError extends Error {
7770
7973
  */
7771
7974
  declare function isAbortError(err: unknown): boolean;
7772
7975
 
7773
- export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftAiTool, 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, ManageLiquidityRedirectTool, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, 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, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, 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, SubgraphAddPoolTool, type SubgraphAddPoolToolConfig, 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, WalletActionAppTool, type WalletActionAppToolConfig, 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 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, createWalletActionAppTools, createWalletAgent, ethCallAt, ethCallByChain, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, normalizePriceRangeToPool, priceToTick, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };
7976
+ export { AI_AGENT_TOOL_NAMES, AbortError, type AddLiquidityFormProps, type AddLiquiditySummary, type AffiliateFee, type AgentConfig, AgentCore, type AgentResponse, ApproveTokenTool, BaseNftAiTool, 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, ManageLiquidityRedirectTool, type MoralisApiResponse, MoralisService, type MoralisServiceConfig, NFTContractInfoTool, type NFTContractMetadata, type NFTItem, type NFTLastSale, type NFTMetadata, NFTMetadataTool, 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, PoolFallbackAiTool, type PoolFallbackAiToolConfig, type PoolOnchainInfo, PoolPriceRangesTool, type PoolPriceRangesToolConfig, 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, SubgraphAddPoolTool, type SubgraphAddPoolToolConfig, 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, WalletActionAppTool, type WalletActionAppToolConfig, 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 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, type WebsiteTrustExtraData, type WebsiteTrustInput, WebsiteTrustKeyringAgent, type WebsiteTrustKeyringAgentConfig, type WebsiteTrustResult, ZERO_ADDRESS, buildRangePresets, buildUniswapPoolUrl, clampTick, configureSupportedChains, createAiAgent, createDefaultSubagents, createNftAgent, createPoolAgent, createTokenAgent, createWalletActionAgent, createWalletActionAppTools, createWalletAgent, ethCallAt, ethCallByChain, getAffiliateFee, getChainMeta, getDefaultRpcUrl, getGatewayAddress, getNativeTokenInfo, getPositionManagerAddress, getProviderByChain, ingestKnowledgeBase, isAbortError, normalizePriceRangeToPool, priceToTick, resolveRpcUrl, roundTickToSpacing, rpcCall, setRpcOverrides, swapServiceFactory, tickToPrice, toPantographChain };