Class AnthropicCacheMissReason

java.lang.Object
dev.langchain4j.model.anthropic.internal.api.AnthropicCacheMissReason

public class AnthropicCacheMissReason extends Object
The reason a cache-diagnostics comparison found a divergence, or why no comparison was produced.

type is a discriminator (e.g. "model_changed", "system_changed", "tools_changed", "messages_changed", "previous_message_not_found", "unavailable"). cacheMissedInputTokens is only present for the "*_changed" types.

Kept as a flat, loosely-typed POJO (rather than a discriminated union of subclasses) since this is a beta feature whose field names and semantics may change before general availability.

  • Field Details

    • type

      public String type
    • cacheMissedInputTokens

      public Integer cacheMissedInputTokens
  • Constructor Details

    • AnthropicCacheMissReason

      public AnthropicCacheMissReason()
  • Method Details

    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getCacheMissedInputTokens

      public Integer getCacheMissedInputTokens()
    • setCacheMissedInputTokens

      public void setCacheMissedInputTokens(Integer cacheMissedInputTokens)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object