Class AnthropicDiagnostics

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

public class AnthropicDiagnostics extends Object
Result of an Anthropic (beta) cache-diagnostics comparison, returned on AnthropicCreateMessageResponse#diagnostics (and, for streaming, on the message_start event) when the cache-diagnosis-2026-04-07 beta header and diagnostics.previous_message_id request parameter were used.
  • Field Details

    • cacheMissReason

      public AnthropicCacheMissReason cacheMissReason
      null when either previous_message_id was null (first turn) or the comparison found no divergence, and also null (with this object itself present) while the comparison was still running when the response was serialized.
  • Constructor Details

    • AnthropicDiagnostics

      public AnthropicDiagnostics()
  • Method Details