Interface AgenticRetrieveAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgenticRetrieveAction.Builder,,AgenticRetrieveAction> SdkBuilder<AgenticRetrieveAction.Builder,,AgenticRetrieveAction> SdkPojo
- Enclosing class:
AgenticRetrieveAction
@Mutable
@NotThreadSafe
public static interface AgenticRetrieveAction.Builder
extends SdkPojo, CopyableBuilder<AgenticRetrieveAction.Builder,AgenticRetrieveAction>
-
Method Summary
Modifier and TypeMethodDescriptioninputQuery(String inputQuery) The query the agent composed.sourceRetrievers(Collection<AgenticRetrieveSourceRetriever> sourceRetrievers) The sources that the retrieval targets: an agent context, a knowledge base, or a data source.sourceRetrievers(Consumer<AgenticRetrieveSourceRetriever.Builder>... sourceRetrievers) The sources that the retrieval targets: an agent context, a knowledge base, or a data source.sourceRetrievers(AgenticRetrieveSourceRetriever... sourceRetrievers) The sources that the retrieval targets: an agent context, a knowledge base, or a data source.Methods 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
-
inputQuery
The query the agent composed.
- Parameters:
inputQuery- The query the agent composed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRetrievers
AgenticRetrieveAction.Builder sourceRetrievers(Collection<AgenticRetrieveSourceRetriever> sourceRetrievers) The sources that the retrieval targets: an agent context, a knowledge base, or a data source.
- Parameters:
sourceRetrievers- The sources that the retrieval targets: an agent context, a knowledge base, or a data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRetrievers
The sources that the retrieval targets: an agent context, a knowledge base, or a data source.
- Parameters:
sourceRetrievers- The sources that the retrieval targets: an agent context, a knowledge base, or a data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRetrievers
AgenticRetrieveAction.Builder sourceRetrievers(Consumer<AgenticRetrieveSourceRetriever.Builder>... sourceRetrievers) The sources that the retrieval targets: an agent context, a knowledge base, or a data source.
This is a convenience method that creates an instance of theAgenticRetrieveSourceRetriever.Builderavoiding the need to create one manually viaAgenticRetrieveSourceRetriever.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceRetrievers(List<AgenticRetrieveSourceRetriever>).- Parameters:
sourceRetrievers- a consumer that will call methods onAgenticRetrieveSourceRetriever.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-