Please read this first
- Have you read the docs?Agents SDK docs
- Have you searched for related issues? Others may have had similar requests
Question
Describe your question. Provide details if available.
I keep getting the above Error saying that a conversation already has an active response.
Error(message='Conversation already has an active response in progress: resp_C4IHTez0STfDDIteKgMyW. Wait until the response is finished before creating a new one.', type='invalid_request_error', code='conversation_already_has_active_response', event_id=None, param=None)",
I sort of get the source of this error. I am trying to actively send a message using self.send_message('....') while a response is either being generated or has yet to be played. I believe this error stems from the underlying Realtime API too.
Is there something I can do to mitigate the above? I would expect to have a method available as such:
self.session.cancel_active_response(...)
or something of that nature, but couldn't find anything handy like that.