| 1 |
from typing import Optional |
| 2 |
|
| 3 |
from .._models import BaseModel |
| 4 |
from .cache_miss_reason import CacheMissReason |
| 5 |
|
| 6 |
__all__ = ["Diagnostics"] |
| 7 |
|
| 8 |
|
| 9 |
class Diagnostics(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[CacheMissReason] = 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 |
""" |