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

Function _display_kb_dir

openkb/agent/chat.py:121–128  ·  view source on GitHub ↗
(kb_dir: Path)

Source from the content-addressed store, hash-verified

119
120
121def _display_kb_dir(kb_dir: Path) -> str:
122 home = str(Path.home())
123 s = str(kb_dir)
124 if s == home:
125 return "~"
126 if s.startswith(home + "/"):
127 return "~" + s[len(home) :]
128 return s
129
130
131def _print_header(session: ChatSession, kb_dir: Path, style: Style) -> None:

Callers 1

_print_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected