@xuda.io/ai_module 1.1.5234 → 1.1.5235

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11091,7 +11091,7 @@ export const get_chat_suggestions = async function (req) {
11091
11091
 
11092
11092
  // Define the response format as a fixed-length array of 5
11093
11093
  const AgentResponseSchema = z.object({
11094
- agents: z.array(AgentItemSchema).length(no_of_suggestions),
11094
+ agents: z.array(AgentSchema).max(no_of_suggestions),
11095
11095
  });
11096
11096
  //${conversation_item_doc.text}
11097
11097
  const chat_ret = await submit_chat_gpt_prompt({
@@ -11100,7 +11100,7 @@ export const get_chat_suggestions = async function (req) {
11100
11100
 
11101
11101
  Role: You are an expert Routing Assistant specialized in connecting users with the most relevant specialized AI agents.
11102
11102
 
11103
- Task: Select exactly ${no_of_suggestions} agents from the ## Agent List that are best suited to act upon or refine the current conversation state.
11103
+ Task: Select maximum ${no_of_suggestions} agents from the ## Agent List that are best suited to act upon or refine the current conversation state.
11104
11104
 
11105
11105
  Selection Strategy:
11106
11106
 
@@ -11124,7 +11124,7 @@ export const get_chat_suggestions = async function (req) {
11124
11124
 
11125
11125
  Agent Source: ${JSON.stringify(agents_docs)}
11126
11126
 
11127
- Output: > Return a JSON array of exactly ${no_of_suggestions} objects following this schema:
11127
+ Output: > Return a JSON array of maximum ${no_of_suggestions} objects following this schema:
11128
11128
  [{ "type":"string","agent_id": "string", "short_action": "string", "agent_description": "string" }]
11129
11129
 
11130
11130
  ## output example:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5234",
3
+ "version": "1.1.5235",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",