MCPcopy
hub / github.com/llmware-ai/llmware / write

Method write

llmware/util.py:1611–1622  ·  view source on GitHub ↗

Writes output to selected output stream.

(self, text_message)

Source from the content-addressed store, hash-verified

1609 self.file = None
1610
1611 def write(self, text_message):
1612
1613 """ Writes output to selected output stream. """
1614
1615 if self.writer:
1616 if self.mode == "file":
1617 try:
1618 escape_ansi_color_codes = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')
1619 text_message = escape_ansi_color_codes.sub('', text_message)
1620 except:
1621 pass
1622 self.writer.write(text_message+"\n")
1623
1624 def close(self):
1625

Callers 15

tool_test_runMethod · 0.95
biz_bot_ui_appFunction · 0.80
Home.pyFile · 0.80
5_Transcripts.pyFile · 0.80
4_Summarizer.pyFile · 0.80
3_Prompts.pyFile · 0.80
2_Manage_files.pyFile · 0.80
model_test_run_generalFunction · 0.80
hello_world_testFunction · 0.80
text_gen_botFunction · 0.80

Calls

no outgoing calls

Tested by 1

model_test_run_generalFunction · 0.64