@xuda.io/ai_module 1.1.4179 → 1.1.4181
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 +5 -4
- 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,
|
|
@@ -3164,7 +3165,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
3164
3165
|
Output one option 3 words max.`,
|
|
3165
3166
|
model: 'gpt-5-nano',
|
|
3166
3167
|
metadata: { agent_id: db_doc._id, func: 'get_agent_assistant_name' },
|
|
3167
|
-
account_profile_info
|
|
3168
|
+
account_profile_info,
|
|
3168
3169
|
});
|
|
3169
3170
|
|
|
3170
3171
|
return ret.data;
|
|
@@ -3203,7 +3204,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
3203
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`,
|
|
3204
3205
|
model: 'gpt-5-nano',
|
|
3205
3206
|
metadata: { agent_id: db_doc._id, func: 'get_agent_industry' },
|
|
3206
|
-
account_profile_info
|
|
3207
|
+
account_profile_info,
|
|
3207
3208
|
});
|
|
3208
3209
|
|
|
3209
3210
|
return ret.data;
|
|
@@ -3287,7 +3288,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
3287
3288
|
`,
|
|
3288
3289
|
model: 'gpt-5-nano',
|
|
3289
3290
|
metadata: { agent_id: db_doc._id, func: 'get_agent_user_guide_fields' },
|
|
3290
|
-
|
|
3291
|
+
account_profile_info,
|
|
3291
3292
|
});
|
|
3292
3293
|
|
|
3293
3294
|
return ret.data;
|