MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / is_boundary

Method is_boundary

examples/server/server.py:3971–3974  ·  view source on GitHub ↗
(self, pos: int)

Source from the content-addressed store, hash-verified

3969 return increments
3970
3971 def is_boundary(self, pos: int) -> bool:
3972 if pos <= 0 or pos >= self.length:
3973 return True
3974 return any(segment.start_pos == pos or segment.end_pos == pos for segment in self.segments)
3975
3976 def is_reusable_boundary(self, pos: int) -> bool:
3977 if pos <= 0 or pos >= self.length:

Callers 1

is_reusable_boundaryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected