@xuda.io/ai_module 1.1.4686 → 1.1.4688
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 +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1978,7 +1978,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1978
1978
|
|
|
1979
1979
|
doc.privilege = doc.uid === uid || doc?.account_profile_info?.uid === uid;
|
|
1980
1980
|
|
|
1981
|
-
if (reference_id) {
|
|
1981
|
+
if (reference_id && doc.reference_type === 'contact') {
|
|
1982
1982
|
// only valid for contacts conversation
|
|
1983
1983
|
doc.background = get_conversation_background(doc);
|
|
1984
1984
|
}
|
|
@@ -9649,9 +9649,9 @@ export const get_person_info = async function (uid, name, email, account_profile
|
|
|
9649
9649
|
person_preferred_name: z.string().optional().nullable().describe('Preferred/nickname if different'),
|
|
9650
9650
|
|
|
9651
9651
|
// Demographic Information
|
|
9652
|
-
person_age: z.union([z.number().int().min(18).max(100), z.string().describe("Age range or 'unknown'")]).describe('Estimated age or range'),
|
|
9653
|
-
person_gender: z.enum(['male', 'female', 'non-binary', 'unknown']).describe('Gender based on
|
|
9654
|
-
person_nationality: z.string().describe('Country of origin/nationality (2-letter ISO code)'),
|
|
9652
|
+
person_age: z.union([z.number().int().min(18).max(100), z.string().describe("Age range or 'unknown'")]).describe('find age base on the name Estimated age or range'),
|
|
9653
|
+
person_gender: z.enum(['male', 'female', 'non-binary', 'unknown']).describe('find Gender based on the name'),
|
|
9654
|
+
person_nationality: z.string().describe('find nationality based on the name Country of origin/nationality (2-letter ISO code)'),
|
|
9655
9655
|
|
|
9656
9656
|
// Professional Information
|
|
9657
9657
|
person_title: z.string().describe('Professional title/role'),
|