Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Conversation from Avatar to Bot #406

Closed
49 tasks done
Tracked by #402
Mookse opened this issue Oct 10, 2024 · 0 comments · Fixed by #419
Closed
49 tasks done
Tracked by #402

Migrate Conversation from Avatar to Bot #406

Mookse opened this issue Oct 10, 2024 · 0 comments · Fixed by #419
Assignees
Labels
bug Something isn't working member-avatar MyLife-provided Core Member Intelligence refactor refactoring of current code required functionality required for primary pre-alpha release to family and friends system-avatar MyLife Core Intelligence

Comments

@Mookse
Copy link
Member

Mookse commented Oct 10, 2024

Move Conversation to Bot

As architecture turned out, conversations (which could and should be brought into full objects or agents) are best utilized as BOT objects, certainly (usually, think Diary Bot) accessible to Member Avatar inspection, but not housed independently and disconnected in its general memory, as it is now in this.#conversations, a remnant of pre-thread coding

todo

  • discovery: given that we have 3 types of factories, and 2 types of avatars, 2 types of core, it might be that we store conversations differently, for instance, Q would need to have access to conversations, not bot (as bot cannot have single thread)
  • discovery: why use this.#conversations finding? can just use bot?
  • move all this.#conversations to class Q
  • align normal and overloaded chat() function in mylife-avatar.mjs
  • functions.mjs tailor to new mechanic
  • deprecate conversation.bot_id = botId and conversation.llm_id = bot_id in mylife-avatar.mjs
  • create BotAgent from mylife-factory.mjs
    • build class structure
    • init()
    • mBot move
    • class Bot
    • move mBotInstructions
    • move mGetAIFunctions from mylife-factory.mjs
    • move mGetGPTResources
    • move mCreateBotLLM
    • move mAI_openai
    • move mCreateBot -> mBotCreate
    • move updateBot
    • address challengeAccess
  • conversation.json updates (not yet ready for class - determine after Pilot review)
  • refactor: Conversation botId/bot_id
  • Incorporate runs in Conversation Object
    • run_id as comma-delimited string when executed successfully?
  • BotAgent functions
    • initial active bot = personal avatar
    • set active bot
    • route chats, allow routes to Bot/activeBot
    • chat() = create conversations on-initial demand with correct formatting to reside primarily inside of Bot instance
  • create BotAgent from mylife-avatar.mjs
    • this.#bots or #bots
    • #activeBotId
    • getGreeting and mGreeting
    • createBot
    • createConversation
    • chat() functionality using Bot class
    • mCallLLM -> current references should leverage #botAgent (may require numerous pipeline param additions)
      • obscure()
      • summarize()
      • mReliveMemoryNarration => liveMemory()
    • migrateBot
    • mMigrateChat
    • retireBot - becomes deleteBot()
    • retireChat
  • Test and Review
    • obscure()
    • summarize()
    • migrate chat
    • retire bot => changed to /bots/:bid DELETE method
    • Relive (all variants)
@Mookse Mookse changed the title Migrate Conversation Migrate Conversation from Avatar to Bot Oct 15, 2024
@Mookse Mookse self-assigned this Oct 16, 2024
@Mookse Mookse added bug Something isn't working system-avatar MyLife Core Intelligence required functionality required for primary pre-alpha release to family and friends refactor refactoring of current code member-avatar MyLife-provided Core Member Intelligence labels Oct 16, 2024
@Mookse Mookse moved this from Open to In Progress in MyLife Alpha-Talc Oct 16, 2024
@Mookse Mookse moved this from In Progress to In Development in MyLife Alpha-Talc Oct 16, 2024
@Mookse Mookse added this to the MyLife Alpha Pilot milestone Oct 16, 2024
Mookse added a commit that referenced this issue Oct 16, 2024
- Migrate Conversation from Avatar to Bot #406
- wip semi-stable
@Mookse Mookse mentioned this issue Oct 17, 2024
25 tasks
@Mookse Mookse pinned this issue Oct 23, 2024
This was referenced Oct 26, 2024
Mookse added a commit that referenced this issue Oct 26, 2024
* 382 version 0024 updates (#403)

* 20241008 @Mookse
- version update
- cosmetic

* 20241008 @Mookse
- migrateChat Functionality #405
- wip Conversations save correctly

* 20241009 @Mookse
- migrateChat Functionality #405
- wip

* 347 develop diary bot (#407)

* 20240917 @Mookse
- version change

* 20240917 @Mookse
- Reliving Memory is not showing copy of entered text in Scrapbook Chat Window #331
- backend

* 20240919 @Mookse
- minor intel mods

* 20240919 @Mookse
- Reliving Memory is not showing copy of entered text in Scrapbook Chat Window #331
- frontend

* 20240920 @Mookse
- diary bot instructions in MyLife
- Create Diary Bot MyLife Instructionset #368

* 20240924 @Mookse
- version change

* 20240924 @Mookse
- basic cleanup
- remove livingMemory chain
- add obscure route (wip, stable)

* 20240926 @Mookse
- Create Obscure Functionality #374
- Member version (complete [minus frontend])
- API version (wip, stable)

* 20240927 @Mookse
- typo

* 20240927 @Mookse
- Develop Diary Bot #347
- Create Obscure Functionality #374

* 20241001 @Mookse
- version 24

* 20241002 @Mookse
- diary container

* 20241002 @Mookse
- Diary Bot Cover Art #381
- HTML

* 20241002 @Mookse
- Diary Bot Cover Art #381
- bot containers

* 20241002 @Mookse
- Diary Bot Cover Art #381
- frontend assets

* 20241002 @Mookse
- Diary Bot Cover Art #381

* 20241003 @Mookse
- Write shadows #298

* 20241004 @Mookse
- cosmetic

* 20241004 @Mookse
- cosmetic

* 20241009 @Mookse
- Improve Memory Team with Diary Bot #398
- Diary Bot tools and functions

* 20241009 @Mookse
- Improve Memory Team with Diary Bot #398
- Optional Team Member

* 20241009 @Mookse
- cosmetic

* 20241009 @Mookse
- journaler intelligence update

* 20241009 @Mookse
- Improve Memory Team with Diary Bot #398
- Return of +bot dropdown button

* 20241009 @Mookse
- retire icons

* 20241009 @Mookse
- Improve Memory Team with Diary Bot #398
- migrateChat Functionality #405
- wip
- error with migrating chat after conversation

* 20241009 @Mookse
- cosmetic

* 20241010 @Mookse
- migrateChat Functionality #405
- frontend bot version HTML, CSS

* 20241010 @Mookse
- migrateChat Functionality #405
- version live display

* 20241010 @Mookse
- migrateChat Functionality #405
- bot selection updated

* 20241010 @Mookse
- migrateChat Functionality #405
- fix modular code deformation

* 20241010 @Mookse
- route `updateBotInstructions`

* 20241010 @Mookse
- migrateChat Functionality #405
- route requirement fixed for updateBotInstructions

* 20241013 @Mookse
- migrateChat Functionality #405
- generic fixes

* 20241013 @Mookse
- migrateChat Functionality #405
- bot_id in conversation should be guid only
- bot_name for dataset

* 20241013 @Mookse
- migrateChat Functionality #405
- bot_name fix

* 20241014 @Mookse
- chat input placeholder `undefined`

* 20241014 @Mookse
- session start seems to fire updateBot() with instructions
- huge error with starting conversation with Q and THEN logging in
  - solve required elimination of session property `thread_id` which was being leveraged to store separate threads for different browsers

* 20241015 @Mookse
- correct thumbs
- consistent name display for bot

* 20241015 @Mookse
- prune getBot()
- create thread on bot creation

* 20241015 @Mookse
- Migrate Conversation from Avatar to Bot #406
- wip semi-stable

* 20241022 @Mookse
- fix updateSummary

* 20241022 @Mookse
- fix updateSummary error

* 20241022 @Mookse
- wip broken

* 20241022 @Mookse
- fixed activeBot default

* 20241023 @Mookse
- `chat()`
- remove `shadowId` parameter
- remove Contribution
- wip unstable

* 20241024 @Mookse
- remove logs

* 20241024 @Mookse
- minor cleanup

* 20241024 @Mookse
- wip stable
- proto collectionsAgent
- RELIVE unstable

* 20241024 @Mookse
- relive memory
- wip unstable tutorial/experience

* 20241024 @Mookse
- cosmetic

* 20241024 @Mookse
- retireBot tested
- instructions and options fix
- globals.sanitize() update

* 20241025 @Mookse
- migrateChat() test

* 20241025 @Mookse
- summarize()

* 20241025 @Mookse
- updateBotInstructions

* 20241025 @Mookse
- removed version control update

* 20241025 @Mookse
- allows immediate homepage load

* 20241026 @Mookse
- display sequence login fix
- relive tweaks
- mCallLLM Avatar confirmation

* 20241026 @Mookse
- log cleanup

* 20241026 @Mookse
- mReliveMemoryNarration payload

* 20241026 @Mookse
- improved response rate

* 20241026 @Mookse
- strange bot idiot-proofing around entry `summary` and `content`
- cosmetic
@github-project-automation github-project-automation bot moved this from In Development to Done in MyLife Alpha-Talc Oct 26, 2024
@Mookse Mookse unpinned this issue Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working member-avatar MyLife-provided Core Member Intelligence refactor refactoring of current code required functionality required for primary pre-alpha release to family and friends system-avatar MyLife Core Intelligence
Projects
Status: Done
1 participant