@xuda.io/ai_module 1.1.5270 → 1.1.5272

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11040,8 +11040,8 @@ export const open_ai_alive_check = async function () {};
11040
11040
 
11041
11041
  export const get_chat_suggestions = async function (req) {
11042
11042
  //type = 'chat prompt'
11043
- const { type = 'chat response', uid, conversation_item_id, no_of_suggestions = 3, ai_model = _conf.default_ai_model, context, exclude_agents = [] } = req;
11044
- let { ai_agents = [] } = req;
11043
+ const { type = 'chat response', uid, conversation_item_id, no_of_suggestions = 3, ai_model = _conf.default_ai_model, context } = req;
11044
+ let { ai_agents = [], exclude_agents = [] } = req;
11045
11045
 
11046
11046
  try {
11047
11047
  const account_profile_info = await get_active_account_profile_info(uid);
@@ -11137,7 +11137,7 @@ export const get_chat_suggestions = async function (req) {
11137
11137
  // Workflow Continuity: Choose agents that represent a logical "next step" in a development or content creation pipeline (e.g., if code was generated, suggest an agent that deploys, converts, or styles it).
11138
11138
  // Input: ${conversation_item_doc.prompt || conversation_doc.prompt}
11139
11139
  // Contextual Relevance: Balance the selection with the ## User Info and ## Prompt Category to ensure the agents match the user's industry and intent.
11140
- debugger;
11140
+
11141
11141
  const prompt = `
11142
11142
 
11143
11143
  Role: You are an expert Routing Assistant specialized in connecting users with the most relevant specialized AI agents.
@@ -11187,7 +11187,7 @@ export const get_chat_suggestions = async function (req) {
11187
11187
  return [];
11188
11188
  }
11189
11189
  };
11190
- debugger;
11190
+
11191
11191
  const agents_docs = await get_agents();
11192
11192
  let suggestions = [];
11193
11193
  if (agents_docs.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5270",
3
+ "version": "1.1.5272",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",