Struct aws_sdk_bedrockagentruntime::operation::retrieve_and_generate::RetrieveAndGenerateOutput
source · #[non_exhaustive]pub struct RetrieveAndGenerateOutput {
pub session_id: String,
pub output: Option<RetrieveAndGenerateOutput>,
pub citations: Option<Vec<Citation>>,
pub guardrail_action: Option<GuadrailAction>,
/* private fields */
}
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.session_id: String
The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
output: Option<RetrieveAndGenerateOutput>
Contains the response generated from querying the knowledge base.
citations: Option<Vec<Citation>>
A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.
guardrail_action: Option<GuadrailAction>
Specifies if there is a guardrail intervention in the response.
Implementations§
source§impl RetrieveAndGenerateOutput
impl RetrieveAndGenerateOutput
sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
The unique identifier of the session. Reuse the same value to continue the same session with the knowledge base.
sourcepub fn output(&self) -> Option<&RetrieveAndGenerateOutput>
pub fn output(&self) -> Option<&RetrieveAndGenerateOutput>
Contains the response generated from querying the knowledge base.
sourcepub fn citations(&self) -> &[Citation]
pub fn citations(&self) -> &[Citation]
A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .citations.is_none()
.
sourcepub fn guardrail_action(&self) -> Option<&GuadrailAction>
pub fn guardrail_action(&self) -> Option<&GuadrailAction>
Specifies if there is a guardrail intervention in the response.
source§impl RetrieveAndGenerateOutput
impl RetrieveAndGenerateOutput
sourcepub fn builder() -> RetrieveAndGenerateOutputBuilder
pub fn builder() -> RetrieveAndGenerateOutputBuilder
Creates a new builder-style object to manufacture RetrieveAndGenerateOutput
.
Trait Implementations§
source§impl Clone for RetrieveAndGenerateOutput
impl Clone for RetrieveAndGenerateOutput
source§fn clone(&self) -> RetrieveAndGenerateOutput
fn clone(&self) -> RetrieveAndGenerateOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetrieveAndGenerateOutput
impl Debug for RetrieveAndGenerateOutput
source§impl PartialEq for RetrieveAndGenerateOutput
impl PartialEq for RetrieveAndGenerateOutput
source§fn eq(&self, other: &RetrieveAndGenerateOutput) -> bool
fn eq(&self, other: &RetrieveAndGenerateOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for RetrieveAndGenerateOutput
impl RequestId for RetrieveAndGenerateOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for RetrieveAndGenerateOutput
Auto Trait Implementations§
impl Freeze for RetrieveAndGenerateOutput
impl RefUnwindSafe for RetrieveAndGenerateOutput
impl Send for RetrieveAndGenerateOutput
impl Sync for RetrieveAndGenerateOutput
impl Unpin for RetrieveAndGenerateOutput
impl UnwindSafe for RetrieveAndGenerateOutput
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more