pub struct TavilyRequest {
pub query: String,
pub api_key: Option<String>,
pub search_depth: Option<String>,
pub topic: Option<String>,
pub days: Option<u32>,
pub max_results: Option<usize>,
pub include_images: bool,
pub include_answer: bool,
pub include_raw_content: bool,
pub include_image_descriptions: bool,
pub include_domains: Option<Vec<String>>,
pub exclude_domains: Option<Vec<String>>,
}Expand description
Tavily-compatible request body.
The Tavily API (https://docs.tavily.com) is the de-facto standard for
AI search. Clients such as tavily-python can target this server by
setting base_url to it and calling /search.
Fields§
§query: String§api_key: Option<String>§search_depth: Option<String>§topic: Option<String>§days: Option<u32>§max_results: Option<usize>§include_images: bool§include_answer: bool§include_raw_content: bool§include_image_descriptions: boolAccepted for compatibility with Tavily clients; only meaningful for Tavily’s image-search endpoint, which this server does not expose.
include_domains: Option<Vec<String>>§exclude_domains: Option<Vec<String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TavilyRequest
impl<'de> Deserialize<'de> for TavilyRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TavilyRequest
impl RefUnwindSafe for TavilyRequest
impl Send for TavilyRequest
impl Sync for TavilyRequest
impl Unpin for TavilyRequest
impl UnsafeUnpin for TavilyRequest
impl UnwindSafe for TavilyRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more