@blockrun/llm 2.11.1 → 2.13.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/README.md +1371 -1262
- package/dist/index.cjs +549 -65
- package/dist/index.d.cts +329 -1
- package/dist/index.d.ts +329 -1
- package/dist/index.js +543 -64
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -404,6 +404,101 @@ interface MusicGenerateOptions {
|
|
|
404
404
|
/** Custom lyrics — cannot be used with instrumental: true */
|
|
405
405
|
lyrics?: string;
|
|
406
406
|
}
|
|
407
|
+
/** A single synthesized audio clip. */
|
|
408
|
+
interface SpeechAudio {
|
|
409
|
+
url: string;
|
|
410
|
+
format?: string;
|
|
411
|
+
characters?: number;
|
|
412
|
+
credits?: number;
|
|
413
|
+
}
|
|
414
|
+
/** Response from speech synthesis or sound-effect generation. */
|
|
415
|
+
interface SpeechResponse {
|
|
416
|
+
created: number;
|
|
417
|
+
model: string;
|
|
418
|
+
data: SpeechAudio[];
|
|
419
|
+
txHash?: string;
|
|
420
|
+
}
|
|
421
|
+
interface SpeechClientOptions {
|
|
422
|
+
/** EVM wallet private key (hex string starting with 0x) */
|
|
423
|
+
privateKey?: `0x${string}` | string;
|
|
424
|
+
/** API endpoint URL (default: https://blockrun.ai/api) */
|
|
425
|
+
apiUrl?: string;
|
|
426
|
+
/** Request timeout in milliseconds (default: 120000 — synthesis is synchronous) */
|
|
427
|
+
timeout?: number;
|
|
428
|
+
}
|
|
429
|
+
/** TTS model IDs (price per 1k chars: flash/turbo $0.05, multilingual-v2/v3 $0.10). */
|
|
430
|
+
type SpeechModel = "elevenlabs/flash-v2.5" | "elevenlabs/turbo-v2.5" | "elevenlabs/multilingual-v2" | "elevenlabs/v3";
|
|
431
|
+
/** Friendly voice aliases (raw ElevenLabs voice_ids also accepted). */
|
|
432
|
+
type SpeechVoice = "sarah" | "george" | "laura" | "charlie" | "river" | "roger" | "callum" | "harry" | (string & {});
|
|
433
|
+
interface SpeechGenerateOptions {
|
|
434
|
+
/** Speech model ID (default: "elevenlabs/flash-v2.5") */
|
|
435
|
+
model?: SpeechModel | (string & {});
|
|
436
|
+
/** Voice alias or raw ElevenLabs voice_id (default: "sarah") */
|
|
437
|
+
voice?: SpeechVoice;
|
|
438
|
+
/** Audio format (default: "mp3") */
|
|
439
|
+
responseFormat?: "mp3" | "opus" | "pcm" | "wav";
|
|
440
|
+
/** Playback speed 0.7-1.2 */
|
|
441
|
+
speed?: number;
|
|
442
|
+
}
|
|
443
|
+
interface SoundEffectOptions {
|
|
444
|
+
/** Model ID (default: "elevenlabs/sound-effects") */
|
|
445
|
+
model?: string;
|
|
446
|
+
/** Target duration 0.5-22s (auto if unset) */
|
|
447
|
+
durationSeconds?: number;
|
|
448
|
+
/** 0-1, higher follows the prompt more literally */
|
|
449
|
+
promptInfluence?: number;
|
|
450
|
+
/** Audio format (default: "mp3") */
|
|
451
|
+
responseFormat?: "mp3" | "opus" | "pcm" | "wav";
|
|
452
|
+
}
|
|
453
|
+
/** A voice entry returned by GET /v1/audio/voices. */
|
|
454
|
+
interface VoiceInfo {
|
|
455
|
+
voice_id: string;
|
|
456
|
+
name?: string;
|
|
457
|
+
alias?: string;
|
|
458
|
+
category?: string;
|
|
459
|
+
labels?: Record<string, string>;
|
|
460
|
+
preview_url?: string;
|
|
461
|
+
[key: string]: unknown;
|
|
462
|
+
}
|
|
463
|
+
interface RpcClientOptions {
|
|
464
|
+
/** EVM wallet private key (hex string starting with 0x) */
|
|
465
|
+
privateKey?: `0x${string}` | string;
|
|
466
|
+
/** API endpoint URL (default: https://blockrun.ai/api) */
|
|
467
|
+
apiUrl?: string;
|
|
468
|
+
/** Request timeout in milliseconds (default: 60000 — upstream gateway timeout is 20s) */
|
|
469
|
+
timeout?: number;
|
|
470
|
+
}
|
|
471
|
+
/** A JSON-RPC 2.0 error object. */
|
|
472
|
+
interface RpcError {
|
|
473
|
+
code?: number;
|
|
474
|
+
message?: string;
|
|
475
|
+
data?: unknown;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Response from a multi-chain JSON-RPC call.
|
|
479
|
+
*
|
|
480
|
+
* Standard JSON-RPC 2.0 envelope plus BlockRun gateway metadata pulled
|
|
481
|
+
* from response headers (X-Network / X-Cache / X-Payment-Receipt).
|
|
482
|
+
*/
|
|
483
|
+
interface RpcResponse<T = unknown> {
|
|
484
|
+
jsonrpc?: string;
|
|
485
|
+
id?: string | number | null;
|
|
486
|
+
result?: T;
|
|
487
|
+
error?: RpcError;
|
|
488
|
+
/** Canonical network key, e.g. "ethereum" (from X-Network) */
|
|
489
|
+
network?: string;
|
|
490
|
+
/** Served from the gateway's method-aware cache (from X-Cache) */
|
|
491
|
+
cacheHit?: boolean;
|
|
492
|
+
/** x402 settlement tx hash (single calls) */
|
|
493
|
+
txHash?: string;
|
|
494
|
+
}
|
|
495
|
+
/** A single request in a JSON-RPC batch (jsonrpc/id auto-filled if omitted). */
|
|
496
|
+
interface RpcBatchRequest {
|
|
497
|
+
method: string;
|
|
498
|
+
params?: unknown[];
|
|
499
|
+
id?: string | number;
|
|
500
|
+
jsonrpc?: string;
|
|
501
|
+
}
|
|
407
502
|
/** Built-in Bland.ai voice presets. Any string is accepted (custom voice IDs work too). */
|
|
408
503
|
type VoicePreset = "nat" | "josh" | "maya" | "june" | "paige" | "derek" | "florian";
|
|
409
504
|
/** Bland.ai conversation model tier. */
|
|
@@ -522,6 +617,22 @@ interface VideoGenerateOptions {
|
|
|
522
617
|
* with `imageUrl`. Real-person likeness is not supported on BlockRun.
|
|
523
618
|
*/
|
|
524
619
|
realFaceAssetId?: string;
|
|
620
|
+
/**
|
|
621
|
+
* First-and-last-frame interpolation: a second image that seeds the FINAL
|
|
622
|
+
* frame so the model tweens from `imageUrl` → `lastFrameUrl`. Requires
|
|
623
|
+
* `imageUrl` (the first frame) and a Seedance model
|
|
624
|
+
* (bytedance/seedance-1.5-pro, seedance-2.0, or seedance-2.0-fast).
|
|
625
|
+
* Priced identically to image-to-video. Mutually exclusive with
|
|
626
|
+
* `realFaceAssetId`.
|
|
627
|
+
*/
|
|
628
|
+
lastFrameUrl?: string;
|
|
629
|
+
/**
|
|
630
|
+
* Omni / multi-reference: up to 9 reference image URLs for character/style
|
|
631
|
+
* consistency (**Seedance 2.0 only**). Cite them as "image 1", "image 2"
|
|
632
|
+
* in the prompt. Mutually exclusive with `imageUrl` / `lastFrameUrl` /
|
|
633
|
+
* `realFaceAssetId`.
|
|
634
|
+
*/
|
|
635
|
+
referenceImageUrls?: string[];
|
|
525
636
|
/** Duration to bill for (defaults to model's default duration) */
|
|
526
637
|
durationSeconds?: number;
|
|
527
638
|
/** Output aspect ratio. Token360 / Seedance only — silently ignored by xAI Grok. */
|
|
@@ -1632,6 +1743,104 @@ declare class MusicClient {
|
|
|
1632
1743
|
getSpending(): Spending;
|
|
1633
1744
|
}
|
|
1634
1745
|
|
|
1746
|
+
/**
|
|
1747
|
+
* BlockRun Speech Client - Text-to-speech and sound effects (ElevenLabs) via x402 micropayments.
|
|
1748
|
+
*
|
|
1749
|
+
* SECURITY NOTE - Private Key Handling:
|
|
1750
|
+
* Your private key NEVER leaves your machine. Here's what happens:
|
|
1751
|
+
* 1. Key stays local - only used to sign an EIP-712 typed data message
|
|
1752
|
+
* 2. Only the SIGNATURE is sent in the PAYMENT-SIGNATURE header
|
|
1753
|
+
* 3. BlockRun verifies the signature on-chain via Coinbase CDP facilitator
|
|
1754
|
+
*
|
|
1755
|
+
* Usage:
|
|
1756
|
+
* import { SpeechClient } from '@blockrun/llm';
|
|
1757
|
+
*
|
|
1758
|
+
* const client = new SpeechClient({ privateKey: '0x...' });
|
|
1759
|
+
*
|
|
1760
|
+
* // Text-to-speech (price scales with character count)
|
|
1761
|
+
* const result = await client.generate('Hello from BlockRun!', { voice: 'sarah' });
|
|
1762
|
+
* console.log(result.data[0].url);
|
|
1763
|
+
*
|
|
1764
|
+
* // Sound effects (flat $0.05/generation)
|
|
1765
|
+
* const fx = await client.soundEffect('rain on a tin roof, distant thunder');
|
|
1766
|
+
*
|
|
1767
|
+
* // List voices (free, rate-limited)
|
|
1768
|
+
* const voices = await client.listVoices();
|
|
1769
|
+
*
|
|
1770
|
+
* Models & pricing:
|
|
1771
|
+
* elevenlabs/flash-v2.5 $0.05/1k chars ~75ms latency, 32 languages (default)
|
|
1772
|
+
* elevenlabs/turbo-v2.5 $0.05/1k chars ~250ms latency, 32 languages
|
|
1773
|
+
* elevenlabs/multilingual-v2 $0.10/1k chars long-form narration, 29 languages
|
|
1774
|
+
* elevenlabs/v3 $0.10/1k chars max expressiveness, 70+ languages
|
|
1775
|
+
* elevenlabs/sound-effects $0.05/generation (up to 22s)
|
|
1776
|
+
*
|
|
1777
|
+
* Price = (characters / 1000) x model rate, minimum $0.001/request.
|
|
1778
|
+
*/
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* BlockRun Speech Client (BlockRun Voice).
|
|
1782
|
+
*
|
|
1783
|
+
* Text-to-speech and sound-effect generation using ElevenLabs models
|
|
1784
|
+
* with automatic x402 micropayments on Base chain.
|
|
1785
|
+
*
|
|
1786
|
+
* TTS pricing scales with input characters; sound effects are flat
|
|
1787
|
+
* $0.05/generation.
|
|
1788
|
+
*/
|
|
1789
|
+
declare class SpeechClient {
|
|
1790
|
+
private account;
|
|
1791
|
+
private privateKey;
|
|
1792
|
+
private apiUrl;
|
|
1793
|
+
private timeout;
|
|
1794
|
+
private sessionTotalUsd;
|
|
1795
|
+
private sessionCalls;
|
|
1796
|
+
constructor(options?: SpeechClientOptions);
|
|
1797
|
+
/**
|
|
1798
|
+
* Synthesize speech from text (OpenAI-compatible TTS).
|
|
1799
|
+
*
|
|
1800
|
+
* Price scales with character count: (chars / 1000) x model rate,
|
|
1801
|
+
* minimum $0.001/request. Synthesis is synchronous.
|
|
1802
|
+
*
|
|
1803
|
+
* @param input - Text to synthesize. Per-model character caps apply
|
|
1804
|
+
* (flash/turbo 40k, multilingual-v2 10k, v3 5k).
|
|
1805
|
+
* @param options - Optional model / voice / format / speed
|
|
1806
|
+
* @returns SpeechResponse with audio URL, format, and character count
|
|
1807
|
+
*
|
|
1808
|
+
* @example
|
|
1809
|
+
* const result = await client.generate('Welcome to BlockRun.', { voice: 'george' });
|
|
1810
|
+
* console.log(result.data[0].url); // audio URL (mp3 by default)
|
|
1811
|
+
*/
|
|
1812
|
+
generate(input: string, options?: SpeechGenerateOptions): Promise<SpeechResponse>;
|
|
1813
|
+
/** OpenAI-style alias for {@link generate}. */
|
|
1814
|
+
speak(input: string, options?: SpeechGenerateOptions): Promise<SpeechResponse>;
|
|
1815
|
+
/**
|
|
1816
|
+
* Generate a cinematic sound effect from a text prompt.
|
|
1817
|
+
*
|
|
1818
|
+
* Flat $0.05/generation, up to 22 seconds of audio.
|
|
1819
|
+
*
|
|
1820
|
+
* @param text - Sound effect description (max 1000 chars).
|
|
1821
|
+
* E.g. 'rain on a tin roof', 'sci-fi door whoosh'
|
|
1822
|
+
* @param options - Optional duration / prompt influence / format
|
|
1823
|
+
* @returns SpeechResponse with audio URL and format
|
|
1824
|
+
*
|
|
1825
|
+
* @example
|
|
1826
|
+
* const fx = await client.soundEffect('crackling campfire at night');
|
|
1827
|
+
* console.log(fx.data[0].url);
|
|
1828
|
+
*/
|
|
1829
|
+
soundEffect(text: string, options?: SoundEffectOptions): Promise<SpeechResponse>;
|
|
1830
|
+
/**
|
|
1831
|
+
* List available voices for TTS (free, rate-limited 60 req/min/IP).
|
|
1832
|
+
*
|
|
1833
|
+
* Pass a voice's `alias` (if present) or `voice_id` as the `voice`
|
|
1834
|
+
* option to {@link generate}.
|
|
1835
|
+
*/
|
|
1836
|
+
listVoices(): Promise<VoiceInfo[]>;
|
|
1837
|
+
private requestWithPayment;
|
|
1838
|
+
private handlePaymentAndRetry;
|
|
1839
|
+
private fetchWithTimeout;
|
|
1840
|
+
getWalletAddress(): string;
|
|
1841
|
+
getSpending(): Spending;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1635
1844
|
/**
|
|
1636
1845
|
* BlockRun Video Client - Generate short AI videos via x402 micropayments.
|
|
1637
1846
|
*
|
|
@@ -2142,6 +2351,125 @@ declare class SurfClient {
|
|
|
2142
2351
|
getWalletAddress(): string;
|
|
2143
2352
|
}
|
|
2144
2353
|
|
|
2354
|
+
/**
|
|
2355
|
+
* BlockRun RPC Client - Multi-chain JSON-RPC (Tatum gateway) via x402 micropayments.
|
|
2356
|
+
*
|
|
2357
|
+
* One endpoint, 40+ chains: Ethereum, Base, Solana, Polygon, BSC, Arbitrum,
|
|
2358
|
+
* Optimism, Avalanche, Bitcoin, Sui, and more. Standard JSON-RPC 2.0
|
|
2359
|
+
* passthrough — no API key, pay-per-call in USDC.
|
|
2360
|
+
*
|
|
2361
|
+
* SECURITY NOTE - Private Key Handling:
|
|
2362
|
+
* Your private key NEVER leaves your machine. Here's what happens:
|
|
2363
|
+
* 1. Key stays local - only used to sign an EIP-712 typed data message
|
|
2364
|
+
* 2. Only the SIGNATURE is sent in the PAYMENT-SIGNATURE header
|
|
2365
|
+
* 3. BlockRun verifies the signature on-chain via Coinbase CDP facilitator
|
|
2366
|
+
*
|
|
2367
|
+
* Usage:
|
|
2368
|
+
* import { RpcClient } from '@blockrun/llm';
|
|
2369
|
+
*
|
|
2370
|
+
* const client = new RpcClient({ privateKey: '0x...' });
|
|
2371
|
+
*
|
|
2372
|
+
* // EVM chains speak eth_* JSON-RPC
|
|
2373
|
+
* const block = await client.call('ethereum', 'eth_blockNumber');
|
|
2374
|
+
* console.log(block.result); // e.g. "0x1499f7c"
|
|
2375
|
+
*
|
|
2376
|
+
* const balance = await client.call('base', 'eth_getBalance', [
|
|
2377
|
+
* '0x4200000000000000000000000000000000000006',
|
|
2378
|
+
* 'latest',
|
|
2379
|
+
* ]);
|
|
2380
|
+
*
|
|
2381
|
+
* // Non-EVM chains speak their native JSON-RPC
|
|
2382
|
+
* const slot = await client.call('solana', 'getSlot');
|
|
2383
|
+
*
|
|
2384
|
+
* // Batch: one payment, per-element pricing ($0.002 x N)
|
|
2385
|
+
* const out = await client.batch('polygon', [
|
|
2386
|
+
* { method: 'eth_blockNumber' },
|
|
2387
|
+
* { method: 'eth_gasPrice' },
|
|
2388
|
+
* ]);
|
|
2389
|
+
*
|
|
2390
|
+
* Pricing:
|
|
2391
|
+
* Flat $0.002 per JSON-RPC call; a batch charges per element.
|
|
2392
|
+
*
|
|
2393
|
+
* Networks:
|
|
2394
|
+
* 40 curated chains (see SUPPORTED_NETWORKS) plus common aliases
|
|
2395
|
+
* (eth, arb, op, matic, bnb, avax, sol, btc, xrp, dot, ...). Unknown but
|
|
2396
|
+
* well-formed slugs fall through to a generic `{slug}-mainnet` gateway
|
|
2397
|
+
* attempt, so new Tatum chains work without an SDK update.
|
|
2398
|
+
*/
|
|
2399
|
+
|
|
2400
|
+
/**
|
|
2401
|
+
* Flat price per JSON-RPC call (batch = N x this). Informational only —
|
|
2402
|
+
* the actual quote always comes from the 402 challenge.
|
|
2403
|
+
*/
|
|
2404
|
+
declare const RPC_PRICE_USD = 0.002;
|
|
2405
|
+
/**
|
|
2406
|
+
* Curated chains accepted by /v1/rpc/{network}. Mirrors the backend chain
|
|
2407
|
+
* registry (verified live 2026-06-07). EVM chains use eth_* JSON-RPC;
|
|
2408
|
+
* non-EVM (Solana / UTXO / NEAR / Sui / XRP Ledger / Polkadot) speak their
|
|
2409
|
+
* own JSON-RPC dialect.
|
|
2410
|
+
*/
|
|
2411
|
+
declare const SUPPORTED_NETWORKS: readonly ["ethereum", "base", "arbitrum", "arbitrum-nova", "optimism", "polygon", "bsc", "avalanche", "fantom", "cronos", "celo", "gnosis", "zksync", "berachain", "unichain", "monad", "chiliz", "moonbeam", "aurora", "flare", "oasis", "kaia", "sonic", "xdc", "abstract", "hyperevm", "plume", "ronin", "rootstock", "solana", "bitcoin", "litecoin", "dogecoin", "bitcoin-cash", "near", "sui", "ripple", "polkadot", "kusama", "zcash"];
|
|
2412
|
+
type RpcNetwork = (typeof SUPPORTED_NETWORKS)[number] | (string & {});
|
|
2413
|
+
/** Common short names the gateway also accepts (resolved server-side). */
|
|
2414
|
+
declare const NETWORK_ALIASES: Record<string, string>;
|
|
2415
|
+
/**
|
|
2416
|
+
* BlockRun Multi-chain RPC Client.
|
|
2417
|
+
*
|
|
2418
|
+
* Standard JSON-RPC 2.0 access to 40+ chains through BlockRun's Tatum
|
|
2419
|
+
* gateway with automatic x402 micropayments on Base chain.
|
|
2420
|
+
*
|
|
2421
|
+
* Flat $0.002 per call; a JSON-RPC batch charges per element.
|
|
2422
|
+
*/
|
|
2423
|
+
declare class RpcClient {
|
|
2424
|
+
private account;
|
|
2425
|
+
private privateKey;
|
|
2426
|
+
private apiUrl;
|
|
2427
|
+
private timeout;
|
|
2428
|
+
private sessionTotalUsd;
|
|
2429
|
+
private sessionCalls;
|
|
2430
|
+
constructor(options?: RpcClientOptions);
|
|
2431
|
+
/**
|
|
2432
|
+
* Make a single JSON-RPC 2.0 call. Flat $0.002.
|
|
2433
|
+
*
|
|
2434
|
+
* @param network - Chain name (e.g. "ethereum", "base", "solana") or a
|
|
2435
|
+
* common alias ("eth", "sol", "matic", ...). See
|
|
2436
|
+
* SUPPORTED_NETWORKS / NETWORK_ALIASES.
|
|
2437
|
+
* @param method - Chain RPC method, e.g. "eth_blockNumber", "eth_call",
|
|
2438
|
+
* "eth_getBalance" (EVM) or "getSlot", "getAccountInfo"
|
|
2439
|
+
* (Solana).
|
|
2440
|
+
* @param params - Method-specific params array (optional).
|
|
2441
|
+
* @returns RpcResponse with `result` (or JSON-RPC `error`), plus
|
|
2442
|
+
* `network`, `cacheHit` and `txHash` metadata.
|
|
2443
|
+
*
|
|
2444
|
+
* @example
|
|
2445
|
+
* const block = await client.call('ethereum', 'eth_blockNumber');
|
|
2446
|
+
* console.log(parseInt(block.result as string, 16));
|
|
2447
|
+
*/
|
|
2448
|
+
call<T = unknown>(network: RpcNetwork, method: string, params?: unknown[]): Promise<RpcResponse<T>>;
|
|
2449
|
+
/**
|
|
2450
|
+
* Make a JSON-RPC 2.0 batch call. Priced per element ($0.002 x N).
|
|
2451
|
+
*
|
|
2452
|
+
* @param network - Chain name or alias (see {@link call}).
|
|
2453
|
+
* @param requests - Requests, each with a `method` and optional
|
|
2454
|
+
* `params` / `id`. `jsonrpc` and missing ids are
|
|
2455
|
+
* filled in automatically.
|
|
2456
|
+
* @returns Array of RpcResponse, in upstream order.
|
|
2457
|
+
*
|
|
2458
|
+
* @example
|
|
2459
|
+
* const out = await client.batch('base', [
|
|
2460
|
+
* { method: 'eth_blockNumber' },
|
|
2461
|
+
* { method: 'eth_gasPrice' },
|
|
2462
|
+
* ]);
|
|
2463
|
+
*/
|
|
2464
|
+
batch(network: RpcNetwork, requests: RpcBatchRequest[]): Promise<RpcResponse[]>;
|
|
2465
|
+
private toResponse;
|
|
2466
|
+
private requestWithPayment;
|
|
2467
|
+
private handlePaymentAndRetry;
|
|
2468
|
+
private fetchWithTimeout;
|
|
2469
|
+
getWalletAddress(): string;
|
|
2470
|
+
getSpending(): Spending;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2145
2473
|
/**
|
|
2146
2474
|
* BlockrunClient — the x402-paying HTTP primitive for the BlockRun gateway.
|
|
2147
2475
|
*
|
|
@@ -2929,4 +3257,4 @@ declare function validateTemperature(temperature?: number): void;
|
|
|
2929
3257
|
*/
|
|
2930
3258
|
declare function validateTopP(topP?: number): void;
|
|
2931
3259
|
|
|
2932
|
-
export { APIError, AnthropicClient, 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, 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, type NewsSearchSource, OpenAI, type OpenAIChatCompletionChoice, type OpenAIChatCompletionChunk, type OpenAIChatCompletionParams, type OpenAIChatCompletionResponse, type OpenAIClientOptions, PHONE_PRICES, 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, type ResponseFormat, type RoutingDecision, type RoutingProfile, type RoutingTier, type RssSearchSource, SOLANA_NETWORK, SOLANA_WALLET_FILE as SOLANA_WALLET_FILE_PATH, SearchClient, type SearchClientOptions, type SearchOptions, type SearchParameters, type SearchResult, type SearchSource, type SearchUsage, type SmartChatOptions, type SmartChatResponse, SolanaLLMClient, type SolanaLLMClientOptions, type SolanaWalletInfo, type Spending, type SpendingReport, type StockMarket, SurfClient, type SurfClientOptions, type SymbolListResponse, type Tool, type ToolCall, type ToolChoice, USDC_BASE, USDC_BASE_CONTRACT, USDC_SOLANA, VideoClient, type VideoClientOptions, type VideoClip, type VideoGenerateOptions, type VideoModel, type VideoResponse, VoiceClient, type VoiceClientOptions, type VoicePreset, WALLET_DIR_PATH, WALLET_FILE_PATH, type WalletInfo, type WebSearchSource, type XArticlesRisingResponse, type XAuthorAnalyticsResponse, XClient, type XClientOptions, type XCompareAuthorsResponse, type XFollower, type XFollowersResponse, type XFollowingsResponse, type XMentionsOptions, type XMentionsResponse, type XSearchOptions, type XSearchResponse, type XSearchSource, type XTrendingResponse, type XTweet, type XTweetLookupResponse, type XTweetRepliesOptions, type XTweetRepliesResponse, type XTweetThreadResponse, type XTweetsResponse, type XUser, type XUserInfoResponse, type XUserLookupResponse, type XUserTweetsOptions, type XVerifiedFollowersResponse, clearCache, createPaymentPayload, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, extractPaymentDetails, formatFundingMessageCompact, formatNeedsFundingMessage, formatWalletCreatedMessage, getCached, getCachedByRequest, getCostLogSummary, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, loadSolanaWallet, loadWallet, logCost, parsePaymentRequired, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, validateMaxTokens, validateModel, validateTemperature, validateTopP };
|
|
3260
|
+
export { APIError, AnthropicClient, 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, 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, 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, type RoutingDecision, type RoutingProfile, type RoutingTier, 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 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_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 XArticlesRisingResponse, type XAuthorAnalyticsResponse, XClient, type XClientOptions, type XCompareAuthorsResponse, type XFollower, type XFollowersResponse, type XFollowingsResponse, type XMentionsOptions, type XMentionsResponse, type XSearchOptions, type XSearchResponse, type XSearchSource, type XTrendingResponse, type XTweet, type XTweetLookupResponse, type XTweetRepliesOptions, type XTweetRepliesResponse, type XTweetThreadResponse, type XTweetsResponse, type XUser, type XUserInfoResponse, type XUserLookupResponse, type XUserTweetsOptions, type XVerifiedFollowersResponse, clearCache, createPaymentPayload, createSolanaPaymentPayload, createSolanaWallet, createWallet, LLMClient as default, extractPaymentDetails, formatFundingMessageCompact, formatNeedsFundingMessage, formatWalletCreatedMessage, getCached, getCachedByRequest, getCostLogSummary, getCostSummary, getEip681Uri, getOrCreateSolanaWallet, getOrCreateWallet, getPaymentLinks, getWalletAddress, loadSolanaWallet, loadWallet, logCost, parsePaymentRequired, saveSolanaWallet, saveToCache, saveWallet, scanSolanaWallets, scanWallets, setCache, setupAgentSolanaWallet, setupAgentWallet, solanaClient, solanaKeyToBytes, solanaPublicKey, status, validateMaxTokens, validateModel, validateTemperature, validateTopP };
|