File tree 1 file changed +2
-2
lines changed
production_demo/src/workflows
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
from restack_ai .workflow import workflow , import_functions , log
4
4
5
5
with import_functions ():
6
- from src .functions .function import example_function
6
+ from src .functions .function import example_function , ExampleFunctionInput
7
7
from src .functions .generate import llm_generate , GenerateInput
8
8
from src .functions .evaluate import llm_evaluate , EvaluateInput
9
9
@@ -15,7 +15,7 @@ class ChildWorkflow:
15
15
@workflow .run
16
16
async def run (self , input : ChildWorkflowInput ):
17
17
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 ))
19
19
20
20
await workflow .sleep (1 )
21
21
You can’t perform that action at this time.
0 commit comments