Interface AgenticRetrieveStreamRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<AgenticRetrieveStreamRequest.Builder,,AgenticRetrieveStreamRequest> SdkBuilder<AgenticRetrieveStreamRequest.Builder,,AgenticRetrieveStreamRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AgenticRetrieveStreamRequest
-
Method Summary
Modifier and TypeMethodDescriptionagentContextId(String agentContextId) The agent context to retrieve from, by its ID or ARN.analysisConfiguration(Consumer<AnalysisConfiguration.Builder> analysisConfiguration) Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis.analysisConfiguration(AnalysisConfiguration analysisConfiguration) Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis.messages(Collection<Message> messages) The conversation, as an ordered list of turns.messages(Consumer<Message.Builder>... messages) The conversation, as an ordered list of turns.The conversation, as an ordered list of turns.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.retrievalConfiguration(Consumer<StreamRetrievalConfiguration.Builder> retrievalConfiguration) Optional bounds and configuration for the agent loop.retrievalConfiguration(StreamRetrievalConfiguration retrievalConfiguration) Optional bounds and configuration for the agent loop.Optional.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.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
-
agentContextId
The agent context to retrieve from, by its ID or ARN.
- Parameters:
agentContextId- The agent context to retrieve from, by its ID or ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.
- Parameters:
messages- The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.
- Parameters:
messages- The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The conversation, as an ordered list of turns. A single-question caller sends one user message. The list carries multi-turn history so a follow-up resolves against earlier turns.
This is a convenience method that creates an instance of theMessage.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomessages(List<Message>).- Parameters:
messages- a consumer that will call methods onMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionId
Optional. A key that you supply to group related calls, for example the turns of one conversation, for trace storage and analysis. Grouping is per account, across agent contexts, so use a value that is unique to each conversation.
- Parameters:
sessionId- Optional. A key that you supply to group related calls, for example the turns of one conversation, for trace storage and analysis. Grouping is per account, across agent contexts, so use a value that is unique to each conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
analysisConfiguration
AgenticRetrieveStreamRequest.Builder analysisConfiguration(AnalysisConfiguration analysisConfiguration) Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis. Trace events are streamed either way.
- Parameters:
analysisConfiguration- Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis. Trace events are streamed either way.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
analysisConfiguration
default AgenticRetrieveStreamRequest.Builder analysisConfiguration(Consumer<AnalysisConfiguration.Builder> analysisConfiguration) Optional controls for post-call analysis of the retrieval: whether its trace is stored for analysis. Trace events are streamed either way.
This is a convenience method that creates an instance of theAnalysisConfiguration.Builderavoiding the need to create one manually viaAnalysisConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanalysisConfiguration(AnalysisConfiguration).- Parameters:
analysisConfiguration- a consumer that will call methods onAnalysisConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retrievalConfiguration
AgenticRetrieveStreamRequest.Builder retrievalConfiguration(StreamRetrievalConfiguration retrievalConfiguration) Optional bounds and configuration for the agent loop.
- Parameters:
retrievalConfiguration- Optional bounds and configuration for the agent loop.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievalConfiguration
default AgenticRetrieveStreamRequest.Builder retrievalConfiguration(Consumer<StreamRetrievalConfiguration.Builder> retrievalConfiguration) Optional bounds and configuration for the agent loop.
This is a convenience method that creates an instance of theStreamRetrievalConfiguration.Builderavoiding the need to create one manually viaStreamRetrievalConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretrievalConfiguration(StreamRetrievalConfiguration).- Parameters:
retrievalConfiguration- a consumer that will call methods onStreamRetrievalConfiguration.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.
-