Bug Description
When using multiple agents (or tools mapped to different agents) in LiveKit Agents, if a single user intent triggers more than one agent/tool, the system throws the following error and the conversation goes silent:
"""ERROR livekit.agents: expected to receive only one AgentTask from the tool executions""""
After this error:
No audio response is returned
No fallback or partial response is produced
The call/session becomes silent
Expected Behavior
Aggregating multiple tool responses into one AgentTask
Sequential execution guidance
Reproduction Steps
Steps to Reproduce
Create two agents (or tools backed by different agents)
Route a single user intent that causes both agents/tools to execute
Each agent/tool returns an AgentTask
LiveKit throws the error and drops the response
Example scenario:
User asks:
“Check my order status and raise a complaint”
Agent A → order status tool
Agent B → complaint tool
Both return AgentTask in the same turn
Operating System
macos intel
Models Used
Azure STT, GPT4.1, Azure TTS
Package Versions
aiocache>=0.12.3",
"azure-cognitiveservices-speech>=1.46.0",
"azure-identity>=1.25.1",
"azure-search-documents>=11.6.0",
"certifi>=2025.11.12",
"livekit>=1.0.20",
"livekit-agents[azure,deepgram,mcp,openai,silero,turn-detector]===1.3.12",
"livekit-plugins-azure>=1.3.6",
"livekit-plugins-noise-cancellation",
"openai<2.0.0,>=1.16.2",
"opentelemetry-exporter-otlp-proto-http>=1.39.0",
"python-dotenv>=1.2.1",
"pyyaml"
Session/Room/Call IDs
No response
Proposed Solution
Additional Context
No response
Screenshots and Recordings
No response
Bug Description
When using multiple agents (or tools mapped to different agents) in LiveKit Agents, if a single user intent triggers more than one agent/tool, the system throws the following error and the conversation goes silent:
"""ERROR livekit.agents: expected to receive only one AgentTask from the tool executions""""
After this error:
No audio response is returned
No fallback or partial response is produced
The call/session becomes silent
Expected Behavior
Aggregating multiple tool responses into one AgentTask
Sequential execution guidance
Explicit orchestration patterns
At minimum, the system should not fail silently.
Reproduction Steps
Operating System
macos intel
Models Used
Azure STT, GPT4.1, Azure TTS
Package Versions
Session/Room/Call IDs
No response
Proposed Solution
Additional Context
No response
Screenshots and Recordings
No response