-
We are looking for a simple way to clear the context, so the user can start from scratch with a new thread. I know we can just refresh the page and do that, but that is not a great UX. We were looking thru the hooks to see if there was anything to just reset the thread to clear everything, but couldn't find anything. Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
Yonom
Oct 26, 2024
Replies: 1 comment 1 reply
-
depending on your runtime, one of these two should do the trick! runtime.reset() // or
runtime.switchToNewThread() you can get the runtime anywhere under AssistantRuntimeProvider via const runtime = useAssistantRuntime() |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Yonom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
depending on your runtime, one of these two should do the trick!
you can get the runtime anywhere under AssistantRuntimeProvider via