riazmo commited on
Commit
e0379b9
·
verified ·
1 Parent(s): 93b9760

Upload __init__.py

Browse files
Files changed (1) hide show
  1. 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 the LangGraph agents:
5
- - Agent 1: Crawler & Extractor (Design Archaeologist)
6
- - Agent 2: Normalizer (Design System Librarian)
7
- - Agent 3: Advisor (Senior Staff DS Architect)
8
- - Agent 4: Generator (Automation Engineer)
9
  """
10
 
11
- from agents.state import (
12
- AgentState,
13
- create_initial_state,
14
- get_stage_progress,
 
 
 
 
 
 
15
  )
16
 
17
- from agents.graph import (
18
- build_workflow_graph,
19
- WorkflowRunner,
20
- create_workflow,
21
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  __all__ = [
24
- # State
25
- "AgentState",
26
- "create_initial_state",
27
- "get_stage_progress",
28
- # Graph
29
- "build_workflow_graph",
30
- "WorkflowRunner",
31
- "create_workflow",
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  ]