Interface AgenticRetrieveGeneratedResponse.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AgenticRetrieveGeneratedResponse.Builder,,AgenticRetrieveGeneratedResponse> SdkBuilder<AgenticRetrieveGeneratedResponse.Builder,,AgenticRetrieveGeneratedResponse> SdkPojo
- Enclosing class:
AgenticRetrieveGeneratedResponse
@Mutable
@NotThreadSafe
public static interface AgenticRetrieveGeneratedResponse.Builder
extends SdkPojo, CopyableBuilder<AgenticRetrieveGeneratedResponse.Builder,AgenticRetrieveGeneratedResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe generated answer text.citations(Collection<AgenticRetrieveCitation> citations) Citations mapping spans of the answer to supporting results.citations(Consumer<AgenticRetrieveCitation.Builder>... citations) Citations mapping spans of the answer to supporting results.citations(AgenticRetrieveCitation... citations) Citations mapping spans of the answer to supporting results.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
-
answer
The generated answer text.
- Parameters:
answer- The generated answer text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
Citations mapping spans of the answer to supporting results.
- Parameters:
citations- Citations mapping spans of the answer to supporting results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
Citations mapping spans of the answer to supporting results.
- Parameters:
citations- Citations mapping spans of the answer to supporting results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
AgenticRetrieveGeneratedResponse.Builder citations(Consumer<AgenticRetrieveCitation.Builder>... citations) Citations mapping spans of the answer to supporting results.
This is a convenience method that creates an instance of theAgenticRetrieveCitation.Builderavoiding the need to create one manually viaAgenticRetrieveCitation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocitations(List<AgenticRetrieveCitation>).- Parameters:
citations- a consumer that will call methods onAgenticRetrieveCitation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-