pub struct TavilyResponse {
pub query: String,
pub follow_up_questions: Vec<String>,
pub response_time: f64,
pub answer: Option<String>,
pub images: Option<Vec<String>>,
pub results: Vec<TavilyResult>,
}Expand description
Tavily-compatible response body.
Fields§
§query: StringThe query echoed back.
follow_up_questions: Vec<String>Reserved for Tavily compatibility; always empty.
response_time: f64Wall-clock time spent searching, in seconds.
answer: Option<String>Optional answer, populated when include_answer is set.
images: Option<Vec<String>>Image URLs, populated when include_images is set.
results: Vec<TavilyResult>The ranked search results.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TavilyResponse
impl RefUnwindSafe for TavilyResponse
impl Send for TavilyResponse
impl Sync for TavilyResponse
impl Unpin for TavilyResponse
impl UnsafeUnpin for TavilyResponse
impl UnwindSafe for TavilyResponse
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