Skip to content

Commit a10c100

Browse files
authored
Azure deploy prod (#419)
* 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
1 parent 4ae707b commit a10c100

32 files changed

+2678
-1766
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ MyLife itself is an open-source project and, aside from LLM technologies at the
164164

165165
3. **Bot Functionality and Intelligence Management**
166166
- The application features a sophisticated bot system, capable of creating and managing different types of bots like personal assistants, biographers, health bots, etc.
167-
- OpenAI's GPT-3 model is integrated for generating responses and interacting with users through bots, as observed in the `class-avatar-functions.mjs` and `mylife-agent-factory.mjs` files.
167+
- OpenAI's GPT-3 model is integrated for generating responses and interacting with users through bots, as observed in the `mylife-avatar.mjs` and `mylife-factory.mjs` files.
168168
169169
4. **Session Management**
170170
- Managed through the `MylifeMemberSession` class, handling user sessions, consents, and alerts.

inc/js/agents/system/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22

33
The MyLife system incorporates a suite of specialized assistants, each designed to augment various aspects of the avatars within the platform. These assistants follow consistent coding protocols and are currently intended exclusively for integration with avatars, enhancing their functionality and interactivity.
44

5-
- **Asset-Assistant (File Handler)**: This assistant manages file-related operations, ensuring efficient handling, storage, and retrieval of files within the system. It acts as a central hub for file management tasks, streamlining the process of dealing with various file formats and data types.
5+
- **Asset-Agent**: (File Handler) This agent manages file-related operations, ensuring efficient handling, storage, and retrieval of files within the system. It acts as a central hub for file management tasks, streamlining the process of dealing with various file formats and data types.
66

7-
- **Evolution-Assistant**: Central to the avatar's developmental journey, the Evolution Assistant orchestrates the growth and maturation of avatars. It guides avatars through different phases of evolution, from creation to retirement, tailoring the development process according to the avatar's specific needs and contexts.
7+
- **Bot-Agent**: (Bot Handler) One of the most fundamental agents available, represents an object that manages the menagerie of Bots allocated to the current member's team. Also manages Teams.
8+
9+
- **Collections-Agent**: (Lists Handler) This agent manages collections for mass operations.
810

911
- **DOM-Assistant**: The Document Object Model (DOM) Assistant is pivotal in managing and manipulating the structure of data and documents within the system. It plays a key role in ensuring the data is organized and accessible in a way that is both efficient and intuitive.
1012

13+
- **Evolution-Assistant**: Central to the avatar's developmental journey, the Evolution Assistant orchestrates the growth and maturation of avatars. It guides avatars through different phases of evolution, from creation to retirement, tailoring the development process according to the avatar's specific needs and contexts.
14+
1115
- **Preferences-Assistant**: This assistant is dedicated to personalizing user experiences by managing and adapting to user preferences. It ensures that avatars can cater to individual tastes and requirements, making interactions more tailored and relevant.
1216

1317
- **Settings-Assistant**: Focused on configuration management, the Settings Assistant allows for the customization and adjustment of system settings. This ensures that avatars can operate within the parameters that best suit the user's needs and the system's operational environment.

inc/js/agents/system/asset-assistant.mjs renamed to inc/js/agents/system/asset-agent.mjs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
// imports
22
import fs from 'fs'
33
import mime from 'mime-types'
4-
import FormData from 'form-data'
5-
import axios from 'axios'
64
// module constants
7-
const { MYLIFE_EMBEDDING_SERVER_BEARER_TOKEN, MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT, MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT_ADMIN, MYLIFE_SERVER_MBR_ID: mylifeMbrId, } = process.env
8-
const bearerToken = MYLIFE_EMBEDDING_SERVER_BEARER_TOKEN
5+
const {
6+
MYLIFE_EMBEDDING_SERVER_BEARER_TOKEN: bearerToken,
7+
MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT,
8+
MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT_ADMIN,
9+
MYLIFE_SERVER_MBR_ID: mylifeMbrId,
10+
} = process.env
911
const fileSizeLimit = parseInt(MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT) || 1048576
1012
const fileSizeLimitAdmin = parseInt(MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT_ADMIN) || 10485760
11-
class oAIAssetAssistant {
13+
class AssetAgent {
1214
#globals
1315
#llm
1416
#mbr_id
1517
#response
1618
#vectorstoreId
1719
#vectorstoreFileList=[] // openai vectorstore versions
18-
constructor(mbr_id, globals, llm){
19-
this.#mbr_id = mbr_id
20-
this.#globals = globals
20+
constructor(factory, llm){
21+
this.#mbr_id = factory.mbr_id
22+
this.#globals = factory.globals
2123
this.#llm = llm
2224
}
2325
/**
2426
* Initializes the asset assistant by uploading the files to the vectorstore.
2527
* @param {string} vectorstoreId - The vectorstore id to upload the files into, if already exists (avatar would know).
26-
* @returns {Promise<oAIAssetAssistant>} - The initialized asset assistant instance.
28+
* @returns {Promise<AssetAgent>} - The initialized asset assistant instance.
2729
*/
2830
async init(vectorstoreId){
2931
if(!vectorstoreId?.length)
@@ -143,5 +145,5 @@ class oAIAssetAssistant {
143145
throw new Error(`Unsupported media type: ${ mimetype }. File type not allowed.`)
144146
}
145147
}
146-
// exports
147-
export default oAIAssetAssistant
148+
/* exports */
149+
export default AssetAgent

0 commit comments

Comments
 (0)