MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / _is_python_code_block

Method _is_python_code_block

KVCOMM/agents/final_decision.py:52–54  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

50
51 @staticmethod
52 def _is_python_code_block(text: str) -> bool:
53 text = text.strip()
54 return text.startswith("```python") and text.endswith("```")
55
56 @staticmethod
57 def _extract_python_code(text: str) -> str:

Callers 2

_extract_python_codeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected