INNER CODE UNIT · Python
_think_start
usepr/eva · eva.py:39
def _think_start():
"""开始think打印(暗色)"""
if HAS_RICH:
RICH_CONSOLE.print("💭 ", style="dim italic", end="")
else:
sys.stdout.write("\033[2m💭 ")
def _think_end():
"""结束think打印,恢复正文"""
if HAS_RICH:
RICH_CONSOLE.print("")
else:
sys.stdout.write("\033[0m\n")
sys.stdout.flush()
if hasattr(sys.stdout, "reconfigure"):
sys.stdout.reconfigure(encoding="utf-8", errors="replace")