Class BetaRawContentBlockStartEvent.Builder
-
- All Implemented Interfaces:
public final class BetaRawContentBlockStartEvent.BuilderA builder for BetaRawContentBlockStartEvent.
-
-
Method Summary
-
-
Method Detail
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaRawContentBlockStartEvent.ContentBlock contentBlock)
Response model for a file uploaded to the container.
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(JsonField<BetaRawContentBlockStartEvent.ContentBlock> contentBlock)
Sets Builder.contentBlock to an arbitrary JSON value.
You should usually call Builder.contentBlock with a well-typed ContentBlock value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaTextBlock text)
Alias for calling contentBlock with
ContentBlock.ofText(text).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaToolUseBlock toolUse)
Alias for calling contentBlock with
ContentBlock.ofToolUse(toolUse).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaServerToolUseBlock serverToolUse)
Alias for calling contentBlock with
ContentBlock.ofServerToolUse(serverToolUse).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaWebSearchToolResultBlock webSearchToolResult)
Alias for calling contentBlock with
ContentBlock.ofWebSearchToolResult(webSearchToolResult).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaCodeExecutionToolResultBlock codeExecutionToolResult)
Alias for calling contentBlock with
ContentBlock.ofCodeExecutionToolResult(codeExecutionToolResult).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaMcpToolUseBlock mcpToolUse)
Alias for calling contentBlock with
ContentBlock.ofMcpToolUse(mcpToolUse).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaMcpToolResultBlock mcpToolResult)
Alias for calling contentBlock with
ContentBlock.ofMcpToolResult(mcpToolResult).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaContainerUploadBlock containerUpload)
Alias for calling contentBlock with
ContentBlock.ofContainerUpload(containerUpload).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaThinkingBlock thinking)
Alias for calling contentBlock with
ContentBlock.ofThinking(thinking).
-
contentBlock
final BetaRawContentBlockStartEvent.Builder contentBlock(BetaRedactedThinkingBlock redactedThinking)
Alias for calling contentBlock with
ContentBlock.ofRedactedThinking(redactedThinking).
-
containerUploadContentBlock
final BetaRawContentBlockStartEvent.Builder containerUploadContentBlock(String fileId)
Alias for calling contentBlock with the following:
BetaContainerUploadBlock.builder() .fileId(fileId) .build()
-
redactedThinkingContentBlock
final BetaRawContentBlockStartEvent.Builder redactedThinkingContentBlock(String data)
Alias for calling contentBlock with the following:
BetaRedactedThinkingBlock.builder() .data(data) .build()
-
index
final BetaRawContentBlockStartEvent.Builder index(Long index)
-
index
final BetaRawContentBlockStartEvent.Builder index(JsonField<Long> index)
Sets Builder.index to an arbitrary JSON value.
You should usually call Builder.index with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaRawContentBlockStartEvent.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("content_block_start")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaRawContentBlockStartEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaRawContentBlockStartEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRawContentBlockStartEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRawContentBlockStartEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRawContentBlockStartEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRawContentBlockStartEvent build()
Returns an immutable instance of BetaRawContentBlockStartEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentBlock() .index()
-
-
-
-