@xuda.io/ai_module 1.1.3905 → 1.1.3907
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 +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3208,15 +3208,15 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
3208
3208
|
|
|
3209
3209
|
return ret.data;
|
|
3210
3210
|
};
|
|
3211
|
-
if (!db_doc.studio_meta.agent_assistant_name || fields_changed.name_changed || fields_changed.agent_instructions_changed) {
|
|
3211
|
+
if (!db_doc.studio_meta.agent_assistant_name || fields_changed.name_changed || fields_changed.agent_instructions_changed || fields_changed.all) {
|
|
3212
3212
|
db_doc.studio_meta.agent_assistant_name = await get_agent_assistant_name();
|
|
3213
3213
|
}
|
|
3214
|
-
if (!db_doc.agentConfig.agent_category || fields_changed.name_changed) {
|
|
3214
|
+
if (!db_doc.agentConfig.agent_category || fields_changed.name_changed || fields_changed.all) {
|
|
3215
3215
|
db_doc.agentConfig.agent_category = await get_agent_category();
|
|
3216
3216
|
db_doc.studio_meta.agent_category = db_doc.agentConfig.agent_category;
|
|
3217
3217
|
}
|
|
3218
3218
|
|
|
3219
|
-
if (!db_doc.agentConfig.agent_industry || fields_changed.name_changed) {
|
|
3219
|
+
if (!db_doc.agentConfig.agent_industry || fields_changed.name_changed || fields_changed.all) {
|
|
3220
3220
|
db_doc.agentConfig.agent_industry = await get_agent_industry();
|
|
3221
3221
|
db_doc.studio_meta.agent_industry = db_doc.agentConfig.agent_industry;
|
|
3222
3222
|
}
|