@xuda.io/ai_module 1.1.5237 → 1.1.5239

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 +4 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4203,6 +4203,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4203
4203
  };
4204
4204
 
4205
4205
  const render_output_suggestions = async function (response_conversation_item_id) {
4206
+ console.log(prompt_suggestions);
4207
+
4206
4208
  const ret = await get_chat_suggestions({ uid, ai_agents, conversation_item_id: response_conversation_item_id });
4207
4209
 
4208
4210
  if (ret && ret.code > -1) {
@@ -11071,12 +11073,13 @@ export const get_chat_suggestions = async function (req) {
11071
11073
  }
11072
11074
  let skip = false;
11073
11075
  for (const [key, val] of Object.entries(ai_agent_doc?.agentConfig?.agent_tools || [])) {
11074
- if (['web_search'].includes(val.type)) {
11076
+ if (['web_search', 'table', 'file_search'].includes(val.type)) {
11075
11077
  skip = true;
11076
11078
  break;
11077
11079
  }
11078
11080
  }
11079
11081
  if (skip) continue;
11082
+
11080
11083
  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 });
11081
11084
  } catch (err) {
11082
11085
  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.5237",
3
+ "version": "1.1.5239",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",