| 271 | return brain_path |
| 272 | |
| 273 | def info(self) -> BrainInfo: |
| 274 | # TODO: dim of embedding |
| 275 | # "embedder": {}, |
| 276 | chats_info = ChatHistoryInfo( |
| 277 | nb_chats=len(self._chats), |
| 278 | current_default_chat=self.default_chat.id, |
| 279 | current_chat_history_length=len(self.default_chat), |
| 280 | ) |
| 281 | |
| 282 | return BrainInfo( |
| 283 | brain_id=self.id, |
| 284 | brain_name=self.name, |
| 285 | files_info=self.storage.info() if self.storage else None, |
| 286 | chats_info=chats_info, |
| 287 | llm_info=self.llm.info(), |
| 288 | ) |
| 289 | |
| 290 | @property |
| 291 | def chat_history(self) -> ChatHistory: |