Class RawContentBlockStartEvent.Builder
-
- All Implemented Interfaces:
public final class RawContentBlockStartEvent.BuilderA builder for RawContentBlockStartEvent.
-
-
Method Summary
-
-
Method Detail
-
contentBlock
final RawContentBlockStartEvent.Builder contentBlock(RawContentBlockStartEvent.ContentBlock contentBlock)
-
contentBlock
final RawContentBlockStartEvent.Builder contentBlock(JsonField<RawContentBlockStartEvent.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 RawContentBlockStartEvent.Builder contentBlock(TextBlock text)
Alias for calling contentBlock with
ContentBlock.ofText(text).
-
contentBlock
final RawContentBlockStartEvent.Builder contentBlock(ToolUseBlock toolUse)
Alias for calling contentBlock with
ContentBlock.ofToolUse(toolUse).
-
contentBlock
final RawContentBlockStartEvent.Builder contentBlock(ServerToolUseBlock serverToolUse)
Alias for calling contentBlock with
ContentBlock.ofServerToolUse(serverToolUse).
-
contentBlock
final RawContentBlockStartEvent.Builder contentBlock(WebSearchToolResultBlock webSearchToolResult)
Alias for calling contentBlock with
ContentBlock.ofWebSearchToolResult(webSearchToolResult).
-
contentBlock
final RawContentBlockStartEvent.Builder contentBlock(ThinkingBlock thinking)
Alias for calling contentBlock with
ContentBlock.ofThinking(thinking).
-
contentBlock
final RawContentBlockStartEvent.Builder contentBlock(RedactedThinkingBlock redactedThinking)
Alias for calling contentBlock with
ContentBlock.ofRedactedThinking(redactedThinking).
-
redactedThinkingContentBlock
final RawContentBlockStartEvent.Builder redactedThinkingContentBlock(String data)
Alias for calling contentBlock with the following:
RedactedThinkingBlock.builder() .data(data) .build()
-
index
final RawContentBlockStartEvent.Builder index(Long index)
-
index
final RawContentBlockStartEvent.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 RawContentBlockStartEvent.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 RawContentBlockStartEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RawContentBlockStartEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RawContentBlockStartEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RawContentBlockStartEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RawContentBlockStartEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RawContentBlockStartEvent build()
Returns an immutable instance of RawContentBlockStartEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentBlock() .index()
-
-
-
-