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

402 version 0025 updates #418

Merged
merged 62 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b88af06
Merge pull request #232 from MyLife-Services/azure-deploy-prod
Mookse Jun 4, 2024
487ff9f
231 version 0010 updates (#239) (#240)
Mookse Jun 19, 2024
bfcec8c
version 0011 updates (#244)
Mookse Jun 27, 2024
8e51048
Version 0.0.11 (#243)
Mookse Jun 27, 2024
aeae2f2
Merge branch 'azure-deploy-prod' into base
Mookse Jul 1, 2024
1ff58bc
251 hotfix tutorial (#254) (#255)
Mookse Jul 6, 2024
f1e9d00
Version 0.0.13 PROD -> base (#259)
Mookse Jul 9, 2024
de50504
Azure deploy prod (#274)
Mookse Jul 16, 2024
98a800b
Merge branch 'azure-deploy-prod' into base
Mookse Jul 17, 2024
44398cf
Alpha Version 0.0.15
Mookse Jul 22, 2024
ba5cc17
283 version 0016 updates (#317) (#318)
Mookse Jul 30, 2024
113904f
20240819 @Mookse
Mookse Aug 19, 2024
c1db5e1
Azure deploy prod (#334)
Mookse Aug 19, 2024
91f1187
Merge branch 'azure-deploy-prod' into base
Mookse Aug 27, 2024
3ec5bbc
336 version 0019 updates (#345) (#346)
Mookse Sep 4, 2024
c4bc776
344 version 0020 updates (#352)
Mookse Sep 10, 2024
da371ca
Azure deploy prod Hotfix (#364)
Mookse Sep 16, 2024
21dfce3
Merge branch 'azure-deploy-prod' into base
Mookse Sep 17, 2024
60ee198
365 version 0022 updates (#371) (#373)
Mookse Sep 24, 2024
76c3261
Merge branch 'azure-deploy-prod' into base
Mookse Oct 1, 2024
4ae707b
382 version 0024 updates (#403) (#404)
Mookse Oct 8, 2024
0c1a570
20241008 @Mookse
Mookse Oct 8, 2024
f5cb292
20241008 @Mookse
Mookse Oct 8, 2024
944a9a9
20241009 @Mookse
Mookse Oct 9, 2024
cace397
347 develop diary bot (#407)
Mookse Oct 10, 2024
1a63823
20241009 @Mookse
Mookse Oct 10, 2024
612169a
20241010 @Mookse
Mookse Oct 11, 2024
a16a8ba
20241010 @Mookse
Mookse Oct 11, 2024
ca50a17
20241010 @Mookse
Mookse Oct 11, 2024
6f39b90
20241010 @Mookse
Mookse Oct 11, 2024
4680d8f
20241010 @Mookse
Mookse Oct 11, 2024
ffad103
20241010 @Mookse
Mookse Oct 11, 2024
eafb1b8
20241013 @Mookse
Mookse Oct 14, 2024
5bf472d
20241013 @Mookse
Mookse Oct 14, 2024
55b1388
20241013 @Mookse
Mookse Oct 14, 2024
e1c779b
20241014 @Mookse
Mookse Oct 14, 2024
edbb514
20241014 @Mookse
Mookse Oct 14, 2024
005b3d5
20241015 @Mookse
Mookse Oct 15, 2024
5c8fa65
20241015 @Mookse
Mookse Oct 16, 2024
81c825b
20241015 @Mookse
Mookse Oct 16, 2024
1659e76
20241022 @Mookse
Mookse Oct 22, 2024
54200a6
20241022 @Mookse
Mookse Oct 22, 2024
5cc9027
20241022 @Mookse
Mookse Oct 22, 2024
c7444ac
20241022 @Mookse
Mookse Oct 23, 2024
cf7400f
20241023 @Mookse
Mookse Oct 24, 2024
bc8b074
20241024 @Mookse
Mookse Oct 24, 2024
31d92da
20241024 @Mookse
Mookse Oct 24, 2024
e4fc877
20241024 @Mookse
Mookse Oct 25, 2024
6d19e79
20241024 @Mookse
Mookse Oct 25, 2024
6b95179
20241024 @Mookse
Mookse Oct 25, 2024
3983789
20241024 @Mookse
Mookse Oct 25, 2024
3657f8a
20241025 @Mookse
Mookse Oct 26, 2024
bcabf66
20241025 @Mookse
Mookse Oct 26, 2024
dc7b411
20241025 @Mookse
Mookse Oct 26, 2024
776897a
20241025 @Mookse
Mookse Oct 26, 2024
4fbd645
20241025 @Mookse
Mookse Oct 26, 2024
632f13d
20241025 @Mookse
Mookse Oct 26, 2024
3f09dd0
20241026 @Mookse
Mookse Oct 26, 2024
2ac3d05
20241026 @Mookse
Mookse Oct 26, 2024
a5a4e94
20241026 @Mookse
Mookse Oct 26, 2024
f6ee622
20241026 @Mookse
Mookse Oct 26, 2024
2ccda94
20241026 @Mookse
Mookse Oct 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ MyLife itself is an open-source project and, aside from LLM technologies at the

3. **Bot Functionality and Intelligence Management**
- The application features a sophisticated bot system, capable of creating and managing different types of bots like personal assistants, biographers, health bots, etc.
- 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.
- 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.

4. **Session Management**
- Managed through the `MylifeMemberSession` class, handling user sessions, consents, and alerts.
Expand Down
8 changes: 6 additions & 2 deletions inc/js/agents/system/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

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.

- **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.
- **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.

- **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.
- **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.

- **Collections-Agent**: (Lists Handler) This agent manages collections for mass operations.

- **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.

- **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.

- **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.

- **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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
// imports
import fs from 'fs'
import mime from 'mime-types'
import FormData from 'form-data'
import axios from 'axios'
// module constants
const { MYLIFE_EMBEDDING_SERVER_BEARER_TOKEN, MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT, MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT_ADMIN, MYLIFE_SERVER_MBR_ID: mylifeMbrId, } = process.env
const bearerToken = MYLIFE_EMBEDDING_SERVER_BEARER_TOKEN
const {
MYLIFE_EMBEDDING_SERVER_BEARER_TOKEN: bearerToken,
MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT,
MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT_ADMIN,
MYLIFE_SERVER_MBR_ID: mylifeMbrId,
} = process.env
const fileSizeLimit = parseInt(MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT) || 1048576
const fileSizeLimitAdmin = parseInt(MYLIFE_EMBEDDING_SERVER_FILESIZE_LIMIT_ADMIN) || 10485760
class oAIAssetAssistant {
class AssetAgent {
#globals
#llm
#mbr_id
#response
#vectorstoreId
#vectorstoreFileList=[] // openai vectorstore versions
constructor(mbr_id, globals, llm){
this.#mbr_id = mbr_id
this.#globals = globals
constructor(factory, llm){
this.#mbr_id = factory.mbr_id
this.#globals = factory.globals
this.#llm = llm
}
/**
* Initializes the asset assistant by uploading the files to the vectorstore.
* @param {string} vectorstoreId - The vectorstore id to upload the files into, if already exists (avatar would know).
* @returns {Promise<oAIAssetAssistant>} - The initialized asset assistant instance.
* @returns {Promise<AssetAgent>} - The initialized asset assistant instance.
*/
async init(vectorstoreId){
if(!vectorstoreId?.length)
Expand Down Expand Up @@ -143,5 +145,5 @@ class oAIAssetAssistant {
throw new Error(`Unsupported media type: ${ mimetype }. File type not allowed.`)
}
}
// exports
export default oAIAssetAssistant
/* exports */
export default AssetAgent
Loading