Interface CallResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CallResult.Builder,,CallResult> SdkBuilder<CallResult.Builder,,CallResult> SdkPojo
- Enclosing class:
CallResult
@Mutable
@NotThreadSafe
public static interface CallResult.Builder
extends SdkPojo, CopyableBuilder<CallResult.Builder,CallResult>
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the tool call that this result corresponds to.content(Collection<CallResultContent> content) The content returned by the tool execution, which can include text or other media types.content(Consumer<CallResultContent.Builder>... content) The content returned by the tool execution, which can include text or other media types.content(CallResultContent... content) The content returned by the tool execution, which can include text or other media types.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
-
callId
The identifier of the tool call that this result corresponds to.
- Parameters:
callId- The identifier of the tool call that this result corresponds to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content returned by the tool execution, which can include text or other media types.
- Parameters:
content- The content returned by the tool execution, which can include text or other media types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content returned by the tool execution, which can include text or other media types.
- Parameters:
content- The content returned by the tool execution, which can include text or other media types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content returned by the tool execution, which can include text or other media types.
This is a convenience method that creates an instance of theCallResultContent.Builderavoiding the need to create one manually viaCallResultContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(List<CallResultContent>).- Parameters:
content- a consumer that will call methods onCallResultContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-