@xuda.io/ai_module 1.1.5242 → 1.1.5243

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.
Files changed (2) hide show
  1. package/index.mjs +6 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11047,8 +11047,8 @@ export const get_chat_suggestions = async function (req) {
11047
11047
  // auto agent mode
11048
11048
  const ai_agents_ret = await get_user_ai_agents(uid);
11049
11049
  for (const doc of ai_agents_ret.docs) {
11050
- if (doc._id === conversation_item_doc.ai_agent_id) continue; //exclude the current agent from list
11051
- if (exclude_agents.includes(doc._id)) continue;
11050
+ // if (doc._id === conversation_item_doc.ai_agent_id) continue; //exclude the current agent from list
11051
+ // if (exclude_agents.includes(doc._id)) continue;
11052
11052
  ai_agents.push(doc._id);
11053
11053
  }
11054
11054
  }
@@ -11071,6 +11071,10 @@ export const get_chat_suggestions = async function (req) {
11071
11071
  ai_agent_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, ai_agent_doc.studio_meta.share_item_id);
11072
11072
  ai_agent_doc.reference_doc = reference_doc;
11073
11073
  }
11074
+
11075
+ if (agent_id === conversation_item_doc.ai_agent_id) continue; //exclude the current agent from list
11076
+ if (exclude_agents.includes(agent_id)) continue;
11077
+
11074
11078
  let skip = false;
11075
11079
  for (const [key, val] of Object.entries(ai_agent_doc?.agentConfig?.agent_tools || [])) {
11076
11080
  if (['web_search', 'table', 'file_search'].includes(val.type)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5242",
3
+ "version": "1.1.5243",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",