pub struct WebSearchPreviewTool {
pub type_: WebSearchPreviewToolType,
pub search_content_types: Option<Vec<Value>>,
pub search_context_size: Option<WebSearchPreviewToolSearchContextSize>,
pub user_location: Option<UserLocation>,
}Expand description
This tool searches the web for relevant results to use in a response.
Fields§
§type_: WebSearchPreviewToolTypeThe type of the web search tool.
search_content_types: Option<Vec<Value>>§search_context_size: Option<WebSearchPreviewToolSearchContextSize>High level guidance for the amount of context window space to use for the
user_location: Option<UserLocation>The user’s location.
Trait Implementations§
Source§impl Clone for WebSearchPreviewTool
impl Clone for WebSearchPreviewTool
Source§fn clone(&self) -> WebSearchPreviewTool
fn clone(&self) -> WebSearchPreviewTool
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 WebSearchPreviewTool
impl Debug for WebSearchPreviewTool
Source§impl<'de> Deserialize<'de> for WebSearchPreviewTool
impl<'de> Deserialize<'de> for WebSearchPreviewTool
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 WebSearchPreviewTool
impl RefUnwindSafe for WebSearchPreviewTool
impl Send for WebSearchPreviewTool
impl Sync for WebSearchPreviewTool
impl Unpin for WebSearchPreviewTool
impl UnsafeUnpin for WebSearchPreviewTool
impl UnwindSafe for WebSearchPreviewTool
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