MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / internal_monologue

Method internal_monologue

methods/letta/interface.py:82–87  ·  view source on GitHub ↗
(msg: str, msg_obj: Optional[Message] = None, chunk_index: Optional[int] = None)

Source from the content-addressed store, hash-verified

80
81 @staticmethod
82 def internal_monologue(msg: str, msg_obj: Optional[Message] = None, chunk_index: Optional[int] = None):
83 # ANSI escape code for italic is '\x1B[3m'
84 fstr = f"\x1B[3m{Fore.LIGHTBLACK_EX}{INNER_THOUGHTS_CLI_SYMBOL} {{msg}}{Style.RESET_ALL}"
85 if STRIP_UI:
86 fstr = "{msg}"
87 print(fstr.format(msg=msg))
88
89 @staticmethod
90 def assistant_message(msg: str, msg_obj: Optional[Message] = None):

Callers 2

_handle_ai_responseMethod · 0.45
print_messagesMethod · 0.45

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected