Chiusura fase di ristrutturazione e modularizzazione del workflow per favorire sviluppo modulare

This commit is contained in:
2026-08-24 13:32:20 +02:00
parent fa2298653b
commit 6062cb010e
96 changed files with 304 additions and 259 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ def _extract_name(question: str) -> str:
try:
extractor = yake.KeywordExtractor(lan="it", n=1, top=8, dedupLim=0.9)
ranked = [k for k, _ in extractor.extract_keywords(q)]
except Exception:
except Exception: # noqa: BLE001 - keyword extraction has a deterministic fallback
return _summarize(question)
seen: set[str] = set()
picked: list[str] = []
@@ -117,7 +117,7 @@ def create_session(
from tht.workflow import load_workflow
schema_version = load_workflow().schema_version
except Exception:
except Exception: # noqa: BLE001 - legacy sessions may predate workflow metadata
schema_version = None
manifest = SessionManifest(
id=session_id, created_at=now, question=question,