#[non_exhaustive]pub struct AsyncRetrieveContextsRequest {
pub parent: String,
pub query: Option<RagQuery>,
pub tools: Vec<Tool>,
/* private fields */
}Available on crate feature
vertex-rag-service only.Expand description
Request message for VertexRagService.AsyncRetrieveContexts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}.
query: Option<RagQuery>Required. Single RAG retrieve query.
tools: Vec<Tool>Optional. The tools to use for AskContexts.
Implementations§
Trait Implementations§
Source§impl Clone for AsyncRetrieveContextsRequest
impl Clone for AsyncRetrieveContextsRequest
Source§fn clone(&self) -> AsyncRetrieveContextsRequest
fn clone(&self) -> AsyncRetrieveContextsRequest
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 Debug for AsyncRetrieveContextsRequest
impl Debug for AsyncRetrieveContextsRequest
Source§impl Default for AsyncRetrieveContextsRequest
impl Default for AsyncRetrieveContextsRequest
Source§fn default() -> AsyncRetrieveContextsRequest
fn default() -> AsyncRetrieveContextsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for AsyncRetrieveContextsRequest
impl PartialEq for AsyncRetrieveContextsRequest
Source§fn eq(&self, other: &AsyncRetrieveContextsRequest) -> bool
fn eq(&self, other: &AsyncRetrieveContextsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AsyncRetrieveContextsRequest
Auto Trait Implementations§
impl Freeze for AsyncRetrieveContextsRequest
impl RefUnwindSafe for AsyncRetrieveContextsRequest
impl Send for AsyncRetrieveContextsRequest
impl Sync for AsyncRetrieveContextsRequest
impl Unpin for AsyncRetrieveContextsRequest
impl UnsafeUnpin for AsyncRetrieveContextsRequest
impl UnwindSafe for AsyncRetrieveContextsRequest
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