MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _has_cache_breakpoint

Method _has_cache_breakpoint

tests/test_compiler.py:1463–1470  ·  view source on GitHub ↗
(message: dict)

Source from the content-addressed store, hash-verified

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):

Calls 1

getMethod · 0.45

Tested by

no test coverage detected