Skip to content

How do you clear the message/thread context? #1099

Answered by Yonom
osseonews asked this question in Q&A
Discussion options

You must be logged in to vote

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()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@osseonews
Comment options

Answer selected by Yonom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants