Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultimodalAgent interrupts itself when response is created from function result #1178

Open
davidzhao opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@davidzhao
Copy link
Member

During the function call, the model could return audio letting the user know that it's performing an operation.

While that speech is being played back, if the function call finishes with the result, we would have created an additional response that would interrupt that speech:

For example:

Let's say I have a tool called turn_on_the_light.
The agent will say "I'll turn on the {cut-in}} the light is now on".

This is happening because of the response.create() line

if called_fnc.result is not None:
            self.conversation.item.create(tool_call, item_id)
            self.response.create()

We should wait until current speech handle is finished before queuing additional speech

@davidzhao davidzhao added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant