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