@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.
Files changed (2) hide show
  1. package/index.mjs +26 -5
  2. 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
- create structured object like the example below for the the following prompt : Required Information: Principal Amount (P) - The initial money you invest or borrow Example: $1,000, ₹50,000, €5,000 Annual Interest Rate (R) - The yearly interest percentage Example: 5% (enter as 5, not 0.05) Time Period (T) - How long the money is invested/borrowed In Years: Example: 3 years In Months: Example: 18 months Select the appropriate time unit from the dropdown ---------- const properties = { 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 }, ], }, dateFormat: { label: "Date Format", type: "string", render: "input", tooltip: "Specify the format for the selected date.", defaultValue: () => "Y-m-d", }, altInput: { label: "Alternative Input", type: "boolean", render: "segment", tooltip: "Enable an alternative input field with custom formatting.", defaultValue: () => false, options: [ { label: "Yes", value: true }, { label: "No", value: false }, ], }, altFormat: { label: "Alternative Format", type: "string", render: "input", tooltip: "Define the format for the alternative input field.", defaultValue: () => "F j, Y", }, minDate: { label: "Minimum Date", type: "string", render: "input", tooltip: "Set the earliest selectable date.", defaultValue: () => "today", }, maxDate: { label: "Maximum Date", type: "string", render: "input", tooltip: "Set the latest selectable date.", defaultValue: () => "", }, 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" }, ], }, locale: { label: "Locale", type: "string", render: "select", tooltip: "Set the language for the picker.", defaultValue: () => "en", options: [ { label: "English", value: "en" }, { label: "Spanish", value: "es" }, { label: "French", value: "fr" }, ], }, inline: { label: "Inline Calendar", type: "boolean", render: "segment", tooltip: "Display the calendar inline rather than in a dropdown.", defaultValue: () => false, options: [ { label: "Yes", value: true }, { label: "No", value: false }, ], }, weekNumbers: { label: "Show Week Numbers", type: "boolean", render: "segment", tooltip: "Display week numbers in the calendar view.", defaultValue: () => false, options: [ { label: "Yes", value: true }, { label: "No", value: false }, ], }, disable: { label: "Disable Specific Dates", type: "array", tooltip: "Provide an array of dates to disable.", render: "chips", defaultValue: () => [], }, outputBindFormat: { label: "Output bind format", type: "string", render: "select", tooltip: "Choose between Date, or Value to set how the bind output will be set.", defaultValue: () => "date", options: [ { label: "Date object", value: "date" }, { label: "Date value", value: "value" }, ], }, };
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' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3884",
3
+ "version": "1.1.3886",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",