Is there a way to do agent to agent call?
# agents
s
Is there a way to do agent to agent call?
m
I assume yes without anything special. Just make one agent outbound and another inbound and dispatch appropriately. Staff plz correct me if i’m wrong
s
I tried but the inbound agent doesnt pickup the call
m
Does it pick up if you call it from your cell?
s
Yes. But when doing agent to agent its not.
l
@shy-raincoat-67106 do you mean a SIP call transfer? https://docs.livekit.io/sip/transfer-cold/ Or handing off the call to more specialised agents, https://docs.livekit.io/agents/build/agents-handoffs/, both are possible.
s
no i mean can i setup call between two agents. generally it agent & human but i want agent & agent.
l
@shy-raincoat-67106 What is your use case?
s
So I want to use Voice agents to test another voice agent. @lively-winter-88668
l
I see - Did you see our testing and evaluation framework? https://docs.livekit.io/agents/build/testing/. I am not aware of anyone who has implemented agent <--> agent, so can't speak to the pros or cons of that approach for testing.
s
I did but what i want something that more dynamic. In this case we have, give the user input as well. And our product is kind of trying to test end to end for voice agent.
Is it possible to do agent to agent tho?
l
The idea of the testing framework is it will account for the unpredictability of agent responses against specific user desires. If you wanted to generate a more chaotic user, I would probably generate test scripts outside of LiveKit using an LLM before running that 'dynamic' script through the test framework - though I'm still unsure what 'success' would be. But to answer your question about agent to agent, I'm not sure - I do not know anyone who has tried it and I can't find any examples in our repo, sorry.
b
There are, though they are here https://docs.livekit.io/agents/build/testing/#third-party-testing-tools, so definitely easy to miss. Coval is an example of that. But it is close source. Still surprising that the agent does not pick up if you are just calling from a phone. Is it a different phone with it's own sip config enabled for outbound calls?
s
yea. that could be it.
d
We do it using SIP telephony. The testing agent makes an outbound call to the agent we want to test. The main agent receives inbound call via dispatch rule on that number. works fine for us.