@xuda.io/ai_module 1.1.3893 → 1.1.3895
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3127,7 +3127,8 @@ export const update_ai_agent_properties = async function (doc, app_id, uid) {
|
|
|
3127
3127
|
create structured object like the example below for the the following prompt :
|
|
3128
3128
|
${db_doc.agentConfig.agent_user_guide}
|
|
3129
3129
|
----------
|
|
3130
|
-
|
|
3130
|
+
Example:
|
|
3131
|
+
"fields": {
|
|
3131
3132
|
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
3133
|
dateFormat: { label: "Date Format", type: "string", render: "input", tooltip: "Specify the format for the selected date.", defaultValue: () => "Y-m-d", },
|
|
3133
3134
|
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" }, ], },
|
|
@@ -3197,7 +3198,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid) {
|
|
|
3197
3198
|
`,
|
|
3198
3199
|
model: 'gpt-5-nano',
|
|
3199
3200
|
metadata: { agent_id: db_doc._id, func: 'get_agent_user_guide_fields' },
|
|
3200
|
-
response_format: z.object({}),
|
|
3201
|
+
// response_format: z.object({}),
|
|
3201
3202
|
});
|
|
3202
3203
|
|
|
3203
3204
|
return ret.data;
|