@xuda.io/ai_module 1.1.5235 → 1.1.5237

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 +8 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11069,6 +11069,14 @@ export const get_chat_suggestions = async function (req) {
11069
11069
  ai_agent_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, ai_agent_doc.studio_meta.share_item_id);
11070
11070
  ai_agent_doc.reference_doc = reference_doc;
11071
11071
  }
11072
+ let skip = false;
11073
+ for (const [key, val] of Object.entries(ai_agent_doc?.agentConfig?.agent_tools || [])) {
11074
+ if (['web_search'].includes(val.type)) {
11075
+ skip = true;
11076
+ break;
11077
+ }
11078
+ }
11079
+ if (skip) continue;
11072
11080
  list.push({ agent_id, agent_name: ai_agent_doc.properties.menuName, agent_category: ai_agent_doc.studio_meta.agent_category, agent_industry: ai_agent_doc.studio_meta.agent_industry, agent_instructions: ai_agent_doc?.agentConfig?.agent_instructions });
11073
11081
  } catch (err) {
11074
11082
  throw new Error(err.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5235",
3
+ "version": "1.1.5237",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",