基于 tavily-rs 进行修改
- 添加多api_key
- 添加重试模式: multi_retry, false: 单个api重试, true: 选择不同api重试
Tavily2 Rust SDK
Unofficial (for now 🫠) Rust SDK for the Tavily Search API - the AI-powered search engine for LLM applications 🚀
[!NOTE] Requires an API key. You can get one by signing up at Tavily. The API key should be kept secure and not shared publicly.
Installation
Quick Start
use Duration;
use ;
async
Features
- Simple Search: Quick search queries with minimal configuration
- Answer Mode: Get AI-generated answers along with search results
- Advanced Customization: Control search depth, topics, time range, and more
- Domain Filtering: Include or exclude specific domains
- Rich Content: Optional image results and descriptions
Documentation
For detailed examples and API documentation, check out: