Build core infrastructure to include the GPT-assistant technology and the new SDK
[x] reconnect all patterns to gpt-assistant architecture
PASSED 20231125 @Mookse
[x] assign _factory to session not Member/MyLife
factory pointer can be overwritten when logged in? but yes, should be contained in ctx.session as there will not be multiple factories per member session
PASSED 20231126 @Mookse
[x] assign thread to session (logged in or otherwise)
thread acquisition should reside in _factory
PASSED 20231126 @Mookse
[x] store messages in Cosmos
as conversations, matched by ids to avatar, ergo, if one needs to retrieve conversations per avatar, just search for parent_id
when creating thread, create conversation in Cosmos, then add to that object via thread.id (but cosmos threadId)
Build core infrastructure to include the GPT-assistant technology and the new SDK