#[non_exhaustive]pub struct AugmentPromptResponse {
pub augmented_prompt: Vec<Content>,
pub facts: Vec<Fact>,
/* private fields */
}Available on crate feature
vertex-rag-service only.Expand description
Response message for AugmentPrompt.
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.augmented_prompt: Vec<Content>Augmented prompt, only text format is supported for now.
facts: Vec<Fact>Retrieved facts from RAG data sources.
Implementations§
Source§impl AugmentPromptResponse
impl AugmentPromptResponse
pub fn new() -> Self
Sourcepub fn set_augmented_prompt<T, V>(self, v: T) -> Self
pub fn set_augmented_prompt<T, V>(self, v: T) -> Self
Sets the value of augmented_prompt.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::Content;
let x = AugmentPromptResponse::new()
.set_augmented_prompt([
Content::default()/* use setters */,
Content::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for AugmentPromptResponse
impl Clone for AugmentPromptResponse
Source§fn clone(&self) -> AugmentPromptResponse
fn clone(&self) -> AugmentPromptResponse
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 AugmentPromptResponse
impl Debug for AugmentPromptResponse
Source§impl Default for AugmentPromptResponse
impl Default for AugmentPromptResponse
Source§fn default() -> AugmentPromptResponse
fn default() -> AugmentPromptResponse
Returns the “default value” for a type. Read more
Source§impl Message for AugmentPromptResponse
impl Message for AugmentPromptResponse
Source§impl PartialEq for AugmentPromptResponse
impl PartialEq for AugmentPromptResponse
impl StructuralPartialEq for AugmentPromptResponse
Auto Trait Implementations§
impl Freeze for AugmentPromptResponse
impl RefUnwindSafe for AugmentPromptResponse
impl Send for AugmentPromptResponse
impl Sync for AugmentPromptResponse
impl Unpin for AugmentPromptResponse
impl UnwindSafe for AugmentPromptResponse
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