src.ai.enrichment.intelligent_enricher module#

Intelligent Task Enricher for Marcus Phase 3.

AI-powered task enrichment that goes beyond pattern matching to provide semantic understanding and intelligent enhancement of task metadata.

class src.ai.enrichment.intelligent_enricher.EnhancementResult[source]#

Bases: object

Result of AI-powered task enrichment.

original_task: Task#
enhanced_description: str#
suggested_labels: List[str]#
estimated_hours: float | None#
suggested_dependencies: List[str]#
acceptance_criteria: List[str]#
risk_factors: List[str]#
confidence: float#
reasoning: str#
changes_made: Dict[str, Any]#
enhancement_timestamp: datetime | None = None#
__post_init__()[source]#

Initialize post-creation.

Return type:

None

__init__(original_task, enhanced_description, suggested_labels, estimated_hours, suggested_dependencies, acceptance_criteria, risk_factors, confidence, reasoning, changes_made, enhancement_timestamp=None)#
Parameters:
Return type:

None

class src.ai.enrichment.intelligent_enricher.ProjectContext[source]#

Bases: object

Extended project context for intelligent enrichment.

project_type: str#
tech_stack: List[str]#
team_size: int#
existing_tasks: List[Task]#
project_standards: Dict[str, Any]#
historical_data: List[Dict[str, Any]]#
quality_requirements: Dict[str, Any]#
__init__(project_type, tech_stack, team_size, existing_tasks, project_standards, historical_data, quality_requirements)#
Parameters:
Return type:

None

class src.ai.enrichment.intelligent_enricher.IntelligentTaskEnricher[source]#

Bases: object

AI-enhanced task enricher that provides semantic understanding.

Goes beyond the pattern-based enrichment from Phase 2 to use AI for semantic understanding and intelligent enhancement.

__init__()[source]#
Return type:

None

async enrich_task_with_ai(task, project_context)[source]#

Enrich a task using AI-powered semantic analysis.

Parameters:
Return type:

EnhancementResult

Returns:

Enhanced task with AI-generated improvements

async enrich_task_batch(tasks, project_context)[source]#

Enrich multiple tasks with intelligent batching.

Parameters:
Return type:

List[EnhancementResult]

Returns:

List of enrichment results

async get_enrichment_statistics(results)[source]#

Get statistics about enrichment results.

Return type:

Dict[str, Any]

Parameters:

results (List[EnhancementResult])