Class BetaThinkingBlock
-
- All Implemented Interfaces:
public final class BetaThinkingBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaThinkingBlock.BuilderA builder for BetaThinkingBlock.
-
Method Summary
Modifier and Type Method Description final Stringsignature()A value used to verify that this thinking block was generated by Claude when it is passed back to the API. final Stringthinking()The text of Claude's thinking process for this block. final BetaThinkingBlockParamtoParam()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thinking")final JsonField<String>_signature()Returns the raw JSON value of signature. final JsonField<String>_thinking()Returns the raw JSON value of thinking. final Map<String, JsonValue>_additionalProperties()final BetaThinkingBlock.BuildertoBuilder()final BetaThinkingBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaThinkingBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaThinkingBlock. -
-
Method Detail
-
signature
final 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.
-
toParam
final BetaThinkingBlockParam toParam()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("thinking")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_signature
final JsonField<String> _signature()
Returns the raw JSON value of signature.
Unlike signature, this method doesn't throw if the JSON field has an unexpected type.
-
_thinking
final JsonField<String> _thinking()
Returns the raw JSON value of thinking.
Unlike thinking, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaThinkingBlock.Builder toBuilder()
-
validate
final BetaThinkingBlock validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaThinkingBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaThinkingBlock.
The following fields are required:
.signature() .thinking()
-
-
-
-