knowledge_base_service and analysis_service were local variables inside the lifespan() function — not module-level exports. Importing them via 'from app.main import ...' always failed with ImportError → 500. Use request.app.state (same pattern as analysis_routes.py) instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| analysis_routes.py | ||
| knowledge_base_routes.py | ||
| knowledge_base_schemas.py | ||
| routes.py | ||
| schemas.py | ||