MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / format_output

Method format_output

trinity/manager/log_manager.py:160–167  ·  view source on GitHub ↗

Format output

(self, line: str)

Source from the content-addressed store, hash-verified

158 return False
159
160 def format_output(self, line: str) -> str:
161 """Format output"""
162 filename = Path(self.filepath).name
163
164 if self.color_output:
165 return f"{Colors.BLUE}[{filename}]{Colors.RESET} {line}"
166 else:
167 return f"[{filename}] {line}"
168
169 def close(self):
170 """Close file"""

Callers 2

open_fileMethod · 0.95
monitorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected