MCPcopy Create free account
hub / github.com/Louisym/MiniCC / __post_init__

Method __post_init__

tutorials/12_session_persistence.py:156–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 timestamp: float = 0.0
155
156 def __post_init__(self):
157 if not self.uuid:
158 self.uuid = str(uuid.uuid4())[:8]
159 if self.timestamp == 0.0:
160 self.timestamp = time.time()
161
162 def to_dict(self) -> dict:
163 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected