Update unit2/llama-index/workflows.ipynb
#52
by
connectwithprakash
- opened
unit2/llama-index/workflows.ipynb
CHANGED
@@ -182,7 +182,7 @@
|
|
182 |
"\n",
|
183 |
"class MultiStepWorkflow(Workflow):\n",
|
184 |
" @step\n",
|
185 |
-
" async def step_one(self, ev: StartEvent) -> ProcessingEvent | LoopEvent:\n",
|
186 |
" if random.randint(0, 1) == 0:\n",
|
187 |
" print(\"Bad thing happened\")\n",
|
188 |
" return LoopEvent(loop_output=\"Back to step one.\")\n",
|
|
|
182 |
"\n",
|
183 |
"class MultiStepWorkflow(Workflow):\n",
|
184 |
" @step\n",
|
185 |
+
" async def step_one(self, ev: StartEvent | LoopEvent) -> ProcessingEvent | LoopEvent:\n",
|
186 |
" if random.randint(0, 1) == 0:\n",
|
187 |
" print(\"Bad thing happened\")\n",
|
188 |
" return LoopEvent(loop_output=\"Back to step one.\")\n",
|