Class BetaThinkingDroppedInputTransformation.Reason
-
- All Implemented Interfaces:
-
com.anthropic.core.Enum
public final class BetaThinkingDroppedInputTransformation.Reason implements EnumWhich 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBetaThinkingDroppedInputTransformation.Reason.KnownAn enum containing Reason's known values.
public enumBetaThinkingDroppedInputTransformation.Reason.ValueAn enum containing Reason's known values, as well as an _UNKNOWN member.
An instance of Reason can contain an unknown value in a couple of cases:
It was deserialized from data that doesn't match any known member. For example, if the SDK is on an older version than the API, then the API may respond with new members that the SDK is unaware of.
It was constructed with an arbitrary value using the of method.
-
Field Summary
Fields Modifier and Type Field Description public final static BetaThinkingDroppedInputTransformation.ReasonMODEL_BINDING_MISMATCHpublic final static BetaThinkingDroppedInputTransformation.ReasonPREFIX_BINDING_MISMATCHpublic final static BetaThinkingDroppedInputTransformation.ReasonORGANIZATION_BINDING_MISMATCHpublic final static BetaThinkingDroppedInputTransformation.ReasonEND_USER_BINDING_MISMATCH
-
Method Summary
Modifier and Type Method Description final BetaThinkingDroppedInputTransformation.Reason.Valuevalue()Returns an enum member corresponding to this class instance's value, or Value._UNKNOWN if the class was instantiated with an unknown value. final JsonField<String>_value()Returns this class instance's raw value. final BetaThinkingDroppedInputTransformation.Reason.Knownknown()Returns an enum member corresponding to this class instance's value. final StringasString()Returns this class instance's primitive wire representation. final BetaThinkingDroppedInputTransformation.Reasonvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaThinkingDroppedInputTransformation.Reasonof(String value)final static BetaThinkingDroppedInputTransformation.Reasonof(JsonField<String> value)-
-
Method Detail
-
value
final BetaThinkingDroppedInputTransformation.Reason.Value value()
Returns an enum member corresponding to this class instance's value, or Value._UNKNOWN if the class was instantiated with an unknown value.
Use the known method instead if you're certain the value is always known or if you want to throw for the unknown case.
-
_value
final JsonField<String> _value()
Returns this class instance's raw value.
This is usually only useful if this instance was deserialized from data that doesn't match any known member, and you want to know that value. For example, if the SDK is on an older version than the API, then the API may respond with new members that the SDK is unaware of.
-
known
final BetaThinkingDroppedInputTransformation.Reason.Known known()
Returns an enum member corresponding to this class instance's value.
Use the value method instead if you're uncertain the value is always known and don't want to throw for the unknown case.
-
asString
final String asString()
Returns this class instance's primitive wire representation.
This differs from the toString method because that method is primarily for debugging and generally doesn't throw.
-
validate
final BetaThinkingDroppedInputTransformation.Reason 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.
-
of
final static BetaThinkingDroppedInputTransformation.Reason of(String value)
-
of
final static BetaThinkingDroppedInputTransformation.Reason of(JsonField<String> value)
-
-
-
-