Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions examples/software_factory/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

from __future__ import annotations

from typing import cast

from examples.software_factory.agents import (
architect,
builder,
Expand All @@ -31,7 +29,7 @@
from fireflyframework_agentic.pipeline import (
Checkpointer,
PipelineBuilder,
StatePipeline,
PipelineEngine,
)


Expand All @@ -40,7 +38,7 @@ def qa_router(state: BuildState) -> str:
return "stable_release" if state.qa_status == "pass" else "codegen"


def build_pipeline(checkpointer: Checkpointer) -> StatePipeline:
def build_pipeline(checkpointer: Checkpointer) -> PipelineEngine:
pipeline = (
PipelineBuilder(
"software-factory",
Expand All @@ -60,5 +58,4 @@ def build_pipeline(checkpointer: Checkpointer) -> StatePipeline:
.branch("qa", qa_router)
.build()
)
# state= was set, so .build() returns a StatePipeline — narrow for the type checker.
return cast("StatePipeline", pipeline)
return pipeline