You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the OpenAI Python example, the way to delete conversation state seems not to be working. It looks mostly like a copy of the JS code when I checked, but the most important part (state.deleteConversationState()) cannot be resolved in Python and throws there for an exception.
@app.message("/clear")asyncdefmessage(context: TurnContext, state: AppTurnState):
state.deleteConversationState() # doesn't seem to be implemented in the custom state.py file!!!!awaitcontext.send_activity(
"New chat session started: Previous messages won't be used as context for new queries."
)
returnTrue
I'm running it with teams-ai version 1.5.0 and also in the main branch didn't see a newer version of this example. So for me unclear how to delete conversation state in Python version.
Reproduction Steps
1. Included the sample code in my own project
2. Deployed the bot
3. Got an exception about `state.deleteConversationState` not found when executing `/clear`in Teams
The text was updated successfully, but these errors were encountered:
Language
Python
Version
latest
Description
In the OpenAI Python example, the way to delete conversation state seems not to be working. It looks mostly like a copy of the JS code when I checked, but the most important part (
state.deleteConversationState()
) cannot be resolved in Python and throws there for an exception.I'm running it with teams-ai version 1.5.0 and also in the main branch didn't see a newer version of this example. So for me unclear how to delete conversation state in Python version.
Reproduction Steps
The text was updated successfully, but these errors were encountered: