Class BetaMcpToolResultBlock.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolResultBlock.BuilderA builder for BetaMcpToolResultBlock.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaMcpToolResultBlock.Builder content(BetaMcpToolResultBlock.Content content)
-
content
final BetaMcpToolResultBlock.Builder content(JsonField<BetaMcpToolResultBlock.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaMcpToolResultBlock.Builder content(String string)
Alias for calling content with
Content.ofString(string).
-
contentOfBetaMcpToolResultBlock
final BetaMcpToolResultBlock.Builder contentOfBetaMcpToolResultBlock(List<BetaTextBlock> betaMcpToolResultBlock)
Alias for calling content with
Content.ofBetaMcpToolResultBlock(betaMcpToolResultBlock).
-
isError
final BetaMcpToolResultBlock.Builder isError(Boolean isError)
-
isError
final BetaMcpToolResultBlock.Builder isError(JsonField<Boolean> isError)
Sets Builder.isError to an arbitrary JSON value.
You should usually call Builder.isError with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolUseId
final BetaMcpToolResultBlock.Builder toolUseId(String toolUseId)
-
toolUseId
final BetaMcpToolResultBlock.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 BetaMcpToolResultBlock.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("mcp_tool_result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMcpToolResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolResultBlock build()
Returns an immutable instance of BetaMcpToolResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .isError() .toolUseId()
-
-
-
-