#[non_exhaustive]pub struct ParallelAiSearch {
pub api_key: String,
pub custom_configs: Option<Struct>,
/* private fields */
}gen-ai-cache-service or llm-utility-service or prediction-service or vertex-rag-service only.Expand description
ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_key: StringOptional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
custom_configs: Option<Struct>Optional. Custom configs for ParallelAiSearch.
This field can be used to pass any parameter from the Parallel.ai
Search API.
See the Parallel.ai documentation for the full list of available
parameters and their usage:
https://docs.parallel.ai/api-reference/search-beta/search
Currently only source_policy, excerpts, max_results, mode,
fetch_policy can be set via this field. For example:
{
“source_policy”: {
“include_domains”: [“google.com”, “wikipedia.org”],
“exclude_domains”: [“example.com”]
},
“fetch_policy”: {
“max_age_seconds”: 3600
}
}
Implementations§
Source§impl ParallelAiSearch
impl ParallelAiSearch
Sourcepub fn set_api_key<T: Into<String>>(self, v: T) -> Self
pub fn set_api_key<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_custom_configs<T>(self, v: T) -> Self
pub fn set_custom_configs<T>(self, v: T) -> Self
Sets the value of custom_configs.
§Example
use wkt::Struct;
let x = ParallelAiSearch::new().set_custom_configs(Struct::default()/* use setters */);Sourcepub fn set_or_clear_custom_configs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_configs<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_configs.
§Example
use wkt::Struct;
let x = ParallelAiSearch::new().set_or_clear_custom_configs(Some(Struct::default()/* use setters */));
let x = ParallelAiSearch::new().set_or_clear_custom_configs(None::<Struct>);Trait Implementations§
Source§impl Clone for ParallelAiSearch
impl Clone for ParallelAiSearch
Source§fn clone(&self) -> ParallelAiSearch
fn clone(&self) -> ParallelAiSearch
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParallelAiSearch
impl Debug for ParallelAiSearch
Source§impl Default for ParallelAiSearch
impl Default for ParallelAiSearch
Source§fn default() -> ParallelAiSearch
fn default() -> ParallelAiSearch
Source§impl Message for ParallelAiSearch
impl Message for ParallelAiSearch
Source§impl PartialEq for ParallelAiSearch
impl PartialEq for ParallelAiSearch
impl StructuralPartialEq for ParallelAiSearch
Auto Trait Implementations§
impl Freeze for ParallelAiSearch
impl RefUnwindSafe for ParallelAiSearch
impl Send for ParallelAiSearch
impl Sync for ParallelAiSearch
impl Unpin for ParallelAiSearch
impl UnsafeUnpin for ParallelAiSearch
impl UnwindSafe for ParallelAiSearch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request