@xuda.io/ai_module 1.1.4881 → 1.1.4883
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
|
@@ -2719,7 +2719,7 @@ export const update_ai_agent_properties = async function (doc, app_id, uid, fiel
|
|
|
2719
2719
|
select_chip
|
|
2720
2720
|
segment
|
|
2721
2721
|
date
|
|
2722
|
-
file
|
|
2722
|
+
file (supports only type = array)
|
|
2723
2723
|
checkbox
|
|
2724
2724
|
textarea
|
|
2725
2725
|
input
|
|
@@ -3393,7 +3393,7 @@ function getFirstNWords(text, n = 10) {
|
|
|
3393
3393
|
|
|
3394
3394
|
export const create_conversation = async function (req, job_id, headers) {
|
|
3395
3395
|
const { profile_id, uid, prompt, perform_ai_execution = true, email_id, email_direction = 'out', from_mailbox, date_created } = req;
|
|
3396
|
-
let { reference_type, reference_id = '', conversation_type } = req;
|
|
3396
|
+
let { reference_type, reference_id = '', conversation_type, email_recipient_type } = req;
|
|
3397
3397
|
|
|
3398
3398
|
const account_profile_info = await account_module.get_active_account_profile_info(uid, profile_id);
|
|
3399
3399
|
const { account_profile_obj } = account_profile_info;
|
|
@@ -3443,6 +3443,7 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
3443
3443
|
rtl: _common.detectRTL(prompt),
|
|
3444
3444
|
process_stat: perform_ai_execution ? 'full' : 'partial',
|
|
3445
3445
|
from_mailbox,
|
|
3446
|
+
email_recipient_type,
|
|
3446
3447
|
};
|
|
3447
3448
|
const save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_doc);
|
|
3448
3449
|
|