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