I am trying to achieve something like code provided on this website -> https://platform.openai.com/docs/guides/function-calling
Basically instruction says something like this if you user asks that he wants to see weather, call the get_weather function. When this scenario happens assistant changes status to requires_action(see previously provided code snippet). Your current code does not support this functionality and goes into forever loop as required_action will not changed without manual intervetion.
What I want to do is to give instruction for users that if they run assistant with custom functions, they can create they own plugin or use any other method to tie themself to specific function (It can be enabled in settings ect.). There will be warning that user is fully responsible for how chatbot works after enabling and using this functionality.
What I am proposing is delegate responsibility of dealing with more complex assistants to users itself