Interface AgenticRetrieveStreamRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRuntimeRequest.Builder,Buildable,CopyableBuilder<AgenticRetrieveStreamRequest.Builder,,AgenticRetrieveStreamRequest> SdkBuilder<AgenticRetrieveStreamRequest.Builder,,AgenticRetrieveStreamRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AgenticRetrieveStreamRequest
-
Method Summary
Modifier and TypeMethodDescriptionagenticRetrieveConfiguration(Consumer<AgenticRetrieveConfiguration.Builder> agenticRetrieveConfiguration) Configuration settings for the agentic retrieval operation.agenticRetrieveConfiguration(AgenticRetrieveConfiguration agenticRetrieveConfiguration) Configuration settings for the agentic retrieval operation.generateResponse(Boolean generateResponse) Whether to generate a response based on the retrieved results.messages(Collection<AgenticRetrieveMessage> messages) The list of messages for the agentic retrieval conversation.messages(Consumer<AgenticRetrieveMessage.Builder>... messages) The list of messages for the agentic retrieval conversation.messages(AgenticRetrieveMessage... messages) The list of messages for the agentic retrieval conversation.Opaque continuation token for paginated results.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyConfiguration(Consumer<AgenticRetrievePolicyConfiguration.Builder> policyConfiguration) Policy configuration for guardrails and content filtering.policyConfiguration(AgenticRetrievePolicyConfiguration policyConfiguration) Policy configuration for guardrails and content filtering.retrievers(Collection<AgenticRetriever> retrievers) The list of retrievers to use for agentic retrieval.retrievers(Consumer<AgenticRetriever.Builder>... retrievers) The list of retrievers to use for agentic retrieval.retrievers(AgenticRetriever... retrievers) The list of retrievers to use for agentic retrieval.userContext(Consumer<UserContext.Builder> userContext) Contains information about the user making the request.userContext(UserContext userContext) Contains information about the user making the request.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.BedrockAgentRuntimeRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agenticRetrieveConfiguration
AgenticRetrieveStreamRequest.Builder agenticRetrieveConfiguration(AgenticRetrieveConfiguration agenticRetrieveConfiguration) Configuration settings for the agentic retrieval operation.
- Parameters:
agenticRetrieveConfiguration- Configuration settings for the agentic retrieval operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agenticRetrieveConfiguration
default AgenticRetrieveStreamRequest.Builder agenticRetrieveConfiguration(Consumer<AgenticRetrieveConfiguration.Builder> agenticRetrieveConfiguration) Configuration settings for the agentic retrieval operation.
This is a convenience method that creates an instance of theAgenticRetrieveConfiguration.Builderavoiding the need to create one manually viaAgenticRetrieveConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagenticRetrieveConfiguration(AgenticRetrieveConfiguration).- Parameters:
agenticRetrieveConfiguration- a consumer that will call methods onAgenticRetrieveConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
generateResponse
Whether to generate a response based on the retrieved results.
- Parameters:
generateResponse- Whether to generate a response based on the retrieved results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The list of messages for the agentic retrieval conversation.
- Parameters:
messages- The list of messages for the agentic retrieval conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The list of messages for the agentic retrieval conversation.
- Parameters:
messages- The list of messages for the agentic retrieval conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The list of messages for the agentic retrieval conversation.
This is a convenience method that creates an instance of theAgenticRetrieveMessage.Builderavoiding the need to create one manually viaAgenticRetrieveMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomessages(List<AgenticRetrieveMessage>).- Parameters:
messages- a consumer that will call methods onAgenticRetrieveMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Opaque continuation token for paginated results.
- Parameters:
nextToken- Opaque continuation token for paginated results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyConfiguration
AgenticRetrieveStreamRequest.Builder policyConfiguration(AgenticRetrievePolicyConfiguration policyConfiguration) Policy configuration for guardrails and content filtering.
- Parameters:
policyConfiguration- Policy configuration for guardrails and content filtering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyConfiguration
default AgenticRetrieveStreamRequest.Builder policyConfiguration(Consumer<AgenticRetrievePolicyConfiguration.Builder> policyConfiguration) Policy configuration for guardrails and content filtering.
This is a convenience method that creates an instance of theAgenticRetrievePolicyConfiguration.Builderavoiding the need to create one manually viaAgenticRetrievePolicyConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicyConfiguration(AgenticRetrievePolicyConfiguration).- Parameters:
policyConfiguration- a consumer that will call methods onAgenticRetrievePolicyConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retrievers
The list of retrievers to use for agentic retrieval.
- Parameters:
retrievers- The list of retrievers to use for agentic retrieval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievers
The list of retrievers to use for agentic retrieval.
- Parameters:
retrievers- The list of retrievers to use for agentic retrieval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievers
The list of retrievers to use for agentic retrieval.
This is a convenience method that creates an instance of theAgenticRetriever.Builderavoiding the need to create one manually viaAgenticRetriever.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretrievers(List<AgenticRetriever>).- Parameters:
retrievers- a consumer that will call methods onAgenticRetriever.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContext
Contains information about the user making the request. This is used for access control filtering to ensure that retrieval results only include documents the user is authorized to access.
- Parameters:
userContext- Contains information about the user making the request. This is used for access control filtering to ensure that retrieval results only include documents the user is authorized to access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userContext
Contains information about the user making the request. This is used for access control filtering to ensure that retrieval results only include documents the user is authorized to access.
This is a convenience method that creates an instance of theUserContext.Builderavoiding the need to create one manually viaUserContext.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserContext(UserContext).- Parameters:
userContext- a consumer that will call methods onUserContext.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AgenticRetrieveStreamRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AgenticRetrieveStreamRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-