Interface SpanMessageValue.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpanMessageValue.Builder,,SpanMessageValue> SdkBuilder<SpanMessageValue.Builder,,SpanMessageValue> SdkPojo
- Enclosing class:
SpanMessageValue
@Mutable
@NotThreadSafe
public static interface SpanMessageValue.Builder
extends SdkPojo, CopyableBuilder<SpanMessageValue.Builder,SpanMessageValue>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SpanMessageValue.Buildertext(Consumer<SpanTextValue.Builder> text) Text message contenttext(SpanTextValue text) Text message contentdefault SpanMessageValue.BuildertoolResult(Consumer<SpanToolResultValue.Builder> toolResult) Tool result message contenttoolResult(SpanToolResultValue toolResult) Tool result message contentdefault SpanMessageValue.BuildertoolUse(Consumer<SpanToolUseValue.Builder> toolUse) Tool invocation message contenttoolUse(SpanToolUseValue toolUse) Tool invocation message contentMethods 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
Text message content
- Parameters:
text- Text message content- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
Text message content
This is a convenience method that creates an instance of theSpanTextValue.Builderavoiding the need to create one manually viaSpanTextValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totext(SpanTextValue).- Parameters:
text- a consumer that will call methods onSpanTextValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toolUse
Tool invocation message content
- Parameters:
toolUse- Tool invocation message content- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolUse
Tool invocation message content
This is a convenience method that creates an instance of theSpanToolUseValue.Builderavoiding the need to create one manually viaSpanToolUseValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolUse(SpanToolUseValue).- Parameters:
toolUse- a consumer that will call methods onSpanToolUseValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toolResult
Tool result message content
- Parameters:
toolResult- Tool result message content- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolResult
Tool result message content
This is a convenience method that creates an instance of theSpanToolResultValue.Builderavoiding the need to create one manually viaSpanToolResultValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolResult(SpanToolResultValue).- Parameters:
toolResult- a consumer that will call methods onSpanToolResultValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-