ParallelTaskGroup()_TaskClientMixinBatch task runner backed by the Task Group API.
Use when you have a list of inputs and want them all processed in parallel. Returns a list of result dicts in the same order as the input list.
Example:
group = ParallelTaskGroup() # processor="lite-fast"
results = group.run(
inputs=[
"Founder of Anthropic?",
"Founder of OpenAI?",
"Founder of Google DeepMind?",
]
)
for inp, out in zip(inputs, results):
print(inp, "->", out["output"])