@xuda.io/ai_module 1.1.3894 → 1.1.3896
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2688,6 +2688,9 @@ export const update_ai_agent = async function (req, job_id, headers) {
|
|
|
2688
2688
|
// agent_doc.studio_meta.agent_image = agentConfig.agent_image;
|
|
2689
2689
|
|
|
2690
2690
|
const name_changed = agentConfig.agent_name !== agent_doc.properties.menuName;
|
|
2691
|
+
const agent_user_guide_changed = agentConfig.agent_user_guide !== agent_doc.studio_meta.agent_user_guide;
|
|
2692
|
+
const agent_category_changed = agentConfig.agent_category !== agent_doc.studio_meta.agent_category;
|
|
2693
|
+
const agent_subcategory_changed = agentConfig.agent_subcategory !== agent_doc.studio_meta.agent_subcategory;
|
|
2691
2694
|
|
|
2692
2695
|
agent_doc.properties.menuName = agentConfig.agent_name;
|
|
2693
2696
|
agent_doc.studio_meta.agent_category = agentConfig.agent_category;
|
|
@@ -3127,7 +3130,8 @@ export const update_ai_agent_properties = async function (doc, app_id, uid) {
|
|
|
3127
3130
|
create structured object like the example below for the the following prompt :
|
|
3128
3131
|
${db_doc.agentConfig.agent_user_guide}
|
|
3129
3132
|
----------
|
|
3130
|
-
|
|
3133
|
+
Example:
|
|
3134
|
+
"fields": {
|
|
3131
3135
|
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 }, ], },
|
|
3132
3136
|
dateFormat: { label: "Date Format", type: "string", render: "input", tooltip: "Specify the format for the selected date.", defaultValue: () => "Y-m-d", },
|
|
3133
3137
|
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" }, ], },
|