Class BetaDiagnostics
-
- All Implemented Interfaces:
public final class BetaDiagnosticsRequest-level diagnostics: why the prompt cache could not fully reuse the prefix of the request named by
diagnostics.previous_message_id.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaDiagnostics.BuilderA builder for BetaDiagnostics.
-
Method Summary
Modifier and Type Method Description final Optional<BetaCacheMissReason>cacheMissReason()Explains why the prompt cache could not fully reuse the prefix from the request identified by diagnostics.previous_message_id.final JsonField<BetaCacheMissReason>_cacheMissReason()Returns the raw JSON value of cacheMissReason. final Map<String, JsonValue>_additionalProperties()final BetaDiagnostics.BuildertoBuilder()final BetaDiagnosticsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaDiagnostics.Builderbuilder()Returns a mutable builder for constructing an instance of BetaDiagnostics. final static BetaDiagnosticsof(BetaCacheMissReason cacheMissReason)Returns an immutable instance of BetaDiagnostics with the required cacheMissReason set to the given value. final static BetaDiagnosticsof(Optional<BetaCacheMissReason> cacheMissReason)Alias for calling of with cacheMissReason.orElse(null).final static BetaDiagnosticsof(BetaCacheMissModelChanged modelChanged)Alias for calling of with BetaCacheMissReason.ofModelChanged(modelChanged).final static BetaDiagnosticsof(BetaCacheMissSystemChanged systemChanged)Alias for calling of with BetaCacheMissReason.ofSystemChanged(systemChanged).final static BetaDiagnosticsof(BetaCacheMissToolsChanged toolsChanged)Alias for calling of with BetaCacheMissReason.ofToolsChanged(toolsChanged).final static BetaDiagnosticsof(BetaCacheMissMessagesChanged messagesChanged)Alias for calling of with BetaCacheMissReason.ofMessagesChanged(messagesChanged).final static BetaDiagnosticsof(BetaCacheMissPreviousMessageNotFound previousMessageNotFound)Alias for calling of with BetaCacheMissReason.ofPreviousMessageNotFound(previousMessageNotFound).final static BetaDiagnosticsof(BetaCacheMissUnavailable unavailable)Alias for calling of with BetaCacheMissReason.ofUnavailable(unavailable).-
-
Method Detail
-
cacheMissReason
final Optional<BetaCacheMissReason> cacheMissReason()
Explains why the prompt cache could not fully reuse the prefix from the request identified by
diagnostics.previous_message_id.nullmeans diagnosis is still pending — the response was serialized before the background comparison completed.
-
_cacheMissReason
final JsonField<BetaCacheMissReason> _cacheMissReason()
Returns the raw JSON value of cacheMissReason.
Unlike cacheMissReason, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaDiagnostics.Builder toBuilder()
-
validate
final BetaDiagnostics 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 BetaDiagnostics.Builder builder()
Returns a mutable builder for constructing an instance of BetaDiagnostics.
The following fields are required:
.cacheMissReason()
-
of
final static BetaDiagnostics of(BetaCacheMissReason cacheMissReason)
Returns an immutable instance of BetaDiagnostics with the required cacheMissReason set to the given value.
-
of
final static BetaDiagnostics of(Optional<BetaCacheMissReason> cacheMissReason)
Alias for calling of with
cacheMissReason.orElse(null).
-
of
final static BetaDiagnostics of(BetaCacheMissModelChanged modelChanged)
Alias for calling of with
BetaCacheMissReason.ofModelChanged(modelChanged).
-
of
final static BetaDiagnostics of(BetaCacheMissSystemChanged systemChanged)
Alias for calling of with
BetaCacheMissReason.ofSystemChanged(systemChanged).
-
of
final static BetaDiagnostics of(BetaCacheMissToolsChanged toolsChanged)
Alias for calling of with
BetaCacheMissReason.ofToolsChanged(toolsChanged).
-
of
final static BetaDiagnostics of(BetaCacheMissMessagesChanged messagesChanged)
Alias for calling of with
BetaCacheMissReason.ofMessagesChanged(messagesChanged).
-
of
final static BetaDiagnostics of(BetaCacheMissPreviousMessageNotFound previousMessageNotFound)
Alias for calling of with
BetaCacheMissReason.ofPreviousMessageNotFound(previousMessageNotFound).
-
of
final static BetaDiagnostics of(BetaCacheMissUnavailable unavailable)
Alias for calling of with
BetaCacheMissReason.ofUnavailable(unavailable).
-
-
-
-