@blockrun/llm 3.18.0 → 3.19.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.
package/dist/index.d.cts CHANGED
@@ -2704,6 +2704,31 @@ declare function formatFundingMessageCompact(address: string): string;
2704
2704
  declare const WALLET_FILE_PATH: string;
2705
2705
  declare const WALLET_DIR_PATH: string;
2706
2706
 
2707
+ /** Opt-in configuration for Solana batch-settlement. */
2708
+ interface SolanaBatchOptions {
2709
+ /**
2710
+ * Base58 operator public keys you trust to sign vouchers against your
2711
+ * channel. A batch accept naming any other operator is ignored, and the
2712
+ * call pays with `exact`. Required: there is no built-in default key.
2713
+ */
2714
+ operators: string[];
2715
+ /**
2716
+ * Total escrow, in USD, this client will lock in one channel (the first
2717
+ * deposit plus every top-up). This is the most an operator could take
2718
+ * without another signature from you. Accepts `"$5"`, `"5"` or `5`.
2719
+ * Default `"$1"` (the `@x402/svm` default).
2720
+ */
2721
+ maxDeposit?: string | number;
2722
+ /**
2723
+ * Where open-channel state is persisted between processes.
2724
+ * - default: `~/.blockrun/solana-batch/<wallet address>.json` (mode 0600)
2725
+ * - a path: that file
2726
+ * - `false`: in memory only. On restart the client finds its channel again
2727
+ * by scanning the chain for it.
2728
+ */
2729
+ channelStore?: string | false;
2730
+ }
2731
+
2707
2732
  interface SolanaLLMClientOptions extends ApiKeyOptions {
2708
2733
  /** bs58-encoded Solana secret key (64 bytes). Optional if SOLANA_WALLET_KEY env var is set. */
2709
2734
  privateKey?: string;
@@ -2726,6 +2751,14 @@ interface SolanaLLMClientOptions extends ApiKeyOptions {
2726
2751
  rpcHeaders?: Record<string, string>;
2727
2752
  /** Request timeout in milliseconds (default: 60000) */
2728
2753
  timeout?: number;
2754
+ /**
2755
+ * Opt in to x402 batch-settlement (metered billing) for chat completions.
2756
+ * Each call is charged what it actually cost, at most its quoted ceiling,
2757
+ * from a deposit-backed payment channel instead of a per-call transfer.
2758
+ * Needs the optional peers `@x402/core`, `@x402/svm` and `@solana/kit`.
2759
+ * Ignored in API-key mode. See {@link SolanaBatchOptions}.
2760
+ */
2761
+ batch?: SolanaBatchOptions;
2729
2762
  }
2730
2763
  declare class SolanaLLMClient {
2731
2764
  static readonly SOLANA_API_URL = "https://sol.blockrun.ai/api";
@@ -2742,7 +2775,16 @@ declare class SolanaLLMClient {
2742
2775
  private addressCache;
2743
2776
  private modelPricingCache;
2744
2777
  private modelPricingPromise;
2778
+ private batchPayer?;
2745
2779
  constructor(options?: SolanaLLMClientOptions);
2780
+ /**
2781
+ * Close this wallet's batch-settlement channel and return its unused escrow.
2782
+ *
2783
+ * The gateway closes it cooperatively when it can; otherwise this starts a
2784
+ * payer-forced close and the escrow comes back after the channel's grace
2785
+ * period. Only meaningful with the `batch` option.
2786
+ */
2787
+ closeBatchChannel(): Promise<unknown>;
2746
2788
  /** Get Solana wallet address (public key in base58). */
2747
2789
  getWalletAddress(): Promise<string>;
2748
2790
  /** Simple 1-line chat. */
@@ -2993,6 +3035,10 @@ declare class SolanaLLMClient {
2993
3035
  */
2994
3036
  private followSolanaJob;
2995
3037
  private signPaymentFrom402;
3038
+ /** Read a `402`'s payment requirements from its header, or its JSON body. */
3039
+ private readPaymentRequired;
3040
+ /** Sign the `exact` accept of a 402 as an SPL TransferChecked payment. */
3041
+ private signExactPayment;
2996
3042
  private handlePaymentAndRetry;
2997
3043
  private requestWithPaymentRaw;
2998
3044
  private handlePaymentAndRetryRaw;
@@ -3375,4 +3421,4 @@ declare function validateTemperature(temperature?: number): void;
3375
3421
  */
3376
3422
  declare function validateTopP(topP?: number): void;
3377
3423
 
3378
- export { APIError, API_KEY_URL, ARC_CHAIN_ID, AnthropicClient, type ApiKeyOptions, type AudioModel, type AudioTrack, BASE_CHAIN_ID, type BarResolution, type BlockRunAnthropicOptions, BlockrunClient, type BlockrunClientOptions, BlockrunError, type CallInitiatedResponse, type CallModel, type CallOptions, type CallStatusResponse, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatResponseWithCost, type ChatUsage, type CostEntry, type CostEstimate, type CreatePaymentOptions, EVM_NETWORKS, type EvmNetwork, type FunctionCall, type FunctionDefinition, type HistoryOptions, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, KNOWN_PROVIDERS, LLMClient, type LLMClientOptions, type ListOptions, type MarketSession, type Model, MusicClient, type MusicClientOptions, type MusicGenerateOptions, type MusicResponse, NETWORK_ALIASES, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PHONE_PRICES, PORTAL_URL, PORTRAIT_ENROLLMENT_PRICE_USD, PaymentError, type PaymentLinks, type PhoneBuyOptions, type PhoneBuyResponse, PhoneClient, type PhoneClientOptions, type PhoneListResponse, type PhoneLookupResponse, type PhoneNumberRecord, type PhoneReleaseResponse, type PhoneRenewResponse, type PollOptions, PortraitClient, type PortraitClientOptions, type PortraitEnrollOptions, type PortraitEnrollResponse, type PriceBar, type PriceCategory, PriceClient, type PriceClientOptions, type PriceHistoryResponse, type PriceOptions, type PricePoint, RPC_PRICE_USD, type ResponseFormat, RetiredEndpointError, type RoutingDecision, type RoutingProfile, type RoutingTaskType, type RoutingTier, type RoutingTierConfig, type RpcBatchRequest, RpcClient, type RpcClientOptions, type RpcError, type RpcNetwork, type RpcResponse, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, SUPPORTED_NETWORKS, SearchClient, type SearchClientOptions, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SearchUsage, type SmartChatCompletionOptions, type SmartChatCompletionResponse, type SmartChatOptions, type SmartChatResponse, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type SoundEffectOptions, type SpeechAudio, SpeechClient, type SpeechClientOptions, type SpeechGenerateOptions, type SpeechModel, type SpeechResponse, type SpeechVoice, type Spending, type SpendingReport, type StockMarket, SurfClient, type SurfClientOptions, type SymbolListResponse, type Tool, type ToolCall, type ToolChoice, USDC_ARC, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, VideoClient, type VideoClientOptions, type VideoClip, type VideoGenerateOptions, type VideoModel, type VideoResponse, VoiceClient, type VoiceClientOptions, type VoiceInfo, type VoicePreset, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XSearchSource, clearCache, createPaymentPayload, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, evmNetwork, extractPaymentDetails, formatFundingMessageCompact, formatNeedsFundingMessage, formatSolanaWalletMigrationNotice, formatWalletCreatedMessage, formatWalletMigrationNotice, getCached, getCachedByRequest, getCostLogSummary, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, importSolanaWallet, importWallet, listDiscoveredSolanaWallets, listDiscoveredWallets, loadSolanaWallet, loadWallet, logCost, parsePaymentRequired, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentClient, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, validateMaxTokens, validateModel, validateTemperature, validateTopP };
3424
+ export { APIError, API_KEY_URL, ARC_CHAIN_ID, AnthropicClient, type ApiKeyOptions, type AudioModel, type AudioTrack, BASE_CHAIN_ID, type BarResolution, type BlockRunAnthropicOptions, BlockrunClient, type BlockrunClientOptions, BlockrunError, type CallInitiatedResponse, type CallModel, type CallOptions, type CallStatusResponse, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatResponseWithCost, type ChatUsage, type CostEntry, type CostEstimate, type CreatePaymentOptions, EVM_NETWORKS, type EvmNetwork, type FunctionCall, type FunctionDefinition, type HistoryOptions, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, KNOWN_PROVIDERS, LLMClient, type LLMClientOptions, type ListOptions, type MarketSession, type Model, MusicClient, type MusicClientOptions, type MusicGenerateOptions, type MusicResponse, NETWORK_ALIASES, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PHONE_PRICES, PORTAL_URL, PORTRAIT_ENROLLMENT_PRICE_USD, PaymentError, type PaymentLinks, type PhoneBuyOptions, type PhoneBuyResponse, PhoneClient, type PhoneClientOptions, type PhoneListResponse, type PhoneLookupResponse, type PhoneNumberRecord, type PhoneReleaseResponse, type PhoneRenewResponse, type PollOptions, PortraitClient, type PortraitClientOptions, type PortraitEnrollOptions, type PortraitEnrollResponse, type PriceBar, type PriceCategory, PriceClient, type PriceClientOptions, type PriceHistoryResponse, type PriceOptions, type PricePoint, RPC_PRICE_USD, type ResponseFormat, RetiredEndpointError, type RoutingDecision, type RoutingProfile, type RoutingTaskType, type RoutingTier, type RoutingTierConfig, type RpcBatchRequest, RpcClient, type RpcClientOptions, type RpcError, type RpcNetwork, type RpcResponse, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, SUPPORTED_NETWORKS, SearchClient, type SearchClientOptions, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SearchUsage, type SmartChatCompletionOptions, type SmartChatCompletionResponse, type SmartChatOptions, type SmartChatResponse, type SolanaBatchOptions, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type SoundEffectOptions, type SpeechAudio, SpeechClient, type SpeechClientOptions, type SpeechGenerateOptions, type SpeechModel, type SpeechResponse, type SpeechVoice, type Spending, type SpendingReport, type StockMarket, SurfClient, type SurfClientOptions, type SymbolListResponse, type Tool, type ToolCall, type ToolChoice, USDC_ARC, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, VideoClient, type VideoClientOptions, type VideoClip, type VideoGenerateOptions, type VideoModel, type VideoResponse, VoiceClient, type VoiceClientOptions, type VoiceInfo, type VoicePreset, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XSearchSource, clearCache, createPaymentPayload, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, evmNetwork, extractPaymentDetails, formatFundingMessageCompact, formatNeedsFundingMessage, formatSolanaWalletMigrationNotice, formatWalletCreatedMessage, formatWalletMigrationNotice, getCached, getCachedByRequest, getCostLogSummary, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, importSolanaWallet, importWallet, listDiscoveredSolanaWallets, listDiscoveredWallets, loadSolanaWallet, loadWallet, logCost, parsePaymentRequired, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentClient, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, validateMaxTokens, validateModel, validateTemperature, validateTopP };
package/dist/index.d.ts CHANGED
@@ -2704,6 +2704,31 @@ declare function formatFundingMessageCompact(address: string): string;
2704
2704
  declare const WALLET_FILE_PATH: string;
2705
2705
  declare const WALLET_DIR_PATH: string;
2706
2706
 
2707
+ /** Opt-in configuration for Solana batch-settlement. */
2708
+ interface SolanaBatchOptions {
2709
+ /**
2710
+ * Base58 operator public keys you trust to sign vouchers against your
2711
+ * channel. A batch accept naming any other operator is ignored, and the
2712
+ * call pays with `exact`. Required: there is no built-in default key.
2713
+ */
2714
+ operators: string[];
2715
+ /**
2716
+ * Total escrow, in USD, this client will lock in one channel (the first
2717
+ * deposit plus every top-up). This is the most an operator could take
2718
+ * without another signature from you. Accepts `"$5"`, `"5"` or `5`.
2719
+ * Default `"$1"` (the `@x402/svm` default).
2720
+ */
2721
+ maxDeposit?: string | number;
2722
+ /**
2723
+ * Where open-channel state is persisted between processes.
2724
+ * - default: `~/.blockrun/solana-batch/<wallet address>.json` (mode 0600)
2725
+ * - a path: that file
2726
+ * - `false`: in memory only. On restart the client finds its channel again
2727
+ * by scanning the chain for it.
2728
+ */
2729
+ channelStore?: string | false;
2730
+ }
2731
+
2707
2732
  interface SolanaLLMClientOptions extends ApiKeyOptions {
2708
2733
  /** bs58-encoded Solana secret key (64 bytes). Optional if SOLANA_WALLET_KEY env var is set. */
2709
2734
  privateKey?: string;
@@ -2726,6 +2751,14 @@ interface SolanaLLMClientOptions extends ApiKeyOptions {
2726
2751
  rpcHeaders?: Record<string, string>;
2727
2752
  /** Request timeout in milliseconds (default: 60000) */
2728
2753
  timeout?: number;
2754
+ /**
2755
+ * Opt in to x402 batch-settlement (metered billing) for chat completions.
2756
+ * Each call is charged what it actually cost, at most its quoted ceiling,
2757
+ * from a deposit-backed payment channel instead of a per-call transfer.
2758
+ * Needs the optional peers `@x402/core`, `@x402/svm` and `@solana/kit`.
2759
+ * Ignored in API-key mode. See {@link SolanaBatchOptions}.
2760
+ */
2761
+ batch?: SolanaBatchOptions;
2729
2762
  }
2730
2763
  declare class SolanaLLMClient {
2731
2764
  static readonly SOLANA_API_URL = "https://sol.blockrun.ai/api";
@@ -2742,7 +2775,16 @@ declare class SolanaLLMClient {
2742
2775
  private addressCache;
2743
2776
  private modelPricingCache;
2744
2777
  private modelPricingPromise;
2778
+ private batchPayer?;
2745
2779
  constructor(options?: SolanaLLMClientOptions);
2780
+ /**
2781
+ * Close this wallet's batch-settlement channel and return its unused escrow.
2782
+ *
2783
+ * The gateway closes it cooperatively when it can; otherwise this starts a
2784
+ * payer-forced close and the escrow comes back after the channel's grace
2785
+ * period. Only meaningful with the `batch` option.
2786
+ */
2787
+ closeBatchChannel(): Promise<unknown>;
2746
2788
  /** Get Solana wallet address (public key in base58). */
2747
2789
  getWalletAddress(): Promise<string>;
2748
2790
  /** Simple 1-line chat. */
@@ -2993,6 +3035,10 @@ declare class SolanaLLMClient {
2993
3035
  */
2994
3036
  private followSolanaJob;
2995
3037
  private signPaymentFrom402;
3038
+ /** Read a `402`'s payment requirements from its header, or its JSON body. */
3039
+ private readPaymentRequired;
3040
+ /** Sign the `exact` accept of a 402 as an SPL TransferChecked payment. */
3041
+ private signExactPayment;
2996
3042
  private handlePaymentAndRetry;
2997
3043
  private requestWithPaymentRaw;
2998
3044
  private handlePaymentAndRetryRaw;
@@ -3375,4 +3421,4 @@ declare function validateTemperature(temperature?: number): void;
3375
3421
  */
3376
3422
  declare function validateTopP(topP?: number): void;
3377
3423
 
3378
- export { APIError, API_KEY_URL, ARC_CHAIN_ID, AnthropicClient, type ApiKeyOptions, type AudioModel, type AudioTrack, BASE_CHAIN_ID, type BarResolution, type BlockRunAnthropicOptions, BlockrunClient, type BlockrunClientOptions, BlockrunError, type CallInitiatedResponse, type CallModel, type CallOptions, type CallStatusResponse, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatResponseWithCost, type ChatUsage, type CostEntry, type CostEstimate, type CreatePaymentOptions, EVM_NETWORKS, type EvmNetwork, type FunctionCall, type FunctionDefinition, type HistoryOptions, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, KNOWN_PROVIDERS, LLMClient, type LLMClientOptions, type ListOptions, type MarketSession, type Model, MusicClient, type MusicClientOptions, type MusicGenerateOptions, type MusicResponse, NETWORK_ALIASES, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PHONE_PRICES, PORTAL_URL, PORTRAIT_ENROLLMENT_PRICE_USD, PaymentError, type PaymentLinks, type PhoneBuyOptions, type PhoneBuyResponse, PhoneClient, type PhoneClientOptions, type PhoneListResponse, type PhoneLookupResponse, type PhoneNumberRecord, type PhoneReleaseResponse, type PhoneRenewResponse, type PollOptions, PortraitClient, type PortraitClientOptions, type PortraitEnrollOptions, type PortraitEnrollResponse, type PriceBar, type PriceCategory, PriceClient, type PriceClientOptions, type PriceHistoryResponse, type PriceOptions, type PricePoint, RPC_PRICE_USD, type ResponseFormat, RetiredEndpointError, type RoutingDecision, type RoutingProfile, type RoutingTaskType, type RoutingTier, type RoutingTierConfig, type RpcBatchRequest, RpcClient, type RpcClientOptions, type RpcError, type RpcNetwork, type RpcResponse, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, SUPPORTED_NETWORKS, SearchClient, type SearchClientOptions, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SearchUsage, type SmartChatCompletionOptions, type SmartChatCompletionResponse, type SmartChatOptions, type SmartChatResponse, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type SoundEffectOptions, type SpeechAudio, SpeechClient, type SpeechClientOptions, type SpeechGenerateOptions, type SpeechModel, type SpeechResponse, type SpeechVoice, type Spending, type SpendingReport, type StockMarket, SurfClient, type SurfClientOptions, type SymbolListResponse, type Tool, type ToolCall, type ToolChoice, USDC_ARC, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, VideoClient, type VideoClientOptions, type VideoClip, type VideoGenerateOptions, type VideoModel, type VideoResponse, VoiceClient, type VoiceClientOptions, type VoiceInfo, type VoicePreset, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XSearchSource, clearCache, createPaymentPayload, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, evmNetwork, extractPaymentDetails, formatFundingMessageCompact, formatNeedsFundingMessage, formatSolanaWalletMigrationNotice, formatWalletCreatedMessage, formatWalletMigrationNotice, getCached, getCachedByRequest, getCostLogSummary, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, importSolanaWallet, importWallet, listDiscoveredSolanaWallets, listDiscoveredWallets, loadSolanaWallet, loadWallet, logCost, parsePaymentRequired, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentClient, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, validateMaxTokens, validateModel, validateTemperature, validateTopP };
3424
+ export { APIError, API_KEY_URL, ARC_CHAIN_ID, AnthropicClient, type ApiKeyOptions, type AudioModel, type AudioTrack, BASE_CHAIN_ID, type BarResolution, type BlockRunAnthropicOptions, BlockrunClient, type BlockrunClientOptions, BlockrunError, type CallInitiatedResponse, type CallModel, type CallOptions, type CallStatusResponse, type ChatChoice, type ChatCompletionOptions, type ChatMessage, type ChatOptions, type ChatResponse, type ChatResponseWithCost, type ChatUsage, type CostEntry, type CostEstimate, type CreatePaymentOptions, EVM_NETWORKS, type EvmNetwork, type FunctionCall, type FunctionDefinition, type HistoryOptions, ImageClient, type ImageClientOptions, type ImageData, type ImageEditOptions, type ImageGenerateOptions, type ImageModel, type ImageResponse, KNOWN_PROVIDERS, LLMClient, type LLMClientOptions, type ListOptions, type MarketSession, type Model, MusicClient, type MusicClientOptions, type MusicGenerateOptions, type MusicResponse, NETWORK_ALIASES, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PHONE_PRICES, PORTAL_URL, PORTRAIT_ENROLLMENT_PRICE_USD, PaymentError, type PaymentLinks, type PhoneBuyOptions, type PhoneBuyResponse, PhoneClient, type PhoneClientOptions, type PhoneListResponse, type PhoneLookupResponse, type PhoneNumberRecord, type PhoneReleaseResponse, type PhoneRenewResponse, type PollOptions, PortraitClient, type PortraitClientOptions, type PortraitEnrollOptions, type PortraitEnrollResponse, type PriceBar, type PriceCategory, PriceClient, type PriceClientOptions, type PriceHistoryResponse, type PriceOptions, type PricePoint, RPC_PRICE_USD, type ResponseFormat, RetiredEndpointError, type RoutingDecision, type RoutingProfile, type RoutingTaskType, type RoutingTier, type RoutingTierConfig, type RpcBatchRequest, RpcClient, type RpcClientOptions, type RpcError, type RpcNetwork, type RpcResponse, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, SUPPORTED_NETWORKS, SearchClient, type SearchClientOptions, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SearchUsage, type SmartChatCompletionOptions, type SmartChatCompletionResponse, type SmartChatOptions, type SmartChatResponse, type SolanaBatchOptions, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type SoundEffectOptions, type SpeechAudio, SpeechClient, type SpeechClientOptions, type SpeechGenerateOptions, type SpeechModel, type SpeechResponse, type SpeechVoice, type Spending, type SpendingReport, type StockMarket, SurfClient, type SurfClientOptions, type SymbolListResponse, type Tool, type ToolCall, type ToolChoice, USDC_ARC, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, VideoClient, type VideoClientOptions, type VideoClip, type VideoGenerateOptions, type VideoModel, type VideoResponse, VoiceClient, type VoiceClientOptions, type VoiceInfo, type VoicePreset, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XSearchSource, clearCache, createPaymentPayload, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, evmNetwork, extractPaymentDetails, formatFundingMessageCompact, formatNeedsFundingMessage, formatSolanaWalletMigrationNotice, formatWalletCreatedMessage, formatWalletMigrationNotice, getCached, getCachedByRequest, getCostLogSummary, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, importSolanaWallet, importWallet, listDiscoveredSolanaWallets, listDiscoveredWallets, loadSolanaWallet, loadWallet, logCost, parsePaymentRequired, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentClient, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, validateMaxTokens, validateModel, validateTemperature, validateTopP };