Class Diagnostics
-
- All Implemented Interfaces:
public final class DiagnosticsRequest-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 classDiagnostics.BuilderA builder for Diagnostics.
-
Method Summary
Modifier and Type Method Description final Optional<CacheMissReason>cacheMissReason()Explains why the prompt cache could not fully reuse the prefix from the request identified by diagnostics.previous_message_id.final JsonField<CacheMissReason>_cacheMissReason()Returns the raw JSON value of cacheMissReason. final Map<String, JsonValue>_additionalProperties()final Diagnostics.BuildertoBuilder()final Diagnosticsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Diagnostics.Builderbuilder()Returns a mutable builder for constructing an instance of Diagnostics. final static Diagnosticsof(CacheMissReason cacheMissReason)Returns an immutable instance of Diagnostics with the required cacheMissReason set to the given value. final static Diagnosticsof(Optional<CacheMissReason> cacheMissReason)Alias for calling of with cacheMissReason.orElse(null).final static Diagnosticsof(CacheMissModelChanged modelChanged)Alias for calling of with CacheMissReason.ofModelChanged(modelChanged).final static Diagnosticsof(CacheMissSystemChanged systemChanged)Alias for calling of with CacheMissReason.ofSystemChanged(systemChanged).final static Diagnosticsof(CacheMissToolsChanged toolsChanged)Alias for calling of with CacheMissReason.ofToolsChanged(toolsChanged).final static Diagnosticsof(CacheMissMessagesChanged messagesChanged)Alias for calling of with CacheMissReason.ofMessagesChanged(messagesChanged).final static Diagnosticsof(CacheMissPreviousMessageNotFound previousMessageNotFound)Alias for calling of with CacheMissReason.ofPreviousMessageNotFound(previousMessageNotFound).final static Diagnosticsof(CacheMissUnavailable unavailable)Alias for calling of with CacheMissReason.ofUnavailable(unavailable).-
-
Method Detail
-
cacheMissReason
final Optional<CacheMissReason> 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<CacheMissReason> _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 Diagnostics.Builder toBuilder()
-
validate
final Diagnostics 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 Diagnostics.Builder builder()
Returns a mutable builder for constructing an instance of Diagnostics.
The following fields are required:
.cacheMissReason()
-
of
final static Diagnostics of(CacheMissReason cacheMissReason)
Returns an immutable instance of Diagnostics with the required cacheMissReason set to the given value.
-
of
final static Diagnostics of(Optional<CacheMissReason> cacheMissReason)
Alias for calling of with
cacheMissReason.orElse(null).
-
of
final static Diagnostics of(CacheMissModelChanged modelChanged)
Alias for calling of with
CacheMissReason.ofModelChanged(modelChanged).
-
of
final static Diagnostics of(CacheMissSystemChanged systemChanged)
Alias for calling of with
CacheMissReason.ofSystemChanged(systemChanged).
-
of
final static Diagnostics of(CacheMissToolsChanged toolsChanged)
Alias for calling of with
CacheMissReason.ofToolsChanged(toolsChanged).
-
of
final static Diagnostics of(CacheMissMessagesChanged messagesChanged)
Alias for calling of with
CacheMissReason.ofMessagesChanged(messagesChanged).
-
of
final static Diagnostics of(CacheMissPreviousMessageNotFound previousMessageNotFound)
Alias for calling of with
CacheMissReason.ofPreviousMessageNotFound(previousMessageNotFound).
-
of
final static Diagnostics of(CacheMissUnavailable unavailable)
Alias for calling of with
CacheMissReason.ofUnavailable(unavailable).
-
-
-
-