pub struct GoogleSearchExchange {
pub call_id: Option<String>,
pub calls: Vec<GoogleSearchCallContent>,
pub results: Vec<GoogleSearchResultContent>,
}Expand description
Groups Google Search tool calls and results for a single interaction.
Fields§
§call_id: Option<String>Call identifier used to match calls to results.
calls: Vec<GoogleSearchCallContent>One or more Google Search tool calls.
results: Vec<GoogleSearchResultContent>One or more Google Search tool results.
Implementations§
Source§impl GoogleSearchExchange
impl GoogleSearchExchange
Sourcepub fn queries(&self) -> Vec<String>
pub fn queries(&self) -> Vec<String>
Collects all queries from the stored Google Search tool calls.
Sourcepub fn result_items(&self) -> Vec<GoogleSearchResult>
pub fn result_items(&self) -> Vec<GoogleSearchResult>
Collects all Google Search result entries from tool results.
Trait Implementations§
Source§impl Clone for GoogleSearchExchange
impl Clone for GoogleSearchExchange
Source§fn clone(&self) -> GoogleSearchExchange
fn clone(&self) -> GoogleSearchExchange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleSearchExchange
impl Debug for GoogleSearchExchange
Source§impl Default for GoogleSearchExchange
impl Default for GoogleSearchExchange
Source§fn default() -> GoogleSearchExchange
fn default() -> GoogleSearchExchange
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GoogleSearchExchange
impl RefUnwindSafe for GoogleSearchExchange
impl Send for GoogleSearchExchange
impl Sync for GoogleSearchExchange
impl Unpin for GoogleSearchExchange
impl UnsafeUnpin for GoogleSearchExchange
impl UnwindSafe for GoogleSearchExchange
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