Interface CacheMissReason.Visitor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • visitMessagesChanged

         abstract T visitMessagesChanged(CacheMissMessagesChanged messagesChanged)

        A cache_miss_reason for a request whose messages differ from the previous request's in an earlier entry, instead of only having entries appended. The model, system, and tools match.

        See the cache diagnostics guide to learn what to change for each reason.

      • visitUnavailable

         abstract T visitUnavailable(CacheMissUnavailable unavailable)

        A cache_miss_reason for when the API can't give a diagnosis. The request itself was processed normally.

        This includes a request whose model, system, and tools match the previous request's but whose other prompt-affecting parameters, such as thinking or tool_choice, differ.

        See the cache diagnostics guide to learn what to change for each reason.

      • unknown

         T unknown(JsonValue json)

        Maps an unknown variant of CacheMissReason to a value of type T.

        An instance of CacheMissReason can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.