Hey team, I'm looking for guidance on implementing...
# agents
r
Hey team, I'm looking for guidance on implementing an agent that is in charge of coordinating the call. The handoff business logic I have is quite complex, so I want a dedicated agent in charge of "tagging in" agents as they are needed. Main pain point is that my prompt is getting so complex, so decoupling handoff logic from business logic in the prompt would be huge Imagine a call with Listener Agent, Agent A, and Agent B Listener hears some trigger phrase -> listener swaps out from Agent A to agent B 2nd trigger phrase -> listener swaps back from Agent B to Agent A
b
checkout the restaurant recipe for a starter: https://github.com/livekit/agents/blob/main/examples/voice_agents/restaurant_agent.py in this case the Greeter is sort of tagging in a reserveration agent or a take out agent. once the task is complete the Greeter has state and can tag in another agent
💯 1
a
I have 0 experience but what if you use 2 agents concurrently? as in duplicating the call. One agent will reply internally with signals that you will use to swap the agent on the actual real call.