Class ThinkingBlockParam

    • Constructor Detail

    • Method Detail

      • signature

         final String signature()

        The signature value of this thinking block, exactly as returned by the API in a previous response. Used to verify that the block was generated by Claude.

        Thinking blocks must be passed back unmodified and in their original order; a modified block results in a 400 invalid_request_error.

      • thinking

         final String thinking()

        The thinking text of this block as returned by the API.

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