@xuda.io/ai_module 1.1.5424 → 1.1.5425

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 +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11191,7 +11191,7 @@ export const get_chat_suggestions = async function (req) {
11191
11191
  const conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_item_doc.conversation_id);
11192
11192
 
11193
11193
  if (conversation_item_doc.prompt_suggestions) {
11194
- exclude_agents = conversation_item_doc.prompt_suggestions.map((agent) => agent.agent_id);
11194
+ exclude_agents = [...new Set([...exclude_agents, ...conversation_item_doc.prompt_suggestions.map((agent) => agent.agent_id)])];
11195
11195
  }
11196
11196
 
11197
11197
  const get_agents = async function () {
@@ -11283,6 +11283,7 @@ export const get_chat_suggestions = async function (req) {
11283
11283
  3. Do not fill the list just to reach ${no_of_suggestions}.
11284
11284
  4. Only include an agent when its relevance_score is 70 or higher.
11285
11285
  5. Never invent agent ids. Use only ids from the ## Agent Source.
11286
+ 6. Never return any agent whose id appears in ## Excluded Agent IDs.
11286
11287
 
11287
11288
  Selection Strategy:
11288
11289
  1. Format Compatibility: Analyze the ## ${type} to Process. If it contains structured JSON, component definitions, or raw HTML, prioritize agents capable of transforming these formats (e.g., converting HTML/JSON to functional apps).
@@ -11297,6 +11298,7 @@ export const get_chat_suggestions = async function (req) {
11297
11298
 
11298
11299
  User Profile: ${JSON.stringify(account_doc.account_info)}
11299
11300
  Prompt Category: ${conversation_doc?.category_info?.category}
11301
+ Excluded Agent IDs: ${JSON.stringify(exclude_agents)}
11300
11302
 
11301
11303
  Agent Source: ${JSON.stringify(agents_docs)}
11302
11304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5424",
3
+ "version": "1.1.5425",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",