@blockrun/llm 3.18.0 → 3.19.1

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,45 @@ 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
+ /**
2708
+ * BlockRun's batch-settlement operator public key on sol.blockrun.ai.
2709
+ *
2710
+ * The production key that signs vouchers on BlockRun's Solana channels (it is
2711
+ * also the channels' receiver authorizer). Pin it in
2712
+ * `batch.operators` to let this client open channels with BlockRun:
2713
+ *
2714
+ * new SolanaLLMClient({ batch: { operators: [BLOCKRUN_SOL_OPERATOR] } })
2715
+ *
2716
+ * It is a constant on purpose: a client must never trust the operator a 402
2717
+ * names. If the key is ever rotated, both keys are valid for an overlap
2718
+ * period, and `operators` takes a list for exactly that case.
2719
+ */
2720
+ declare const BLOCKRUN_SOL_OPERATOR = "5YKPQUFjw5WQqhSUkEGKNNfYYVqnRRNbpYyL71qQ1vm3";
2721
+ /** Opt-in configuration for Solana batch-settlement. */
2722
+ interface SolanaBatchOptions {
2723
+ /**
2724
+ * Base58 operator public keys you trust to sign vouchers against your
2725
+ * channel. A batch accept naming any other operator is ignored, and the
2726
+ * call pays with `exact`. Required: there is no built-in default key.
2727
+ */
2728
+ operators: string[];
2729
+ /**
2730
+ * Total escrow, in USD, this client will lock in one channel (the first
2731
+ * deposit plus every top-up). This is the most an operator could take
2732
+ * without another signature from you. Accepts `"$5"`, `"5"` or `5`.
2733
+ * Default `"$1"` (the `@x402/svm` default).
2734
+ */
2735
+ maxDeposit?: string | number;
2736
+ /**
2737
+ * Where open-channel state is persisted between processes.
2738
+ * - default: `~/.blockrun/solana-batch/<wallet address>.json` (mode 0600)
2739
+ * - a path: that file
2740
+ * - `false`: in memory only. On restart the client finds its channel again
2741
+ * by scanning the chain for it.
2742
+ */
2743
+ channelStore?: string | false;
2744
+ }
2745
+
2707
2746
  interface SolanaLLMClientOptions extends ApiKeyOptions {
2708
2747
  /** bs58-encoded Solana secret key (64 bytes). Optional if SOLANA_WALLET_KEY env var is set. */
2709
2748
  privateKey?: string;
@@ -2726,6 +2765,14 @@ interface SolanaLLMClientOptions extends ApiKeyOptions {
2726
2765
  rpcHeaders?: Record<string, string>;
2727
2766
  /** Request timeout in milliseconds (default: 60000) */
2728
2767
  timeout?: number;
2768
+ /**
2769
+ * Opt in to x402 batch-settlement (metered billing) for chat completions.
2770
+ * Each call is charged what it actually cost, at most its quoted ceiling,
2771
+ * from a deposit-backed payment channel instead of a per-call transfer.
2772
+ * Needs the optional peers `@x402/core`, `@x402/svm` and `@solana/kit`.
2773
+ * Ignored in API-key mode. See {@link SolanaBatchOptions}.
2774
+ */
2775
+ batch?: SolanaBatchOptions;
2729
2776
  }
2730
2777
  declare class SolanaLLMClient {
2731
2778
  static readonly SOLANA_API_URL = "https://sol.blockrun.ai/api";
@@ -2742,7 +2789,16 @@ declare class SolanaLLMClient {
2742
2789
  private addressCache;
2743
2790
  private modelPricingCache;
2744
2791
  private modelPricingPromise;
2792
+ private batchPayer?;
2745
2793
  constructor(options?: SolanaLLMClientOptions);
2794
+ /**
2795
+ * Close this wallet's batch-settlement channel and return its unused escrow.
2796
+ *
2797
+ * The gateway closes it cooperatively when it can; otherwise this starts a
2798
+ * payer-forced close and the escrow comes back after the channel's grace
2799
+ * period. Only meaningful with the `batch` option.
2800
+ */
2801
+ closeBatchChannel(): Promise<unknown>;
2746
2802
  /** Get Solana wallet address (public key in base58). */
2747
2803
  getWalletAddress(): Promise<string>;
2748
2804
  /** Simple 1-line chat. */
@@ -2993,6 +3049,10 @@ declare class SolanaLLMClient {
2993
3049
  */
2994
3050
  private followSolanaJob;
2995
3051
  private signPaymentFrom402;
3052
+ /** Read a `402`'s payment requirements from its header, or its JSON body. */
3053
+ private readPaymentRequired;
3054
+ /** Sign the `exact` accept of a 402 as an SPL TransferChecked payment. */
3055
+ private signExactPayment;
2996
3056
  private handlePaymentAndRetry;
2997
3057
  private requestWithPaymentRaw;
2998
3058
  private handlePaymentAndRetryRaw;
@@ -3375,4 +3435,4 @@ declare function validateTemperature(temperature?: number): void;
3375
3435
  */
3376
3436
  declare function validateTopP(topP?: number): void;
3377
3437
 
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 };
3438
+ export { APIError, API_KEY_URL, ARC_CHAIN_ID, AnthropicClient, type ApiKeyOptions, type AudioModel, type AudioTrack, BASE_CHAIN_ID, BLOCKRUN_SOL_OPERATOR, 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,45 @@ 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
+ /**
2708
+ * BlockRun's batch-settlement operator public key on sol.blockrun.ai.
2709
+ *
2710
+ * The production key that signs vouchers on BlockRun's Solana channels (it is
2711
+ * also the channels' receiver authorizer). Pin it in
2712
+ * `batch.operators` to let this client open channels with BlockRun:
2713
+ *
2714
+ * new SolanaLLMClient({ batch: { operators: [BLOCKRUN_SOL_OPERATOR] } })
2715
+ *
2716
+ * It is a constant on purpose: a client must never trust the operator a 402
2717
+ * names. If the key is ever rotated, both keys are valid for an overlap
2718
+ * period, and `operators` takes a list for exactly that case.
2719
+ */
2720
+ declare const BLOCKRUN_SOL_OPERATOR = "5YKPQUFjw5WQqhSUkEGKNNfYYVqnRRNbpYyL71qQ1vm3";
2721
+ /** Opt-in configuration for Solana batch-settlement. */
2722
+ interface SolanaBatchOptions {
2723
+ /**
2724
+ * Base58 operator public keys you trust to sign vouchers against your
2725
+ * channel. A batch accept naming any other operator is ignored, and the
2726
+ * call pays with `exact`. Required: there is no built-in default key.
2727
+ */
2728
+ operators: string[];
2729
+ /**
2730
+ * Total escrow, in USD, this client will lock in one channel (the first
2731
+ * deposit plus every top-up). This is the most an operator could take
2732
+ * without another signature from you. Accepts `"$5"`, `"5"` or `5`.
2733
+ * Default `"$1"` (the `@x402/svm` default).
2734
+ */
2735
+ maxDeposit?: string | number;
2736
+ /**
2737
+ * Where open-channel state is persisted between processes.
2738
+ * - default: `~/.blockrun/solana-batch/<wallet address>.json` (mode 0600)
2739
+ * - a path: that file
2740
+ * - `false`: in memory only. On restart the client finds its channel again
2741
+ * by scanning the chain for it.
2742
+ */
2743
+ channelStore?: string | false;
2744
+ }
2745
+
2707
2746
  interface SolanaLLMClientOptions extends ApiKeyOptions {
2708
2747
  /** bs58-encoded Solana secret key (64 bytes). Optional if SOLANA_WALLET_KEY env var is set. */
2709
2748
  privateKey?: string;
@@ -2726,6 +2765,14 @@ interface SolanaLLMClientOptions extends ApiKeyOptions {
2726
2765
  rpcHeaders?: Record<string, string>;
2727
2766
  /** Request timeout in milliseconds (default: 60000) */
2728
2767
  timeout?: number;
2768
+ /**
2769
+ * Opt in to x402 batch-settlement (metered billing) for chat completions.
2770
+ * Each call is charged what it actually cost, at most its quoted ceiling,
2771
+ * from a deposit-backed payment channel instead of a per-call transfer.
2772
+ * Needs the optional peers `@x402/core`, `@x402/svm` and `@solana/kit`.
2773
+ * Ignored in API-key mode. See {@link SolanaBatchOptions}.
2774
+ */
2775
+ batch?: SolanaBatchOptions;
2729
2776
  }
2730
2777
  declare class SolanaLLMClient {
2731
2778
  static readonly SOLANA_API_URL = "https://sol.blockrun.ai/api";
@@ -2742,7 +2789,16 @@ declare class SolanaLLMClient {
2742
2789
  private addressCache;
2743
2790
  private modelPricingCache;
2744
2791
  private modelPricingPromise;
2792
+ private batchPayer?;
2745
2793
  constructor(options?: SolanaLLMClientOptions);
2794
+ /**
2795
+ * Close this wallet's batch-settlement channel and return its unused escrow.
2796
+ *
2797
+ * The gateway closes it cooperatively when it can; otherwise this starts a
2798
+ * payer-forced close and the escrow comes back after the channel's grace
2799
+ * period. Only meaningful with the `batch` option.
2800
+ */
2801
+ closeBatchChannel(): Promise<unknown>;
2746
2802
  /** Get Solana wallet address (public key in base58). */
2747
2803
  getWalletAddress(): Promise<string>;
2748
2804
  /** Simple 1-line chat. */
@@ -2993,6 +3049,10 @@ declare class SolanaLLMClient {
2993
3049
  */
2994
3050
  private followSolanaJob;
2995
3051
  private signPaymentFrom402;
3052
+ /** Read a `402`'s payment requirements from its header, or its JSON body. */
3053
+ private readPaymentRequired;
3054
+ /** Sign the `exact` accept of a 402 as an SPL TransferChecked payment. */
3055
+ private signExactPayment;
2996
3056
  private handlePaymentAndRetry;
2997
3057
  private requestWithPaymentRaw;
2998
3058
  private handlePaymentAndRetryRaw;
@@ -3375,4 +3435,4 @@ declare function validateTemperature(temperature?: number): void;
3375
3435
  */
3376
3436
  declare function validateTopP(topP?: number): void;
3377
3437
 
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 };
3438
+ export { APIError, API_KEY_URL, ARC_CHAIN_ID, AnthropicClient, type ApiKeyOptions, type AudioModel, type AudioTrack, BASE_CHAIN_ID, BLOCKRUN_SOL_OPERATOR, 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 };