Class RetrieveAndGenerateStreamRequest
java.lang.Object
software.amazon.awssdk.core.SdkRequest
software.amazon.awssdk.awscore.AwsRequest
software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest
software.amazon.awssdk.services.bedrockagentruntime.model.RetrieveAndGenerateStreamRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RetrieveAndGenerateStreamRequest.Builder,RetrieveAndGenerateStreamRequest>
@Generated("software.amazon.awssdk:codegen")
public final class RetrieveAndGenerateStreamRequest
extends BedrockAgentRuntimeRequest
implements ToCopyableBuilder<RetrieveAndGenerateStreamRequest.Builder,RetrieveAndGenerateStreamRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RetrieveAndGenerateInputinput()Contains the query to be made to the knowledge base.Contains configurations for the knowledge base query and retrieval process.static Class<? extends RetrieveAndGenerateStreamRequest.Builder>Contains details about the session with the knowledge base.final StringThe unique identifier of the session.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
input
Contains the query to be made to the knowledge base.
- Returns:
- Contains the query to be made to the knowledge base.
-
retrieveAndGenerateConfiguration
Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
- Returns:
- Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.
-
sessionConfiguration
Contains details about the session with the knowledge base.
- Returns:
- Contains details about the session with the knowledge base.
-
sessionId
The unique identifier of the session. When you first make a
RetrieveAndGeneraterequest, 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 thesessionIdyourself.- Returns:
- The unique identifier of the session. When you first make a
RetrieveAndGeneraterequest, 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 thesessionIdyourself.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RetrieveAndGenerateStreamRequest.Builder,RetrieveAndGenerateStreamRequest> - Specified by:
toBuilderin classBedrockAgentRuntimeRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-