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
What is the best way to manage the state machine within a chatgpt based application? My app apart from being general purpose conversational application, need is some specific cases generate some strictly defined output. I'm wondering how can I detect that the state should be changed?
Example:
Let's say we're building a chatbot that can play text games (like tic-tac-toe). Interaction with this bot starts with normal conversation, then when user wants to play this game, state is changed from CONVERSATIONAL_MODE to GAME_MODE. Being in GAME_MODE, the bot can only generate a tic-tac-toe board and nothing else until the game ends or the user explicitly tells the bot to stop.
So there are two problems to solve here:
How to detect when to change state
How to enforce certain behaviour of the chatbot when it is in a certain state? How to add a system message to the chat history?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the best way to manage the state machine within a chatgpt based application? My app apart from being general purpose conversational application, need is some specific cases generate some strictly defined output. I'm wondering how can I detect that the state should be changed?
Example:
Let's say we're building a chatbot that can play text games (like tic-tac-toe). Interaction with this bot starts with normal conversation, then when user wants to play this game, state is changed from CONVERSATIONAL_MODE to GAME_MODE. Being in GAME_MODE, the bot can only generate a tic-tac-toe board and nothing else until the game ends or the user explicitly tells the bot to stop.
So there are two problems to solve here:
Beta Was this translation helpful? Give feedback.
All reactions