omarkadry
10/06/2025, 2:48 PMAI Evy
10/06/2025, 2:48 PMAI Evy
10/06/2025, 2:48 PMend_call parameter when streaming responses [(2) ]() . However, be aware that there may be timing issues where the call ends before the final AI message is spoken .
## Configuration Example
When creating an agent, you can set these timeout values:
javascript
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
end_call_after_silence_ms: 600000,
max_call_duration_ms: 3600000
}) ;
[(1) ]()
If your agent has been in a call for 30 minutes despite these settings, check your agent configuration to ensure the timeout parameters are properly set. The default max_call_duration_ms is 1 hour, so a 30-minute call would still be within limits unless you've configured shorter durations .AI Evy
10/06/2025, 2:48 PMAI Evy
10/06/2025, 2:48 PMomarkadry
10/06/2025, 2:49 PM