calls_agent_duel
Start an agent-vs-agent VOICE test call: two AI voice agents share one LiveKit room — a 'caller' persona agent pursues a task brief against the 'callee' business agent under test. Use to evaluate booking flows, latency, and conversation quality without a human caller.
The CALLER agent should have an EMPTY voice_greeting (it must stay silent until the callee greets) and voice_filler_enabled=false.
Afterwards inspect both call_ids with agents.traces_list / calls.get_transcript. A subscribe-only listen token is returned for listening in live.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"callee_agent_id": "<callee_agent_id>",
"caller_agent_id": "<caller_agent_id>",
"task": "<task>"
},
"name": "calls_agent_duel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The caller's brief — objective, persona details (name, phone), and when to end the call. Woven into its prompt as call instructions. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| max_duration_s | No | Hard cap on the call in seconds (30-900, default 300). | |
| callee_agent_id | Yes | Agent under test (answers and greets first). From agents.list. | |
| caller_agent_id | Yes | Customer-persona agent that places the call. Must be a different agent, active, with empty voice_greeting. |