MCPcopy
hub / github.com/openai/gpt-oss / is_done

Method is_done

gpt_oss/tools/apply_patch.py:100–109  ·  view source on GitHub ↗
(self, prefixes: Optional[Tuple[str, ...]] = None)

Source from the content-addressed store, hash-verified

98
99 # ------------- scanning convenience ----------------------------------- #
100 def is_done(self, prefixes: Optional[Tuple[str, ...]] = None) -> bool:
101 if self.index >= len(self.lines):
102 return True
103 if (
104 prefixes
105 and len(prefixes) > 0
106 and self._norm(self._cur_line()).startswith(prefixes)
107 ):
108 return True
109 return False
110
111 def startswith(self, prefix: Union[str, Tuple[str, ...]]) -> bool:
112 return self._norm(self._cur_line()).startswith(prefix)

Callers 3

parseMethod · 0.95
_parse_update_fileMethod · 0.95
_parse_add_fileMethod · 0.95

Calls 3

_normMethod · 0.95
_cur_lineMethod · 0.95
startswithMethod · 0.80

Tested by

no test coverage detected