Overview
Integrate Valyu’s deep search capabilities directly into your Anthropic Claude applications using our provider system. This enables your AI agents to access real-time information from academic papers, news, financial data, and authoritative sources.Installation
Install the Valyu and Anthropic packages:Free Credits
Get your API key with $10 credit from the Valyu Platform.
Basic Usage
The Anthropic provider handles the integration:How It Works
TheAnthropicProvider handles everything for you:
- Tool Registration: Automatically formats Valyu search as an Anthropic tool
- Tool Execution: Manages search API calls behind the scenes
- Conversation Flow: Builds proper message sequences with tool results
Research Agent Example
Create a simple research agent that can access current information:Financial Analysis Example
Configuration Options
Model Selection
Choose the right Claude model for your use case:Search Parameters
Claude can automatically use advanced search parameters based on your query context:- max_num_results: Limit results (1-20 for standard API keys, up to 100 with a special API key)
- included_sources: Search specific domains or datasets
- excluded_sources: Exclude certain sources
- category: Guide search to specific topics
- start_date/end_date: Time-bounded searches
- relevance_threshold: Filter by relevance (0-1)
Best Practices
1. Use System Prompts
2. Handle Errors Gracefully
3. Multi-Turn Conversations
For chat applications, maintain conversation history:API Reference
AnthropicProvider
Additional Resources
Anthropic API Docs
Official Anthropic Claude documentation
Valyu API Reference
Complete Valyu API documentation
Python SDK
Full Python SDK documentation
Get API Key
Sign up for free $10 credit

