Class CodeExecutionToolResultBlock.Builder
-
- All Implemented Interfaces:
public final class CodeExecutionToolResultBlock.BuilderA builder for CodeExecutionToolResultBlock.
-
-
Method Summary
-
-
Method Detail
-
content
final CodeExecutionToolResultBlock.Builder content(CodeExecutionToolResultBlockContent content)
Code execution result with encrypted stdout for PFC + web_search results.
-
content
final CodeExecutionToolResultBlock.Builder content(JsonField<CodeExecutionToolResultBlockContent> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed CodeExecutionToolResultBlockContent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final CodeExecutionToolResultBlock.Builder content(CodeExecutionToolResultError error)
Alias for calling content with
CodeExecutionToolResultBlockContent.ofError(error).
-
content
final CodeExecutionToolResultBlock.Builder content(CodeExecutionResultBlock resultBlock)
Alias for calling content with
CodeExecutionToolResultBlockContent.ofResultBlock(resultBlock).
-
content
final CodeExecutionToolResultBlock.Builder content(EncryptedCodeExecutionResultBlock encryptedCodeExecutionResultBlock)
Alias for calling content with
CodeExecutionToolResultBlockContent.ofEncryptedCodeExecutionResultBlock(encryptedCodeExecutionResultBlock).
-
toolUseId
final CodeExecutionToolResultBlock.Builder toolUseId(String toolUseId)
-
toolUseId
final CodeExecutionToolResultBlock.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 CodeExecutionToolResultBlock.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 CodeExecutionToolResultBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CodeExecutionToolResultBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CodeExecutionToolResultBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CodeExecutionToolResultBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CodeExecutionToolResultBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CodeExecutionToolResultBlock build()
Returns an immutable instance of CodeExecutionToolResultBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .toolUseId()
-
-
-
-