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