Skip to main content
This example’s sample input activates only the Hacker News branch. The code fence remains source-exact. Apply the input replacement below to exercise the Hacker News, web, and Exa branches together.
condition_with_parallel.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Exercise all research branches

Replace all four Latest AI developments in machine learning inputs in the saved file with AI research news.
5

Run the example

Save the code above as condition_with_parallel.py, then run:
Full source: cookbook/04_workflows/02_conditional_execution/condition_with_parallel.py