@xuda.io/ai_module 1.1.3884 → 1.1.3886
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 +26 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3123,11 +3123,32 @@ export const update_ai_agent_properties = async function (doc, app_id, uid) {
|
|
|
3123
3123
|
const get_agent_user_guide_fields = async function () {
|
|
3124
3124
|
const ret = await submit_chat_gpt_prompt({
|
|
3125
3125
|
uid,
|
|
3126
|
-
prompt: `
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3126
|
+
prompt: `
|
|
3127
|
+
create structured object like the example below for the the following prompt :
|
|
3128
|
+
${db_doc.agentConfig.agent_user_guide}
|
|
3129
|
+
----------
|
|
3130
|
+
{
|
|
3131
|
+
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
|
+
dateFormat: { label: "Date Format", type: "string", render: "input", tooltip: "Specify the format for the selected date.", defaultValue: () => "Y-m-d", },
|
|
3133
|
+
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" }, ], },
|
|
3134
|
+
disable: { label: "Disable Specific Dates", type: "array", tooltip: "Provide an array of dates to disable.", render: "chips", defaultValue: () => [], },
|
|
3135
|
+
fullcalendar_header: {
|
|
3136
|
+
label: "Header Toolbar",
|
|
3137
|
+
type: "object",
|
|
3138
|
+
render: "editor",
|
|
3139
|
+
render_params: { language: "json" },
|
|
3140
|
+
tooltip:
|
|
3141
|
+
"Customize the header toolbar with navigation and view controls.",
|
|
3142
|
+
defaultValue: () => `{
|
|
3143
|
+
"left": "prev,next today",
|
|
3144
|
+
"center": "title",
|
|
3145
|
+
"right": "dayGridMonth,timeGridWeek,timeGridDay"
|
|
3146
|
+
}`,
|
|
3147
|
+
},
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
};
|
|
3151
|
+
|
|
3131
3152
|
`,
|
|
3132
3153
|
model: 'gpt-5-nano',
|
|
3133
3154
|
metadata: { agent_id: db_doc._id, func: 'get_agent_user_guide' },
|