первый коммит

This commit is contained in:
2026-02-27 21:28:09 +03:00
parent 43c404f958
commit 1bc57a7c25
171 changed files with 6400 additions and 556 deletions

View File

@@ -3,13 +3,14 @@ import time
from app.modules.shared.checkpointer import get_checkpointer
def bootstrap_database(rag_repository, chat_repository, agent_repository) -> None:
def bootstrap_database(rag_repository, chat_repository, agent_repository, story_context_repository) -> None:
last_error: Exception | None = None
for attempt in range(1, 16):
try:
rag_repository.ensure_tables()
chat_repository.ensure_tables()
agent_repository.ensure_tables()
story_context_repository.ensure_tables()
get_checkpointer()
return
except Exception as exc: # noqa: BLE001