AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the RetrieveAndGenerate operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.BedrockAgentRuntime.Model.RetrieveAndGenerateResponse

Namespace: Amazon.BedrockAgentRuntime.Model
Assembly: AWSSDK.BedrockAgentRuntime.dll
Version: 3.x.y.z

Syntax

C#
public class RetrieveAndGenerateResponse : AmazonWebServiceResponse

The RetrieveAndGenerateResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Citations System.Collections.Generic.List<Amazon.BedrockAgentRuntime.Model.Citation>

Gets and sets the property Citations.

A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property GuardrailAction Amazon.BedrockAgentRuntime.GuadrailAction

Gets and sets the property GuardrailAction.

Specifies if there is a guardrail intervention in the response.

Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Output Amazon.BedrockAgentRuntime.Model.RetrieveAndGenerateOutput

Gets and sets the property Output.

Contains the response generated from querying the knowledge base.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property SessionId System.String

Gets and sets the property SessionId.

The unique identifier of the session. When you first make a RetrieveAndGenerate request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the sessionId yourself.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5