MCPcopy
hub / github.com/QuivrHQ/quivr / info

Method info

core/quivr_core/brain/brain.py:273–288  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 7

__repr__Method · 0.95
print_infoMethod · 0.95
test_brain_info_emptyFunction · 0.95
register_processorFunction · 0.45
process_file_innerMethod · 0.45
dynamic_retrieveMethod · 0.45

Calls 2

ChatHistoryInfoClass · 0.90
BrainInfoClass · 0.90

Tested by 1

test_brain_info_emptyFunction · 0.76