https://retellai.com/?utm_source=discord&utm_medium=seo logo
When using bring your own LLM how do you handle mu...
# ❓・bug-report
i
I'll get two or three back to back with additional speech because i'm getting the "response_required" early and the user is still talking. This is causing tools to be fired multiple times. When it's not hitting a tool it seems to work ok
my current plan is to write all the calls to the db and if a call comes up with a duplicate agent response_id then mark the previous as aborted. if that aborted call tries to makes a tool request just ignore it or if a tool request has already started then abort the new one coming in
n
Hmm I see! I would suggest using an in memory data structure rather than something like DB/redis. This will reduce your latency and I dont think the memory footprint will be too much!