MCPcopy
hub / github.com/TaskingAI/TaskingAI / to_response_dict

Method to_response_dict

backend/tkhelper/models/entity.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 return self.model_dump()
22
23 def to_response_dict(self) -> Dict:
24 response_dict = self.model_dump()
25 for field in self.fields_exclude_in_response():
26 response_dict.pop(field, None)
27 return response_dict
28
29 # --- static attributes ---
30

Callers

nothing calls this directly

Calls 3

model_dumpMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected