Class BetaThinkingDroppedInputTransformation

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class BetaThinkingDroppedInputTransformation.Builder

      A builder for BetaThinkingDroppedInputTransformation.

      public final class BetaThinkingDroppedInputTransformation.Reason

      Which binding check removed the block: model_binding_mismatch — it was created by a model whose reasoning the requested model may not read; prefix_binding_mismatch — the conversation before it differs from the conversation it was created in (the rest of that turn's consecutive thinking blocks are removed with it, each with this reason); organization_binding_mismatch — it was created under a different organization (an Anthropic organization, AWS account or Google Cloud project) and this organization is not one of its additional organizations; end_user_binding_mismatch — it was created for a different end user, or was removed by the consumer-organization binding. A block that would fail several checks reports one reason, in this order of precedence: organization_binding_mismatch, end_user_binding_mismatch, model_binding_mismatch, prefix_binding_mismatch.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • path

         final String path()

        Where the removed block was in your request, as messages.{i}.content.{j}: i indexes the messages array you sent and j that message's content array — the same form error messages use.

      • reason

         final BetaThinkingDroppedInputTransformation.Reason reason()

        Which binding check removed the block: model_binding_mismatch — it was created by a model whose reasoning the requested model may not read; prefix_binding_mismatch — the conversation before it differs from the conversation it was created in (the rest of that turn's consecutive thinking blocks are removed with it, each with this reason); organization_binding_mismatch — it was created under a different organization (an Anthropic organization, AWS account or Google Cloud project) and this organization is not one of its additional organizations; end_user_binding_mismatch — it was created for a different end user, or was removed by the consumer-organization binding. A block that would fail several checks reports one reason, in this order of precedence: organization_binding_mismatch, end_user_binding_mismatch, model_binding_mismatch, prefix_binding_mismatch.

      • _type

         final JsonValue _type()

        Always thinking_dropped for this entry type.

        Expected to always return the following:

        JsonValue.from("thinking_dropped")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _path

         final JsonField<String> _path()

        Returns the raw JSON value of path.

        Unlike path, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BetaThinkingDroppedInputTransformation 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.