Package com.anthropic.models.messages
Class ThinkingBlock
-
- All Implemented Interfaces:
public final class ThinkingBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classThinkingBlock.BuilderA builder for ThinkingBlock.
-
Method Summary
Modifier and Type Method Description final ThinkingBlockParamtoParam()final Stringsignature()final Stringthinking()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 ThinkingBlock.BuildertoBuilder()final ThinkingBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ThinkingBlock.Builderbuilder()Returns a mutable builder for constructing an instance of ThinkingBlock. -
-
Method Detail
-
toParam
final ThinkingBlockParam 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 ThinkingBlock.Builder toBuilder()
-
validate
final ThinkingBlock 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 ThinkingBlock.Builder builder()
Returns a mutable builder for constructing an instance of ThinkingBlock.
The following fields are required:
.signature() .thinking()
-
-
-
-