pub struct AiWebSearchConfig {
pub provider: Provider,
pub resource_path: String,
}Expand description
AiWebSearchConfig : The search API the AI chat searches the web and reads pages through when the model’s provider has no built-in web search. Read from the workspace’s own settings like copilot_disabled.
Fields§
§provider: Provider§resource_path: StringImplementations§
Source§impl AiWebSearchConfig
impl AiWebSearchConfig
Sourcepub fn new(provider: Provider, resource_path: String) -> AiWebSearchConfig
pub fn new(provider: Provider, resource_path: String) -> AiWebSearchConfig
The search API the AI chat searches the web and reads pages through when the model’s provider has no built-in web search. Read from the workspace’s own settings like copilot_disabled.
Trait Implementations§
Source§impl Clone for AiWebSearchConfig
impl Clone for AiWebSearchConfig
Source§impl Debug for AiWebSearchConfig
impl Debug for AiWebSearchConfig
Source§impl Default for AiWebSearchConfig
impl Default for AiWebSearchConfig
Source§impl<'de> Deserialize<'de> for AiWebSearchConfig
impl<'de> Deserialize<'de> for AiWebSearchConfig
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 AiWebSearchConfig
impl PartialEq for AiWebSearchConfig
Source§impl Serialize for AiWebSearchConfig
impl Serialize for AiWebSearchConfig
impl StructuralPartialEq for AiWebSearchConfig
Auto Trait Implementations§
impl Forget for AiWebSearchConfig
impl Freeze for AiWebSearchConfig
impl RefUnwindSafe for AiWebSearchConfig
impl Send for AiWebSearchConfig
impl Sync for AiWebSearchConfig
impl Unpin for AiWebSearchConfig
impl UnsafeUnpin for AiWebSearchConfig
impl UnwindSafe for AiWebSearchConfig
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