Hey all, I have a question in regards to how to "generate children from variable". Its a simple AI chat app where ai response is coming from an api call and users promp from bottom of the chat needs top be added to "userprmptHistory" in the above chat... how do I auot papulate these from both children from both ai and user prompts? Right now i have "pageState" variables, one for ai chat history and the other is for userprompt.
Very new to this, any help would be greatly appreciated. ๐