Class AnthropicDiagnostics
java.lang.Object
dev.langchain4j.model.anthropic.internal.api.AnthropicDiagnostics
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 Summary
FieldsModifier and TypeFieldDescriptionnullwhen eitherprevious_message_idwasnull(first turn) or the comparison found no divergence, and alsonull(with this object itself present) while the comparison was still running when the response was serialized. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidsetCacheMissReason(AnthropicCacheMissReason cacheMissReason) toString()
-
Field Details
-
cacheMissReason
nullwhen eitherprevious_message_idwasnull(first turn) or the comparison found no divergence, and alsonull(with this object itself present) while the comparison was still running when the response was serialized.
-
-
Constructor Details
-
AnthropicDiagnostics
public AnthropicDiagnostics()
-
-
Method Details
-
getCacheMissReason
-
setCacheMissReason
-
equals
-
hashCode
-
toString
-