GuglielmoTor commited on
Commit
055c98e
·
verified ·
1 Parent(s): 3ff351d

Update run_agentic_pipeline.py

Browse files
Files changed (1) hide show
  1. run_agentic_pipeline.py +17 -1
run_agentic_pipeline.py CHANGED
@@ -28,6 +28,22 @@ from data_processing.analytics_data_processing import prepare_filtered_analytics
28
  # Placeholder for UI generator import - to be created later
29
  # from .insights_ui_generator import format_orchestration_results_for_ui
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  logger = logging.getLogger(__name__)
32
 
33
 
@@ -109,7 +125,7 @@ async def run_full_analytics_orchestration(
109
 
110
 
111
 
112
- async def run_agentic_pipeline_autonomously(current_token_state_val):
113
  logging.info(f"Agentic pipeline check triggered for token_state update. Current token: {'Set' if current_token_state_val.get('token') else 'Not Set'}")
114
  # Initial state before pipeline runs or if skipped
115
  initial_yield = (
 
28
  # Placeholder for UI generator import - to be created later
29
  # from .insights_ui_generator import format_orchestration_results_for_ui
30
 
31
+ try:
32
+ from ui.insights_ui_generator import (
33
+ format_report_to_markdown,
34
+ extract_key_results_for_selection,
35
+ format_single_okr_for_display
36
+ )
37
+ AGENTIC_MODULES_LOADED = True
38
+ except ImportError as e:
39
+ logging.error(f"Could not import agentic pipeline modules: {e}. Tabs 3 and 4 will be disabled.")
40
+ AGENTIC_MODULES_LOADED = False
41
+ async def run_full_analytics_orchestration(*args, **kwargs): return None # Placeholder
42
+ def format_report_to_markdown(report_string): return "Agentic modules not loaded. Report unavailable." # Placeholder
43
+ def extract_key_results_for_selection(okrs_dict): return [] # Placeholder
44
+ def format_single_okr_for_display(okr_data, **kwargs): return "Agentic modules not loaded. OKR display unavailable." # Placeholder
45
+
46
+
47
  logger = logging.getLogger(__name__)
48
 
49
 
 
125
 
126
 
127
 
128
+ async def run_agentic_pipeline_autonomously(current_token_state_val, orchestration_raw_results_st,selected_key_result_ids_st):
129
  logging.info(f"Agentic pipeline check triggered for token_state update. Current token: {'Set' if current_token_state_val.get('token') else 'Not Set'}")
130
  # Initial state before pipeline runs or if skipped
131
  initial_yield = (