MCPcopy
hub / github.com/stitionai/devika / __init__

Method __init__

src/memory/knowledge_base.py:16–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14
15class KnowledgeBase:
16 def __init__(self):
17 config = Config()
18 sqlite_path = config.get_sqlite_db()
19 self.engine = create_engine(f"sqlite:///{sqlite_path}")
20 SQLModel.metadata.create_all(self.engine)
21
22 def add_knowledge(self, tag: str, contents: str):
23 knowledge = Knowledge(tag=tag, contents=contents)

Callers

nothing calls this directly

Calls 2

get_sqlite_dbMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected