Interface GenerativeChunkDataDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GenerativeChunkDataDetails.Builder,,GenerativeChunkDataDetails> SdkBuilder<GenerativeChunkDataDetails.Builder,,GenerativeChunkDataDetails> SdkPojo
- Enclosing class:
GenerativeChunkDataDetails
@Mutable
@NotThreadSafe
public static interface GenerativeChunkDataDetails.Builder
extends SdkPojo, CopyableBuilder<GenerativeChunkDataDetails.Builder,GenerativeChunkDataDetails>
-
Method Summary
Modifier and TypeMethodDescriptioncompletion(String completion) A chunk of the LLM response.nextChunkToken(String nextChunkToken) The token for the next set of chunks.references(Collection<DataSummary> references) The references used to generate the LLM response.references(Consumer<DataSummary.Builder>... references) The references used to generate the LLM response.references(DataSummary... references) The references used to generate the LLM response.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
-
completion
A chunk of the LLM response.
- Parameters:
completion- A chunk of the LLM response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
The references used to generate the LLM response.
- Parameters:
references- The references used to generate the LLM response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
The references used to generate the LLM response.
- Parameters:
references- The references used to generate the LLM response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
references
The references used to generate the LLM response.
This is a convenience method that creates an instance of theDataSummary.Builderavoiding the need to create one manually viaDataSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreferences(List<DataSummary>).- Parameters:
references- a consumer that will call methods onDataSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextChunkToken
The token for the next set of chunks. Use the value returned in the previous response in the next request to retrieve the next set of chunks.
- Parameters:
nextChunkToken- The token for the next set of chunks. Use the value returned in the previous response in the next request to retrieve the next set of chunks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-