MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / _has_tool_call

Function _has_tool_call

core/recursive.py:232–234  ·  view source on GitHub ↗

Return True if the text contains a call block.

(text: str)

Source from the content-addressed store, hash-verified

230
231
232def _has_tool_call(text: str) -> bool:
233 """Return True if the text contains a <tool> call block."""
234 return bool(re.search(r'<tool>', text))
235
236
237def _log_phase(label: str, pass_num: int, max_depth: int) -> None:

Callers 1

recursive_inferFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected