Class DiagnosticsParam
-
- All Implemented Interfaces:
public final class DiagnosticsParamRequest-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 classDiagnosticsParam.BuilderA builder for DiagnosticsParam.
-
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 DiagnosticsParam.BuildertoBuilder()final DiagnosticsParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static DiagnosticsParam.Builderbuilder()Returns a mutable builder for constructing an instance of DiagnosticsParam. -
-
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 DiagnosticsParam.Builder toBuilder()
-
validate
final DiagnosticsParam 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 DiagnosticsParam.Builder builder()
Returns a mutable builder for constructing an instance of DiagnosticsParam.
-
-
-
-