File size: 2,889 Bytes
09801ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
"""
🤖 Agentic AutoML - Complete Agent Package

This package contains all components for the autonomous multi-agent AutoML system.

Agents:
1. Data Quality Agent - Detects and fixes dataset issues
2. Preprocessing Agent - Smart encoding and scaling
3. Feature Engineer Agent - Feature creation and selection
4. Model Strategy Agent - Algorithm selection
5. Hyperparameter Agent - Optuna optimization
6. Training Validator Agent - Bias-variance analysis
7. Evaluation Agent - Final approval gate
8. Visualization Agent - Explainability charts
9. Deployment Agent - Production inference
"""

# Base components
from .base import (
    BaseAgent,
    AgentResult,
    AgentStatus,
    AgentMessage,
    MessageType,
    Phase,
    AgentRegistry
)

# Memory and orchestration
from .memory import AgentMemory, StateEntry, Artifact
from .orchestrator import AgentOrchestrator, PipelineStatus

# Data agents
from .data_quality import DataQualityAgent
from .preprocessing import PreprocessingAgent
from .feature_engineer import FeatureEngineerAgent

# Model agents
from .model_strategy import ModelStrategyAgent
from .hyperparam import HyperparamAgent
from .training_validator import TrainingValidatorAgent

# Validation agents
from .evaluation import EvaluationAgent
from .visualization import VisualizationAgent
from .deployment import DeploymentAgent


def create_agentic_pipeline() -> AgentOrchestrator:
    """
    Factory function to create a fully configured agentic AutoML pipeline.
    
    Returns:
        AgentOrchestrator with all agents registered
    """
    orchestrator = AgentOrchestrator()
    
    # Register all agents
    orchestrator.register_agent("data_quality", DataQualityAgent())
    orchestrator.register_agent("preprocessing", PreprocessingAgent())
    orchestrator.register_agent("feature_engineer", FeatureEngineerAgent())
    orchestrator.register_agent("model_strategy", ModelStrategyAgent())
    orchestrator.register_agent("hyperparam", HyperparamAgent())
    orchestrator.register_agent("training_validator", TrainingValidatorAgent())
    orchestrator.register_agent("evaluation", EvaluationAgent())
    orchestrator.register_agent("visualization", VisualizationAgent())
    orchestrator.register_agent("deployment", DeploymentAgent())
    
    return orchestrator


__all__ = [
    # Base
    'BaseAgent',
    'AgentResult', 
    'AgentStatus',
    'AgentMessage',
    'MessageType',
    'Phase',
    'AgentRegistry',
    
    # Memory
    'AgentMemory',
    'StateEntry',
    'Artifact',
    
    # Orchestrator
    'AgentOrchestrator',
    'PipelineStatus',
    
    # Agents
    'DataQualityAgent',
    'PreprocessingAgent',
    'FeatureEngineerAgent',
    'ModelStrategyAgent',
    'HyperparamAgent',
    'TrainingValidatorAgent',
    'EvaluationAgent',
    'VisualizationAgent',
    'DeploymentAgent',
    
    # Factory
    'create_agentic_pipeline'
]