MCPcopy Create free account
hub / github.com/InternScience/InternAgent / write

Method write

internagent/stage.py:40–47  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

38 self.streams = streams
39
40 def write(self, data):
41 for stream in self.streams:
42 try:
43 stream.write(data)
44 stream.flush() # Ensure immediate output
45 except (ValueError, OSError):
46 # Skip closed or invalid streams
47 pass
48
49 def flush(self):
50 for stream in self.streams:

Callers 15

mainFunction · 0.80
print_tree_htmlFunction · 0.80
print_tree_htmlFunction · 0.80
log_messageFunction · 0.80
perform_experimentsFunction · 0.80
log_messageFunction · 0.80
vis_treeFunction · 0.80
get_related_toolsFunction · 0.80

Calls 1

flushMethod · 0.45

Tested by 4

code_executionMethod · 0.64
code_executionMethod · 0.64