GuglielmoTor commited on
Commit
b5aab25
·
verified ·
1 Parent(s): e24f98c

Update features/insight_and_tasks/orchestrators/linkedin_analytics_orchestrator.py

Browse files
features/insight_and_tasks/orchestrators/linkedin_analytics_orchestrator.py CHANGED
@@ -16,6 +16,7 @@ from features.insight_and_tasks.coordinators.employer_branding_coordinator impor
16
  from features.insight_and_tasks.agents.task_extraction_agent import TaskExtractionAgent
17
  from features.insight_and_tasks.data_models.metrics import AgentMetrics # For type hinting
18
  from features.insight_and_tasks.data_models.tasks import TaskExtractionOutput # For type hinting
 
19
 
20
  # Configure logger for this module
21
  logger = logging.getLogger(__name__)
@@ -107,7 +108,8 @@ class EnhancedLinkedInAnalyticsOrchestrator:
107
 
108
  # Step 3: TaskExtractionAgent extracts actionable tasks (OKRs) from the comprehensive text.
109
  logger.info("Running task extraction...")
110
- actionable_tasks_okrs: TaskExtractionOutput = await self.task_extractor.extract_tasks(comprehensive_analysis_text)
 
111
  logger.info(f"Task extraction complete. Number of OKRs: {len(actionable_tasks_okrs.okrs) if actionable_tasks_okrs else 'Error'}.")
112
 
113
  # Step 4: Compile and return all results.
 
16
  from features.insight_and_tasks.agents.task_extraction_agent import TaskExtractionAgent
17
  from features.insight_and_tasks.data_models.metrics import AgentMetrics # For type hinting
18
  from features.insight_and_tasks.data_models.tasks import TaskExtractionOutput # For type hinting
19
+ from features.insight_and_tasks.agents.task_extraction_model import extract_tasks_from_text
20
 
21
  # Configure logger for this module
22
  logger = logging.getLogger(__name__)
 
108
 
109
  # Step 3: TaskExtractionAgent extracts actionable tasks (OKRs) from the comprehensive text.
110
  logger.info("Running task extraction...")
111
+ #actionable_tasks_okrs: TaskExtractionOutput = await self.task_extractor.extract_tasks(comprehensive_analysis_text)
112
+ actionable_tasks_okrs: TaskExtractionOutput = extract_tasks_from_text(comprehensive_analysis_text, GOOGLE_API_KEY)
113
  logger.info(f"Task extraction complete. Number of OKRs: {len(actionable_tasks_okrs.okrs) if actionable_tasks_okrs else 'Error'}.")
114
 
115
  # Step 4: Compile and return all results.