MCPcopy Create free account
hub / github.com/HKUDS/AutoAgent / __init__

Method __init__

autoagent/core.py:97–108  ·  view source on GitHub ↗

log_path: path of log file, None

(self, log_path: Union[str, None, MetaChainLogger] = None)

Source from the content-addressed store, hash-verified

95
96class MetaChain:
97 def __init__(self, log_path: Union[str, None, MetaChainLogger] = None):
98 """
99 log_path: path of log file, None
100 """
101 if logger:
102 self.logger = logger
103 elif isinstance(log_path, MetaChainLogger):
104 self.logger = log_path
105 else:
106 self.logger = MetaChainLogger(log_path=log_path)
107 # if self.logger.log_path is None: self.logger.info("[Warning] Not specific log path, so log will not be saved", "...", title="Log Path", color="light_cyan3")
108 # else: self.logger.info("Log file is saved to", self.logger.log_path, "...", title="Log Path", color="light_cyan3")
109 # @retry(
110 # stop=stop_after_attempt(4),
111 # wait=wait_exponential(multiplier=1, min=4, max=60),

Callers

nothing calls this directly

Calls 1

MetaChainLoggerClass · 0.85

Tested by

no test coverage detected