from blastai import Engineasync with Engine() as engine: # Task B won't start until Task A completes task_a = await engine.run("Go to python.org") task_b = await engine.run( "Click on Documentation", previous_response_id=task_a.id # Set prerequisite )
# Parent task can create multiple subtasksresults = await engine.run("Launch subtasks to visit each of these websites: bloomberg.com, wsj.com, and nytimes.com")