Class ThinkingBlock.Builder
-
- All Implemented Interfaces:
public final class ThinkingBlock.BuilderA builder for ThinkingBlock.
-
-
Method Summary
Modifier and Type Method Description final ThinkingBlock.Buildersignature(String signature)A value used to verify that this thinking block was generated by Claude when it is passed back to the API. final ThinkingBlock.Buildersignature(JsonField<String> signature)Sets Builder.signature to an arbitrary JSON value. final ThinkingBlock.Builderthinking(String thinking)The text of Claude's thinking process for this block. final ThinkingBlock.Builderthinking(JsonField<String> thinking)Sets Builder.thinking to an arbitrary JSON value. final ThinkingBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ThinkingBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ThinkingBlock.BuilderputAdditionalProperty(String key, JsonValue value)final ThinkingBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ThinkingBlock.BuilderremoveAdditionalProperty(String key)final ThinkingBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final ThinkingBlockbuild()Returns an immutable instance of ThinkingBlock. -
-
Method Detail
-
signature
final ThinkingBlock.Builder signature(String signature)
A value used to verify that this thinking block was generated by Claude when it is passed back to the API.
This is an opaque field and should not be interpreted or parsed. When passing thinking blocks back to the API (required when using tools with extended thinking), pass them back exactly as received, with this field intact.
See extended thinking for details.
-
signature
final ThinkingBlock.Builder signature(JsonField<String> signature)
Sets Builder.signature to an arbitrary JSON value.
You should usually call Builder.signature with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thinking
final ThinkingBlock.Builder thinking(String thinking)
The text of Claude's thinking process for this block.
-
thinking
final ThinkingBlock.Builder thinking(JsonField<String> thinking)
Sets Builder.thinking to an arbitrary JSON value.
You should usually call Builder.thinking 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 ThinkingBlock.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("thinking")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ThinkingBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThinkingBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThinkingBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThinkingBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThinkingBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThinkingBlock build()
Returns an immutable instance of ThinkingBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.signature() .thinking()
-
-
-
-