Class BetaDiagnosticsParam
-
- All Implemented Interfaces:
public final class BetaDiagnosticsParamRequest-level diagnostics. Currently carries the previous response id for prompt-cache divergence reporting.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaDiagnosticsParam.BuilderA builder for BetaDiagnosticsParam.
-
Method Summary
Modifier and Type Method Description final Optional<String>previousMessageId()The id(msg_...) from this client's previous /v1/messages response.final JsonField<String>_previousMessageId()Returns the raw JSON value of previousMessageId. final Map<String, JsonValue>_additionalProperties()final BetaDiagnosticsParam.BuildertoBuilder()final BetaDiagnosticsParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaDiagnosticsParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaDiagnosticsParam. -
-
Method Detail
-
previousMessageId
final Optional<String> previousMessageId()
The
id(msg_...) from this client's previous /v1/messages response. The server compares that request's prompt fingerprint against this one and returnsdiagnostics.cache_miss_reasonwhen the prompt-cache prefix could not be reused. Passnullon the first turn to opt in without a prior message to compare.
-
_previousMessageId
final JsonField<String> _previousMessageId()
Returns the raw JSON value of previousMessageId.
Unlike previousMessageId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaDiagnosticsParam.Builder toBuilder()
-
validate
final BetaDiagnosticsParam 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 BetaDiagnosticsParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaDiagnosticsParam.
-
-
-
-