Interface SpanToolResultValue.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpanToolResultValue.Builder,,SpanToolResultValue> SdkBuilder<SpanToolResultValue.Builder,,SpanToolResultValue> SdkPojo
- Enclosing class:
SpanToolResultValue
@Mutable
@NotThreadSafe
public static interface SpanToolResultValue.Builder
extends SdkPojo, CopyableBuilder<SpanToolResultValue.Builder,SpanToolResultValue>
-
Method Summary
Modifier and TypeMethodDescriptionThe tool invocation error if failedRelates this result back to the tool invocationvalues(Collection<SpanMessageValue> values) The tool resultsvalues(Consumer<SpanMessageValue.Builder>... values) The tool resultsvalues(SpanMessageValue... values) The tool resultsMethods 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
-
toolUseId
Relates this result back to the tool invocation
- Parameters:
toolUseId- Relates this result back to the tool invocation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
The tool results
- Parameters:
values- The tool results- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
The tool results
- Parameters:
values- The tool results- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
values
The tool results
This is a convenience method that creates an instance of theSpanMessageValue.Builderavoiding the need to create one manually viaSpanMessageValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalues(List<SpanMessageValue>).- Parameters:
values- a consumer that will call methods onSpanMessageValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
The tool invocation error if failed
- Parameters:
error- The tool invocation error if failed- Returns:
- Returns a reference to this object so that method calls can be chained together.
-