MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / build

Method build

backend/app/models/assistant/chat.py:29–41  ·  view source on GitHub ↗
(row)

Source from the content-addressed store, hash-verified

27
28 @staticmethod
29 def build(row):
30 return Chat(
31 # ids
32 chat_id=row["chat_id"],
33 assistant_id=row["assistant_id"],
34 # data
35 memory=load_json_attr(row, "memory", {}),
36 metadata=load_json_attr(row, "metadata", {}),
37 name=row.get("name") or "",
38 # timestamps
39 created_timestamp=row["created_timestamp"],
40 updated_timestamp=row["updated_timestamp"],
41 )
42
43 def to_response_dict(self) -> Dict:
44 return {

Callers

nothing calls this directly

Calls 3

load_json_attrFunction · 0.90
ChatClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected