File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
production_demo/src/workflows Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33from restack_ai .workflow import workflow , import_functions , log
44
55with import_functions ():
6- from src .functions .function import example_function
6+ from src .functions .function import example_function , ExampleFunctionInput
77 from src .functions .generate import llm_generate , GenerateInput
88 from src .functions .evaluate import llm_evaluate , EvaluateInput
99
@@ -15,7 +15,7 @@ class ChildWorkflow:
1515 @workflow .run
1616 async def run (self , input : ChildWorkflowInput ):
1717 log .info ("ChildWorkflow started" )
18- await workflow .step (example_function , input = input , start_to_close_timeout = timedelta (minutes = 2 ))
18+ await workflow .step (example_function , input = ExampleFunctionInput ( name = 'John Doe' ) , start_to_close_timeout = timedelta (minutes = 2 ))
1919
2020 await workflow .sleep (1 )
2121
You can’t perform that action at this time.
0 commit comments