@xuda.io/ai_module 1.1.4177 → 1.1.4180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +4 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3137,6 +3137,7 @@ export const create_ai_agent = async function (req, job_id, headers) {
|
|
|
3137
3137
|
agent_doc.studio_meta.agent_industry = agentConfig.agent_industry;
|
|
3138
3138
|
agent_doc.studio_meta.agent_tags = agentConfig.agent_tags;
|
|
3139
3139
|
agent_doc.studio_meta.agent_user_guide = agentConfig.agent_user_guide;
|
|
3140
|
+
agent_doc.studio_meta.account_profile_info = account_profile_info;
|
|
3140
3141
|
|
|
3141
3142
|
// const data = await db.insert(agent_doc);
|
|
3142
3143
|
|
|
@@ -3155,7 +3156,7 @@ export const create_ai_agent = async function (req, job_id, headers) {
|
|
|
3155
3156
|
|
|
3156
3157
|
export const update_ai_agent_properties = async function (doc, app_id, uid, fields_changed = {}) {
|
|
3157
3158
|
const db_doc = await db_module.get_app_couch_doc_native(app_id, doc._id);
|
|
3158
|
-
|
|
3159
|
+
const { account_profile_info } = doc.studio_meta;
|
|
3159
3160
|
const get_agent_assistant_name = async function () {
|
|
3160
3161
|
const ret = await submit_chat_gpt_prompt({
|
|
3161
3162
|
uid,
|
|
@@ -3189,6 +3190,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
3189
3190
|
Infrastructure & Cloud`,
|
|
3190
3191
|
model: 'gpt-5-nano',
|
|
3191
3192
|
metadata: { agent_id: db_doc._id, func: 'get_agent_category' },
|
|
3193
|
+
account_profile_info: db_doc.account_profile_info,
|
|
3192
3194
|
});
|
|
3193
3195
|
|
|
3194
3196
|
return ret.data;
|
|
@@ -3202,6 +3204,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
3202
3204
|
Artificial Intelligence,SaaS,Fintech,Healthtech,Edtech,Blockchain/Crypto,Cybersecurity,Gaming,Consulting,Marketing & Advertising,Human Resources,Legal Services,Real Estate,E-commerce,Retail,Fashion & Apparel,Consumer Goods,Healthcare,Medical,Pharmaceutical,Banking,Insurance,Investment,Manufacturing,Logistics & Supply Chain,Construction,Energy,Media,Entertainment,Sports,Education,Travel & Hospitality,Food & Beverage,Non-Profit,Government,Agriculture,Automotive,Telecommunications`,
|
|
3203
3205
|
model: 'gpt-5-nano',
|
|
3204
3206
|
metadata: { agent_id: db_doc._id, func: 'get_agent_industry' },
|
|
3207
|
+
account_profile_info: db_doc.account_profile_info,
|
|
3205
3208
|
});
|
|
3206
3209
|
|
|
3207
3210
|
return ret.data;
|