@xuda.io/ai_module 1.1.5251 → 1.1.5253

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 +10 -7
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11113,9 +11113,8 @@ export const get_chat_suggestions = async function (req) {
11113
11113
  //${conversation_item_doc.text}
11114
11114
  // Prompt Category: ${conversation_doc?.category_info?.category}
11115
11115
  // Input: ${conversation_item_doc.prompt || conversation_doc.prompt}
11116
- const chat_ret = await submit_chat_gpt_prompt({
11117
- uid,
11118
- prompt: `
11116
+
11117
+ const prompt = `
11119
11118
 
11120
11119
  Role: You are an expert Routing Assistant specialized in connecting users with the most relevant specialized AI agents.
11121
11120
 
@@ -11123,7 +11122,7 @@ export const get_chat_suggestions = async function (req) {
11123
11122
 
11124
11123
  Selection Strategy:
11125
11124
 
11126
- Format Compatibility: Analyze the ## Prompt Response. If it contains code, data structures, or specific document types (like HTML), prioritize agents whose agent_instructions or agent_name involve processing, transforming, or styling that specific format.
11125
+ Format Compatibility: Analyze the ## Prompt Response. If it contains code, data structures, or specific document types (like HTML), prioritize agents whose agent_instructions or agent_name or agent instructions involve processing, transforming, or styling that specific format.
11127
11126
 
11128
11127
  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).
11129
11128
 
@@ -11132,8 +11131,8 @@ export const get_chat_suggestions = async function (req) {
11132
11131
  Input Context:
11133
11132
 
11134
11133
  User Profile: ${JSON.stringify(account_doc.account_info)}
11135
-
11136
-
11134
+ Prompt Category: ${conversation_doc?.category_info?.category}
11135
+ Input: ${conversation_item_doc.prompt || conversation_doc.prompt}
11137
11136
 
11138
11137
  Current State:
11139
11138
 
@@ -11149,7 +11148,11 @@ export const get_chat_suggestions = async function (req) {
11149
11148
  ## output example:
11150
11149
  [{"type":"agent",agent_id:"392_agn_55cb328d2743",short_action:"Create article","agent_description":"create proffessional article..."}]
11151
11150
 
11152
- `,
11151
+ `;
11152
+
11153
+ const chat_ret = await submit_chat_gpt_prompt({
11154
+ uid,
11155
+ prompt,
11153
11156
  model: ai_model,
11154
11157
  response_format: AgentResponseSchema,
11155
11158
  metadata: { conversation_item_id, func: 'get_chat_suggestions' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5251",
3
+ "version": "1.1.5253",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",