(row)
| 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 { |
nothing calls this directly
no test coverage detected