tavily 2.1.0

A tiny tool for calling Tavily's REST API in the simplest way!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use tavily::{Result, Tavily};

#[tokio::main]
async fn main() -> Result<()> {
    let api_key = std::env::var("TAVILY_API_KEY").expect("TAVILY_API_KEY must be set");

    let tavily = Tavily::builder(&api_key).build()?;
    let response = tavily.search("What is Rust programming language?").await?;

    println!("Search Results:");
    println!("{:#?}", response);

    Ok(())
}