Run Multiple Queries
Run Multiple Queries with Async Taskgroup
Create a task group with multiple queries
from gl_odr_sdk import DeepResearchClient
client = DeepResearchClient()
taskgroup = client.taskgroups.create(
profile="ESSENTIAL",
query=[
"What is AI?",
"What is machine learning?",
"What is deep learning?",
],
)
# All tasks share the same profile and optional webhook
print(f"Taskgroup ID: {taskgroup.taskgroup_id}")
print(f"Tasks: {taskgroup.tasks}")Stream from the whole group
Check group status and get results
Last updated
