mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-07-01 21:04:00 -04:00
9 lines
295 B
Python
9 lines
295 B
Python
from llama_index.core.workflow import Context, StartEvent, StopEvent, Workflow, step
|
|
|
|
|
|
class BasicWorkflow(Workflow):
|
|
@step()
|
|
async def run_step(self, ctx: Context, ev: StartEvent) -> StopEvent:
|
|
arg1 = ev.get("arg1", "n/a")
|
|
return StopEvent(result=str(arg1) + "_result")
|