Interface ContentBlockDelta.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<ContentBlockDelta.Builder,,ContentBlockDelta> SdkBuilder<ContentBlockDelta.Builder,,ContentBlockDelta> SdkPojo
- Enclosing class:
 ContentBlockDelta
- 
Method Summary
Modifier and TypeMethodDescriptiondefault ContentBlockDelta.Buildercitation(Consumer<CitationsDelta.Builder> citation) Incremental citation information that is streamed as part of the response generation process.citation(CitationsDelta citation) Incremental citation information that is streamed as part of the response generation process.default ContentBlockDelta.BuilderreasoningContent(Consumer<ReasoningContentBlockDelta.Builder> reasoningContent) Contains content regarding the reasoning that is carried out by the model.reasoningContent(ReasoningContentBlockDelta reasoningContent) Contains content regarding the reasoning that is carried out by the model.The content text.toolResult(Collection<ToolResultBlockDelta> toolResult) An incremental update that contains the results from a tool call.toolResult(Consumer<ToolResultBlockDelta.Builder>... toolResult) An incremental update that contains the results from a tool call.toolResult(ToolResultBlockDelta... toolResult) An incremental update that contains the results from a tool call.default ContentBlockDelta.BuildertoolUse(Consumer<ToolUseBlockDelta.Builder> toolUse) Information about a tool that the model is requesting to use.toolUse(ToolUseBlockDelta toolUse) Information about a tool that the model is requesting to use.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
- 
text
The content text.
- Parameters:
 text- The content text.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
toolUse
Information about a tool that the model is requesting to use.
- Parameters:
 toolUse- Information about a tool that the model is requesting to use.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
toolUse
Information about a tool that the model is requesting to use.
This is a convenience method that creates an instance of theToolUseBlockDelta.Builderavoiding the need to create one manually viaToolUseBlockDelta.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolUse(ToolUseBlockDelta).- Parameters:
 toolUse- a consumer that will call methods onToolUseBlockDelta.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
toolResult
An incremental update that contains the results from a tool call.
- Parameters:
 toolResult- An incremental update that contains the results from a tool call.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
toolResult
An incremental update that contains the results from a tool call.
- Parameters:
 toolResult- An incremental update that contains the results from a tool call.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
toolResult
An incremental update that contains the results from a tool call.
This is a convenience method that creates an instance of theToolResultBlockDelta.Builderavoiding the need to create one manually viaToolResultBlockDelta.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolResult(List<ToolResultBlockDelta>).- Parameters:
 toolResult- a consumer that will call methods onToolResultBlockDelta.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
reasoningContent
Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.
- Parameters:
 reasoningContent- Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
reasoningContent
default ContentBlockDelta.Builder reasoningContent(Consumer<ReasoningContentBlockDelta.Builder> reasoningContent) Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.
This is a convenience method that creates an instance of theReasoningContentBlockDelta.Builderavoiding the need to create one manually viaReasoningContentBlockDelta.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreasoningContent(ReasoningContentBlockDelta).- Parameters:
 reasoningContent- a consumer that will call methods onReasoningContentBlockDelta.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
citation
Incremental citation information that is streamed as part of the response generation process.
- Parameters:
 citation- Incremental citation information that is streamed as part of the response generation process.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
citation
Incremental citation information that is streamed as part of the response generation process.
This is a convenience method that creates an instance of theCitationsDelta.Builderavoiding the need to create one manually viaCitationsDelta.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocitation(CitationsDelta).- Parameters:
 citation- a consumer that will call methods onCitationsDelta.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -