Debian Codegraph @

src/anthropic/types/beta/beta_diagnostics.py

raw
1 from typing import Optional
2
3 from ..._models import BaseModel
4 from .beta_cache_miss_reason import BetaCacheMissReason
5
6 __all__ = ["BetaDiagnostics"]
7
8
9 class BetaDiagnostics(BaseModel):
10 """
11 Request-level diagnostics: why the prompt cache could not fully reuse
12 the prefix of the request named by `diagnostics.previous_message_id`.
13 """
14
15 cache_miss_reason: Optional[BetaCacheMissReason] = None
16 """
17 Explains why the prompt cache could not fully reuse the prefix from the request
18 identified by `diagnostics.previous_message_id`. `null` means diagnosis is still
19 pending — the response was serialized before the background comparison
20 completed.
21 """