How to import subflows #159
Answered
by
Maplemx
shenhai-ran
asked this question in
Q&A
-
Hello, If I have some subflows defined in different python files, such as # some codes
(
sub_workflow
.connect_to("actions")
.connect_to("END")
) and I have a main workflow in another python file and I would like to connect all the subflows in this python file. THanks |
Beta Was this translation helpful? Give feedback.
Answered by
Maplemx
Sep 17, 2024
Replies: 1 comment
-
Suppose you have two files in the same dir: /path/to/your/dir/sub_workflow.py: import Agently
sub_workflow = Agently.Workflow()
... /path/to/your/dir/main_workflow.py: import Agently
# you can import sub_workflow by this way
from sub_workflow import sub_workflow
main_workflow = Agently.Workflow() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Maplemx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Suppose you have two files in the same dir:
/path/to/your/dir/sub_workflow.py:
/path/to/your/dir/main_workflow.py: