MCPcopy Create free account
hub / github.com/bcefghj/competitive-intelligence-multi-agent / build_pipeline

Function build_pipeline

python/src/graph/workflow.py:164–187  ·  view source on GitHub ↗

Construct and compile the CI pipeline graph.

()

Source from the content-addressed store, hash-verified

162# ---------------------------------------------------------------------------
163
164def build_pipeline() -> StateGraph:
165 """Construct and compile the CI pipeline graph."""
166 graph = StateGraph(PipelineState)
167
168 graph.add_node("monitor", monitor_agent)
169 graph.add_node("alert", alert_agent)
170 graph.add_node("research", research_agent)
171 graph.add_node("compare", compare_agent)
172 graph.add_node("battlecard", battlecard_agent)
173 graph.add_node("quality_check", quality_check)
174
175 graph.set_entry_point("monitor")
176
177 graph.add_edge("monitor", "alert")
178 graph.add_edge("monitor", "research")
179
180 graph.add_edge("alert", END)
181 graph.add_edge("research", "compare")
182 graph.add_edge("compare", "battlecard")
183 graph.add_edge("battlecard", "quality_check")
184
185 graph.add_conditional_edges("quality_check", _should_retry)
186
187 return graph.compile()
188
189
190pipeline = build_pipeline()

Callers 1

workflow.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected