@xuda.io/ai_module 1.1.5130 → 1.1.5131
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.
- package/index.mjs +19 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -10900,18 +10900,31 @@ export const get_chat_suggestions = async function (uid, ai_agents, conversation
|
|
|
10900
10900
|
uid,
|
|
10901
10901
|
prompt: `
|
|
10902
10902
|
|
|
10903
|
-
Role: You are
|
|
10903
|
+
Role: You are an expert Routing Assistant specialized in connecting users with the most relevant specialized AI agents.
|
|
10904
10904
|
|
|
10905
|
-
Task:
|
|
10905
|
+
Task: Select exactly 5 agents from the ## Agent List that are best suited to act upon or refine the current conversation state.
|
|
10906
10906
|
|
|
10907
|
-
Selection
|
|
10908
|
-
|
|
10907
|
+
Selection Strategy:
|
|
10908
|
+
|
|
10909
|
+
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.
|
|
10910
|
+
|
|
10911
|
+
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).
|
|
10912
|
+
|
|
10913
|
+
Contextual Relevance: Balance the selection with the ## User Info and ## Prompt Category to ensure the agents match the user's industry and intent.
|
|
10914
|
+
|
|
10915
|
+
Input Context:
|
|
10909
10916
|
|
|
10910
10917
|
User Profile: ${JSON.stringify(account_doc.account_info)}
|
|
10911
10918
|
|
|
10912
|
-
|
|
10919
|
+
Prompt Category: ${conversation_doc?.category_info?.category}
|
|
10920
|
+
|
|
10921
|
+
Current State:
|
|
10922
|
+
|
|
10923
|
+
Input: ${conversation_item_doc.prompt || conversation_doc.prompt}
|
|
10924
|
+
|
|
10925
|
+
Output to Process: ${conversation_item_doc.text}
|
|
10913
10926
|
|
|
10914
|
-
|
|
10927
|
+
Agent Source: ${JSON.stringify(agents_docs)}
|
|
10915
10928
|
|
|
10916
10929
|
Output: > Return a JSON array of exactly 5 objects following this schema:
|
|
10917
10930
|
[{ "agent_id": "string", "short_action": "string", "agent_description": "string" }]
|