Class ThinkingBlock

    • Constructor Detail

    • 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.

      • thinking

         final String thinking()

        The text of Claude's thinking process for this block.

      • _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.

      • 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.