simplify flow (#1482)

* simplify flow

* propogate changes

* Update docs and scripts

* Template fix

* make flow kickoff sync

* Clean up docs
This commit is contained in:
Brandon Hancock (bhancock_ai)
2024-10-21 19:32:55 -04:00
committed by GitHub
parent 6bcb3d1080
commit 093259389e
6 changed files with 111 additions and 160 deletions

View File

@@ -190,7 +190,10 @@ class Flow(Generic[T], metaclass=FlowMeta):
"""Returns the list of all outputs from executed methods."""
return self._method_outputs
async def kickoff(self) -> Any:
def kickoff(self) -> Any:
return asyncio.run(self.kickoff_async())
async def kickoff_async(self) -> Any:
if not self._start_methods:
raise ValueError("No start method defined")