pub struct CreateChatCompletionRequestWebSearchOptions {
pub user_location: Option<CreateChatCompletionRequestWebSearchOptionsUserLocation>,
pub search_context_size: Option<WebSearchContextSize>,
}
Expand description
This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
Fields§
§user_location: Option<CreateChatCompletionRequestWebSearchOptionsUserLocation>
Approximate location parameters for the search.
search_context_size: Option<WebSearchContextSize>
Implementations§
Source§impl CreateChatCompletionRequestWebSearchOptions
impl CreateChatCompletionRequestWebSearchOptions
Sourcepub fn builder() -> CreateChatCompletionRequestWebSearchOptionsBuilder<((), ())>
pub fn builder() -> CreateChatCompletionRequestWebSearchOptionsBuilder<((), ())>
Create a builder for building CreateChatCompletionRequestWebSearchOptions
.
On the builder, call .user_location(...)
(optional), .search_context_size(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateChatCompletionRequestWebSearchOptions
.
Trait Implementations§
Source§impl Clone for CreateChatCompletionRequestWebSearchOptions
impl Clone for CreateChatCompletionRequestWebSearchOptions
Source§fn clone(&self) -> CreateChatCompletionRequestWebSearchOptions
fn clone(&self) -> CreateChatCompletionRequestWebSearchOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for CreateChatCompletionRequestWebSearchOptions
impl Default for CreateChatCompletionRequestWebSearchOptions
Source§fn default() -> CreateChatCompletionRequestWebSearchOptions
fn default() -> CreateChatCompletionRequestWebSearchOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateChatCompletionRequestWebSearchOptions
impl<'de> Deserialize<'de> for CreateChatCompletionRequestWebSearchOptions
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
Source§impl PartialEq for CreateChatCompletionRequestWebSearchOptions
impl PartialEq for CreateChatCompletionRequestWebSearchOptions
Source§fn eq(&self, other: &CreateChatCompletionRequestWebSearchOptions) -> bool
fn eq(&self, other: &CreateChatCompletionRequestWebSearchOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateChatCompletionRequestWebSearchOptions
Auto Trait Implementations§
impl Freeze for CreateChatCompletionRequestWebSearchOptions
impl RefUnwindSafe for CreateChatCompletionRequestWebSearchOptions
impl Send for CreateChatCompletionRequestWebSearchOptions
impl Sync for CreateChatCompletionRequestWebSearchOptions
impl Unpin for CreateChatCompletionRequestWebSearchOptions
impl UnwindSafe for CreateChatCompletionRequestWebSearchOptions
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