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

Function _list_number

openkb/agent/_markdown.py:218–225  ·  view source on GitHub ↗
(depth: int, n: int)

Source from the content-addressed store, hash-verified

216
217
218def _list_number(depth: int, n: int) -> str:
219 if depth == 0:
220 return str(n)
221 if depth == 1:
222 return _to_letters(n)
223 if depth == 2:
224 return _to_roman(n)
225 return str(n)
226
227
228def _to_letters(n: int) -> str:

Callers 1

_render_listFunction · 0.85

Calls 2

_to_lettersFunction · 0.85
_to_romanFunction · 0.85

Tested by

no test coverage detected