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

Method __init__

src/state.py:19–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17
18class AgentState:
19 def __init__(self):
20 config = Config()
21 sqlite_path = config.get_sqlite_db()
22 self.engine = create_engine(f"sqlite:///{sqlite_path}")
23 SQLModel.metadata.create_all(self.engine)
24
25 def new_state(self):
26 timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")

Callers

nothing calls this directly

Calls 2

get_sqlite_dbMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected