@xuda.io/ai_module 1.1.4850 → 1.1.4852
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 +5 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2710,7 +2710,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
2710
2710
|
${db_doc.agentConfig.agent_user_guide}
|
|
2711
2711
|
----------
|
|
2712
2712
|
Example:
|
|
2713
|
-
|
|
2713
|
+
{
|
|
2714
2714
|
enableTime: { label: "Enable Time Picker", type: "boolean", render: "segment", tooltip: "Enable or disable time selection in the picker.", defaultValue: () => false, options: [ { label: "Yes", value: true }, { label: "No", value: false }, ], },
|
|
2715
2715
|
dateFormat: { label: "Date Format", type: "string", render: "input", tooltip: "Specify the format for the selected date.", defaultValue: () => "Y-m-d", },
|
|
2716
2716
|
mode: { label: "Selection Mode", type: "string", render: "select", tooltip: "Choose between single, multiple, or range selection modes.", defaultValue: () => "single", options: [ { label: "Single", value: "single" }, { label: "Multiple", value: "multiple" }, { label: "Range", value: "range" }, ], },
|
|
@@ -2775,7 +2775,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
2775
2775
|
render: 'file',
|
|
2776
2776
|
},
|
|
2777
2777
|
|
|
2778
|
-
}
|
|
2778
|
+
}
|
|
2779
2779
|
|
|
2780
2780
|
`,
|
|
2781
2781
|
model: 'gpt-5-nano',
|
|
@@ -2798,6 +2798,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
2798
2798
|
|
|
2799
2799
|
|
|
2800
2800
|
use the field keys from the above ## fields object
|
|
2801
|
+
and create validation for each step
|
|
2801
2802
|
|
|
2802
2803
|
result example:
|
|
2803
2804
|
|
|
@@ -2806,7 +2807,8 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
2806
2807
|
step: 1,
|
|
2807
2808
|
title: "Core Loan Details",
|
|
2808
2809
|
description: "Enter the fundamental numbers for your loan.",
|
|
2809
|
-
fields: ["loan_amount", "down_payment", "loan_type"]
|
|
2810
|
+
fields: ["loan_amount", "down_payment", "loan_type"],
|
|
2811
|
+
isValid: (obj) => { return obj.loanAmount?.length ? true : false; }
|
|
2810
2812
|
},
|
|
2811
2813
|
{
|
|
2812
2814
|
step: 2,
|