Class BetaCodeExecutionToolResultBlock.Builder
-
- All Implemented Interfaces:
public final class BetaCodeExecutionToolResultBlock.BuilderA builder for BetaCodeExecutionToolResultBlock.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaCodeExecutionToolResultBlock.Builder content(BetaCodeExecutionToolResultBlockContent content)
-
content
final BetaCodeExecutionToolResultBlock.Builder content(JsonField<BetaCodeExecutionToolResultBlockContent> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed BetaCodeExecutionToolResultBlockContent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaCodeExecutionToolResultBlock.Builder content(BetaCodeExecutionToolResultError error)
Alias for calling content with
BetaCodeExecutionToolResultBlockContent.ofError(error).
-
content
final BetaCodeExecutionToolResultBlock.Builder content(BetaCodeExecutionResultBlock resultBlock)
Alias for calling content with
BetaCodeExecutionToolResultBlockContent.ofResultBlock(resultBlock).
-
toolUseId
final BetaCodeExecutionToolResultBlock.Builder toolUseId(String toolUseId)
-
toolUseId
final BetaCodeExecutionToolResultBlock.Builder toolUseId(JsonField<String> toolUseId)
Sets Builder.toolUseId to an arbitrary JSON value.
You should usually call Builder.toolUseId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaCodeExecutionToolResultBlock.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("code_execution_tool_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaCodeExecutionToolResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaCodeExecutionToolResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaCodeExecutionToolResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaCodeExecutionToolResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaCodeExecutionToolResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaCodeExecutionToolResultBlock build()
Returns an immutable instance of BetaCodeExecutionToolResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-