-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
37 lines (26 loc) · 1.11 KB
/
main.py
File metadata and controls
37 lines (26 loc) · 1.11 KB
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
"""
Agent Orchestrator — Entry point.
The Primary Agent (PM) orchestrates specialized agents:
- Coding Agent: implements features, creates PRs
- UAT Agent: validates against specs and user journeys
- DevOps Agent: deploys across environments
- PR Agent: shepherds PRs through review
Communication is contract-based via TaskBundles with
transport-agnostic status reporting. Agents run as separate
processes; the graph interrupts and resumes on callbacks.
Usage:
uv run python main.py # Verify graph compiles
uv run python demo.py # Run end-to-end demo
"""
import logging
from src.orchestrator import build_orchestrator_graph
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(name)s] %(levelname)s: %(message)s")
logger = logging.getLogger(__name__)
def main() -> None:
from langgraph.checkpoint.memory import MemorySaver
graph = build_orchestrator_graph()
compiled = graph.compile(checkpointer=MemorySaver())
nodes = list(compiled.get_graph().nodes)
logger.info("Orchestrator graph compiled with %d nodes: %s", len(nodes), nodes)
if __name__ == "__main__":
main()