TaskError
TaskContext) is cancelled due to a worker error or timeout.
TaskGroupError
TaskGroupContext) is cancelled due to a worker error or timeout. Also raised if agents are not ready within the specified timeout.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Error types for task coordination
from pipecat_subagents.agents.task_context import TaskError
TaskContext) is cancelled due to a worker error or timeout.
try:
async with self.task("worker", payload=data, timeout=30) as t:
async for event in t:
...
print(t.response)
except TaskError as e:
print(f"Task failed: {e}")
from pipecat_subagents.agents.task_context import TaskGroupError
TaskGroupContext) is cancelled due to a worker error or timeout. Also raised if agents are not ready within the specified timeout.
try:
async with self.task_group("w1", "w2", payload=data, timeout=30) as tg:
async for event in tg:
...
print(tg.responses)
except TaskGroupError as e:
print(f"Task group failed: {e}")