connectwithprakash commited on
Commit
8e903a0
·
verified ·
1 Parent(s): 680f625

Update unit2/llama-index/workflows.ipynb

Browse files

Add missing loop input for the step 1 in loop and branches code block.

Files changed (1) hide show
  1. unit2/llama-index/workflows.ipynb +1 -1
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",