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

Programmatically call lifecycle event end chat for realtime conversations #1523

Open
pr0j3c7t0dd opened this issue Nov 14, 2024 · 0 comments
Labels
enhancement New feature or request needs-triage

Comments

@pr0j3c7t0dd
Copy link

Is your feature request related to a problem? Please describe.
I would like to be able to programmatically end a chat when I detect the end of a realtime conversation, so I can stop the agent, message the user, or redirect them to another page. This could also help with adding guardrails to realtime chats.

Describe the solution you'd like
I would like to have a method to close a chat programmatically end a chat, that calls a chat terminated lifecycle event

Describe alternatives you've considered
I'm not aware of any alternatives. The conversation does wrap up by the AI assistant, but then it just hangs there. I could detect the end of the conversation by watching the transcript, then take some action.

Additional context
None. This could be useful for text chats as well. I can imagine there could be a way to use this feature to terminate a chat from outside or using a tool, for instance, if the user is taking a timed exam, etc.

@dosubot dosubot bot added the enhancement New feature or request label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant