torii-gateRun Multiple Queries

Audience: Developers

Run Multiple Queries with Async Taskgroup

Run multiple research queries with shared configuration (profile, webhook) using the SDK's taskgroup API.

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

Consume a single stream that aggregates events from all tasks in the group:

Check group status and get results

See the Quick Start Guide and Taskgroups API Contract for full request/response formats.

Last updated