Implement enhanced UI with proper response display and feedback
Browse files
src/services/context_enrichment.py
CHANGED
|
@@ -7,8 +7,9 @@ class ContextEnrichmentService:
|
|
| 7 |
"""Service for enriching AI context with current data"""
|
| 8 |
|
| 9 |
def __init__(self):
|
| 10 |
-
|
| 11 |
-
self.
|
|
|
|
| 12 |
|
| 13 |
def get_current_context(self, user_query: str = "") -> Dict[str, Any]:
|
| 14 |
"""Get current context including time, weather, and recent news"""
|
|
|
|
| 7 |
"""Service for enriching AI context with current data"""
|
| 8 |
|
| 9 |
def __init__(self):
|
| 10 |
+
# Access config attributes properly
|
| 11 |
+
self.openweather_api_key = getattr(config, 'openweather_api_key', None)
|
| 12 |
+
self.tavily_api_key = getattr(config, 'tavily_api_key', None)
|
| 13 |
|
| 14 |
def get_current_context(self, user_query: str = "") -> Dict[str, Any]:
|
| 15 |
"""Get current context including time, weather, and recent news"""
|