@xuda.io/ai_module 1.1.5236 → 1.1.5238

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 +5 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11071,7 +11071,12 @@ export const get_chat_suggestions = async function (req) {
11071
11071
  }
11072
11072
  let skip = false;
11073
11073
  for (const [key, val] of Object.entries(ai_agent_doc?.agentConfig?.agent_tools || [])) {
11074
+ if (['web_search', 'table', 'file_search'].includes(val.type)) {
11075
+ skip = true;
11076
+ break;
11077
+ }
11074
11078
  }
11079
+ if (skip) continue;
11075
11080
 
11076
11081
  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 });
11077
11082
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5236",
3
+ "version": "1.1.5238",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",