Valyu Logo

Updates

Valyu Search Tools Are Now Live in Vercel AI SDK

>_ Harvey Yorke

Add search to any Vercel ai-sdk AI agent. One import. One line in your tools array.

typescript
1import { generateText, gateway, stepCountIs } from 'ai';
2import { webSearch } from '@valyu/ai-sdk';
3
4
5const { text } = await generateText({
6 model: gateway('google/gemini-3-pro-preview'),
7 prompt: 'Latest data center projects for AI inference?',
8 tools: {
9 webSearch: webSearch(),
10 },
11 stopWhen: stepCountIs(3),
12});

That's it. Your agent now has access to the most performant web index built for AI retrieval. Benchmarked: highest accuracy, lowest cost across SimpleQA, and domain specific benchmarks across finance, medicine, economics, and more (benchmark code public here).

The AI SDK handles tool orchestration. Valyu handles search. You write your prompt.

Domain-Specific Search

Knowledge work requires source data. SEC filings, not articles about SEC filings. Clinical trials, not health news. The primary sources that professionals actually use.

This data is hard to access programmatically. Scattered across government databases, academic repositories, financial data providers. Even harder to make available to agents in a clean, searchable way.

We built a suite of domain-specific search tools on the same infrastructure:

ToolSources
financeSearch70+ global exchanges. Earnings, balance sheets, income statements, cash flows, insider transactions, SEC filings, and more.
paperSearch100% of arXiv, PubMed, bioRxiv, medRxiv for full-text multimodal search
bioSearchClinical trials, FDA drug labels, research publications
secSearch10-K, 10-Q, 8-K filings full-text search
patentSearchUSPTO full-text search
economicsSearchBLS, FRED, World Bank, USASpending

Same pattern. Swap the import:

typescript
1import { secSearch } from "@valyu/ai-sdk";
2
3tools: { secSearch: secSearch() }

Now your agent queries primary sources directly.

Get Started

We built a playground so you can test every search tool and see results on your use case before writing a single line of code: ai-sdk.valyu.ai

API key: platform.valyu.ai ($10 free)
Docs: docs.valyu.ai