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

Sending EndFrame() in a LLM tool_call will not hangup the phone call #482

Open
zamia opened this issue Sep 20, 2024 · 0 comments
Open

Sending EndFrame() in a LLM tool_call will not hangup the phone call #482

zamia opened this issue Sep 20, 2024 · 0 comments

Comments

@zamia
Copy link

zamia commented Sep 20, 2024

I want to hangup the phone in a LLM tool call, so in the tool context I called llm.push_frame(EndFrame()), but this could not hangup the call.

So is it possible to hangup the phone call in a LLM tool call context? In the twilio document it says the only way to hangup the call is close the websocket. I know the FastAPIWebsocketInputTransport will close websocket when it process EndFrame. But I cannot get the reference from a llm tool context. How should i do this?

Some other information:

  • use Twilio bidirectional stream to connect call to LLM;
  • use FastAPIWebsocketTransport

So any suggestions? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant