src.ai.enrichment package#

AI Enrichment Components.

class src.ai.enrichment.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])

class src.ai.enrichment.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

Submodules#