(message: dict)
| 1461 | |
| 1462 | @staticmethod |
| 1463 | def _has_cache_breakpoint(message: dict) -> bool: |
| 1464 | content = message.get("content") |
| 1465 | if not isinstance(content, list): |
| 1466 | return False |
| 1467 | return any( |
| 1468 | isinstance(b, dict) and b.get("cache_control", {}).get("type") == "ephemeral" |
| 1469 | for b in content |
| 1470 | ) |
| 1471 | |
| 1472 | @pytest.mark.asyncio |
| 1473 | async def test_short_doc_marks_doc_and_summary(self, tmp_path): |
no test coverage detected