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

Function _use_color

openkb/agent/chat.py:71–78  ·  view source on GitHub ↗
(force_off: bool)

Source from the content-addressed store, hash-verified

69
70
71def _use_color(force_off: bool) -> bool:
72 if force_off:
73 return False
74 if os.environ.get("NO_COLOR", ""):
75 return False
76 if not sys.stdout.isatty():
77 return False
78 return True
79
80
81def _build_style(use_color: bool) -> Style:

Callers 2

_fmtFunction · 0.85
run_chatFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected