Access to chat history/storage #1560
Replies: 1 comment
-
Currently we don't provide a way to access token numbers. This is a feature request that is in discussion for being added to our roadmap. Please see our documentation on TurnState. Please see also previous discussion on history: #191 (comment) If you want to store conversation history in a less temporary way, you would need to add the pertaining history to storage/database or your choosing. From there, you could add storage handlers that could erase history after a certain amount of time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm new to the world of MS teams AI and I'm trying to build an AI chatbot (using the OpenAI API) for Teams in Node.js. I'm seeking examples, advice, and knowledge to help me in this challenge.
Initially, I've adopted an AI chatbot template from the Teams toolkit in JavaScript.
Could anyone please guide me on gaining control of the state or retrieving values from the chat history?
For instance, I want to capture the timestamp of the initial user's message and reset the entire conversation if it surpasses a certain period. I understand that I can reset the state using commands like /reset, however, this state is only accessed within the Application class, for example:
I want to be able to reset the state from other places in the chatbot app, such as in middleware.
And I can see chat logs/token numbers in terminal logs, but it's not clear to me how I can access the token numbers returned by the OpenAI API.
My app code is:
app.js:
index.js
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions