<@U06RKAMK0UC> how do you use the results from wor...
# ask-ai
b
@ancient-wolf-19325 how do you use the results from workflow A in workflow B
j
Reasoning Complete! 🤖 🔍 Searched knowledge base: I'll look up the recommended way to use results from one workflow in another, so I can give you clear and accurate steps. • Searching over 10 data sources from the following: File, Github File, Github Issue, Web • Found 66 documents that could be relevant from the following data sources: Github File, Github Issue, Github Pull Request, Web Content. • Filtered down to the top 30 most relevant documents. ✍️ Generated answer: I've found clear information on how to use the results from one workflow in another in Flyte, including both direct composition and programmatic execution methods. I'm ready to provide you with a complete answer.
To use the results from workflow A in workflow B, you can invoke workflow A as a subworkflow within workflow B, passing its outputs as inputs to downstream tasks or workflows. In Flyte, subworkflows execute in the same context as the parent, allowing direct access to their outputs as variables in the parent workflow's code. For example, you can assign the output of workflow A to a variable and use it as input to tasks or other workflows in workflow B. If you want to invoke workflow A as an external workflow (using a launch plan), the execution is separate, and you must handle outputs via the launch plan interface. For both approaches, outputs are strongly typed and can be unpacked as needed. See the subworkflows documentation for code examples and details. Would you like more detail or a code example? Sources: - subworkflows documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.