@blockrun/llm 1.4.3 → 1.6.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/README.md CHANGED
@@ -550,6 +550,46 @@ All current endpoints are GET. The `pmQuery()` method is available for future PO
550
550
 
551
551
  Works on both `LLMClient` (Base) and `SolanaLLMClient`.
552
552
 
553
+ ## Exa Web Search (Powered by Exa)
554
+
555
+ Access [Exa](https://exa.ai)'s neural web search via x402. No API keys needed — pay-per-request via Solana USDC. Available on `SolanaLLMClient` only.
556
+
557
+ | Method | Description | Price |
558
+ |---|---|---|
559
+ | `exaSearch(query, options?)` | Neural/keyword web search | $0.01/request |
560
+ | `exaFindSimilar(url, options?)` | Find semantically similar pages | $0.01/request |
561
+ | `exaContents(urls, options?)` | Extract full text from URLs | $0.002/URL |
562
+ | `exaAnswer(query, options?)` | AI answer grounded in web search | $0.01/request |
563
+ | `exa(path, body)` | Generic proxy for any Exa endpoint | varies |
564
+
565
+ ```typescript
566
+ import { SolanaLLMClient } from '@blockrun/llm';
567
+
568
+ const client = new SolanaLLMClient();
569
+
570
+ // Neural web search ($0.01/request)
571
+ const results = await client.exaSearch("latest AI safety research", { numResults: 5 });
572
+ const news = await client.exaSearch("bitcoin ETF news", { category: "news", numResults: 10 });
573
+
574
+ // Find similar pages ($0.01/request)
575
+ const similar = await client.exaFindSimilar("https://openai.com/research/gpt-4", { numResults: 5 });
576
+
577
+ // Extract content from URLs ($0.002/URL)
578
+ const content = await client.exaContents(["https://arxiv.org/abs/2303.08774"]);
579
+ const rich = await client.exaContents(
580
+ ["https://example.com/page1", "https://example.com/page2"],
581
+ { text: true, highlights: true }
582
+ );
583
+
584
+ // AI-generated answer from live web ($0.01/request)
585
+ const answer = await client.exaAnswer("What is the current state of AI safety research?");
586
+
587
+ // Generic proxy for any Exa endpoint
588
+ const custom = await client.exa("search", { query: "transformer architecture", numResults: 5 });
589
+ ```
590
+
591
+ `SolanaLLMClient` only — Exa endpoints are on `sol.blockrun.ai`.
592
+
553
593
  ## Configuration
554
594
 
555
595
  ```typescript