MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / to_dict

Method to_dict

openkb/agent/chat_session.py:139–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 )
138
139 def to_dict(self) -> dict[str, Any]:
140 return {
141 "id": self.id,
142 "created_at": self.created_at,
143 "updated_at": self.updated_at,
144 "model": self.model,
145 "language": self.language,
146 "title": self.title,
147 "turn_count": self.turn_count,
148 "history": self.history,
149 "user_turns": self.user_turns,
150 "assistant_texts": self.assistant_texts,
151 }
152
153 def save(self) -> None:
154 self.path.parent.mkdir(parents=True, exist_ok=True)

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected