MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / to_dict

Method to_dict

core/error_database.py:40–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self.times_fixed = 1 if success else 0
39
40 def to_dict(self) -> Dict:
41 return {
42 "error_type": self.error_type,
43 "error_message": self.error_message,
44 "fix": self.fix,
45 "success": self.success,
46 "context": self.context,
47 "created_at": self.created_at,
48 "times_seen": self.times_seen,
49 "times_fixed": self.times_fixed,
50 }
51
52 @classmethod
53 def from_dict(cls, data: Dict) -> "ErrorPattern":

Callers 1

_save_databaseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected