@xuda.io/ai_module 1.1.5268 → 1.1.5270

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 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -11146,8 +11146,7 @@ export const get_chat_suggestions = async function (req) {
11146
11146
  Selection Strategy:
11147
11147
  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).
11148
11148
  2. Workflow Continuity: Focus on the "Lifecycle" of the project. If a UI or content has been drafted, the logical next step is conversion to a production-ready format, styling, or deployment.
11149
- 3. Explicit Intent: If the users original input was "make me a website" and the current state is a document definition, prioritize the agent that performs the final "Conversion" or "Building" step.
11150
- 4. Contextual Relevance: Match the user's business profile (Digital Marketing & Web Development) with technical agents that automate development tasks.
11149
+ 3. Contextual Relevance: Match the user's business profile (Digital Marketing & Web Development) with technical agents that automate development tasks.
11151
11150
 
11152
11151
 
11153
11152
  ## ${type}: ${context ? context : 'Use the previous response output as the content to analyze for next agents.'}
@@ -11174,11 +11173,10 @@ export const get_chat_suggestions = async function (req) {
11174
11173
  response_format: AgentResponseSchema,
11175
11174
  metadata: { conversation_item_id, func: 'get_chat_suggestions' },
11176
11175
  account_profile_info,
11177
-
11178
11176
  };
11179
11177
 
11180
- if(!context && conversation_item_doc?.conversation_item_reference_id){
11181
- opt.response_id= conversation_item_doc.conversation_item_reference_id,
11178
+ if (!context && conversation_item_doc?.conversation_item_reference_id) {
11179
+ opt.response_id = conversation_item_doc.conversation_item_reference_id;
11182
11180
  }
11183
11181
 
11184
11182
  const chat_ret = await submit_chat_gpt_prompt(opt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5268",
3
+ "version": "1.1.5270",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",