GuglielmoTor commited on
Commit
f665b4e
·
verified ·
1 Parent(s): 5f9f384

Update features/insight_and_tasks/orchestrators/linkedin_analytics_orchestrator.py

Browse files
features/insight_and_tasks/orchestrators/linkedin_analytics_orchestrator.py CHANGED
@@ -16,7 +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
- 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__)
@@ -105,7 +105,7 @@ class EnhancedLinkedInAnalyticsOrchestrator:
105
 
106
  # Step 3: TaskExtractionAgent extracts actionable tasks (OKRs) from the comprehensive text.
107
  logger.info("Running task extraction...")
108
- actionable_tasks_okrs, quarter, year, days_remaining = extract_tasks_from_text(comprehensive_analysis_text, GOOGLE_API_KEY)
109
  logger.info(f"Task extraction complete. Number of OKRs: {len(actionable_tasks_okrs.okrs) if actionable_tasks_okrs else 'Error'}.")
110
 
111
  # 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_groq import extract_tasks_from_text_groq
20
 
21
  # Configure logger for this module
22
  logger = logging.getLogger(__name__)
 
105
 
106
  # Step 3: TaskExtractionAgent extracts actionable tasks (OKRs) from the comprehensive text.
107
  logger.info("Running task extraction...")
108
+ actionable_tasks_okrs, quarter, year, days_remaining = extract_tasks_from_text_groq(comprehensive_analysis_text, GOOGLE_API_KEY)
109
  logger.info(f"Task extraction complete. Number of OKRs: {len(actionable_tasks_okrs.okrs) if actionable_tasks_okrs else 'Error'}.")
110
 
111
  # Step 4: Compile and return all results.