MCPcopy
hub / github.com/microsoft/RD-Agent / log

Method log

rdagent/log/base.py:43–64  ·  view source on GitHub ↗

Parameters ---------- obj : object The object for logging. name : str The name of the object. For example "a.b.c" We may log a lot of objects to a same name Returns ------- str | Path The stor

(
        self,
        obj: object,
        tag: str = "",
        timestamp: datetime | None = None,
    )

Source from the content-addressed store, hash-verified

41
42 @abstractmethod
43 def log(
44 self,
45 obj: object,
46 tag: str = "",
47 timestamp: datetime | None = None,
48 ) -> str | Path:
49 """
50
51 Parameters
52 ----------
53 obj : object
54 The object for logging.
55 name : str
56 The name of the object. For example "a.b.c"
57 We may log a lot of objects to a same name
58
59 Returns
60 -------
61 str | Path
62 The storage identifier of the object.
63 """
64 ...
65
66 @abstractmethod
67 def iter_msg(self) -> Generator[Message, None, None]:

Callers 3

_prob_dis_torchMethod · 0.45
execute_next_actionMethod · 0.45
log_objectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected