Upload __init__.py
Browse files- agents/__init__.py +66 -22
agents/__init__.py
CHANGED
|
@@ -1,32 +1,76 @@
|
|
| 1 |
"""
|
| 2 |
Agents for Design System Extractor v2.
|
| 3 |
|
| 4 |
-
This package contains
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
- Agent 4: Generator (Automation Engineer)
|
| 9 |
"""
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
__all__ = [
|
| 24 |
-
#
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
|
| 29 |
-
"
|
| 30 |
-
"
|
| 31 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
]
|
|
|
|
| 1 |
"""
|
| 2 |
Agents for Design System Extractor v2.
|
| 3 |
|
| 4 |
+
This package contains:
|
| 5 |
+
- Stage 1 Agents: Crawler, Extractor, Normalizer, Semantic Analyzer
|
| 6 |
+
- Stage 2 Agents: Rule Engine, Benchmark Researcher, LLM Analysis Agents
|
| 7 |
+
- Workflow Graphs: LangGraph orchestration
|
|
|
|
| 8 |
"""
|
| 9 |
|
| 10 |
+
# Stage 2 components (no langgraph dependency)
|
| 11 |
+
from agents.benchmark_researcher import (
|
| 12 |
+
BenchmarkResearcher,
|
| 13 |
+
BenchmarkCache,
|
| 14 |
+
DESIGN_SYSTEM_SOURCES,
|
| 15 |
+
FALLBACK_BENCHMARKS,
|
| 16 |
+
get_available_benchmarks,
|
| 17 |
+
get_benchmark_choices,
|
| 18 |
+
BenchmarkData,
|
| 19 |
+
BenchmarkComparison,
|
| 20 |
)
|
| 21 |
|
| 22 |
+
try:
|
| 23 |
+
from agents.llm_agents import (
|
| 24 |
+
BrandIdentifierAgent,
|
| 25 |
+
BenchmarkAdvisorAgent,
|
| 26 |
+
BestPracticesValidatorAgent,
|
| 27 |
+
HeadSynthesizerAgent,
|
| 28 |
+
BrandIdentification,
|
| 29 |
+
BenchmarkAdvice,
|
| 30 |
+
BestPracticesResult,
|
| 31 |
+
HeadSynthesis,
|
| 32 |
+
)
|
| 33 |
+
except ImportError:
|
| 34 |
+
BrandIdentifierAgent = None
|
| 35 |
+
BenchmarkAdvisorAgent = None
|
| 36 |
+
BestPracticesValidatorAgent = None
|
| 37 |
+
HeadSynthesizerAgent = None
|
| 38 |
+
BrandIdentification = None
|
| 39 |
+
BenchmarkAdvice = None
|
| 40 |
+
BestPracticesResult = None
|
| 41 |
+
HeadSynthesis = None
|
| 42 |
+
|
| 43 |
+
# Lazy imports for langgraph-dependent modules
|
| 44 |
+
def get_state_module():
|
| 45 |
+
"""Lazy import for state module (requires langgraph)."""
|
| 46 |
+
from agents import state as state_module
|
| 47 |
+
return state_module
|
| 48 |
+
|
| 49 |
+
def get_graph_module():
|
| 50 |
+
"""Lazy import for graph module (requires langgraph)."""
|
| 51 |
+
from agents import graph as graph_module
|
| 52 |
+
return graph_module
|
| 53 |
|
| 54 |
__all__ = [
|
| 55 |
+
# Benchmark Research
|
| 56 |
+
"BenchmarkResearcher",
|
| 57 |
+
"BenchmarkCache",
|
| 58 |
+
"DESIGN_SYSTEM_SOURCES",
|
| 59 |
+
"FALLBACK_BENCHMARKS",
|
| 60 |
+
"get_available_benchmarks",
|
| 61 |
+
"get_benchmark_choices",
|
| 62 |
+
"BenchmarkData",
|
| 63 |
+
"BenchmarkComparison",
|
| 64 |
+
# LLM Agents
|
| 65 |
+
"BrandIdentifierAgent",
|
| 66 |
+
"BenchmarkAdvisorAgent",
|
| 67 |
+
"BestPracticesValidatorAgent",
|
| 68 |
+
"HeadSynthesizerAgent",
|
| 69 |
+
"BrandIdentification",
|
| 70 |
+
"BenchmarkAdvice",
|
| 71 |
+
"BestPracticesResult",
|
| 72 |
+
"HeadSynthesis",
|
| 73 |
+
# Lazy loaders
|
| 74 |
+
"get_state_module",
|
| 75 |
+
"get_graph_module",
|
| 76 |
]
|