dhisana 0.0.1.dev217__py3-none-any.whl → 0.0.1.dev218__py3-none-any.whl

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.
@@ -395,16 +395,6 @@ def fill_in_properties_with_preference(input_user_properties: dict, person_data:
395
395
  """Returns True if the value is None, empty string, or only whitespace."""
396
396
  return value is None or (isinstance(value, str) and not value.strip())
397
397
 
398
- # Email
399
- if is_empty(input_user_properties.get("email")):
400
- input_user_properties["email"] = person_data.get("email", "")
401
-
402
- # Phone
403
- if is_empty(input_user_properties.get("phone")):
404
- # person_data["contact"] might not be defined, so we chain get calls
405
- input_user_properties["phone"] = ((person_data.get("contact", {}) or {})
406
- .get("sanitized_phone", ""))
407
-
408
398
  # Full name
409
399
  # Because `person_data.get("name")` has precedence over input_user_properties,
410
400
  # we only update it if input_user_properties is empty/None for "full_name".
@@ -419,6 +409,16 @@ def fill_in_properties_with_preference(input_user_properties: dict, person_data:
419
409
  if is_empty(input_user_properties.get("last_name")) and person_data.get("last_name"):
420
410
  input_user_properties["last_name"] = person_data["last_name"]
421
411
 
412
+ # Email
413
+ if is_empty(input_user_properties.get("email")):
414
+ input_user_properties["email"] = person_data.get("email", "")
415
+
416
+ # Phone
417
+ if is_empty(input_user_properties.get("phone")):
418
+ # person_data["contact"] might not be defined, so we chain get calls
419
+ input_user_properties["phone"] = ((person_data.get("contact", {}) or {})
420
+ .get("sanitized_phone", ""))
421
+
422
422
  # LinkedIn URL
423
423
  if is_empty(input_user_properties.get("user_linkedin_url")) and person_data.get("linkedin_url"):
424
424
  input_user_properties["user_linkedin_url"] = person_data["linkedin_url"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dhisana
3
- Version: 0.0.1.dev217
3
+ Version: 0.0.1.dev218
4
4
  Summary: A Python SDK for Dhisana AI Platform
5
5
  Home-page: https://github.com/dhisana-ai/dhisana-python-sdk
6
6
  Author: Admin
@@ -12,7 +12,7 @@ dhisana/ui/components.py,sha256=4NXrAyl9tx2wWwoVYyABO-EOGnreGMvql1AkXWajIIo,1431
12
12
  dhisana/utils/__init__.py,sha256=jv2YF__bseklT3OWEzlqJ5qE24c4aWd5F4r0TTjOrWQ,65
13
13
  dhisana/utils/add_mapping.py,sha256=oq_QNqag86DhgdwINBRRXNx7SOb8Q9M-V0QLP6pTzr8,13837
14
14
  dhisana/utils/agent_tools.py,sha256=pzBFvfhU4wfSB4zv1eiRzjmnteJnfhC5V32r_v1m38Y,2321
15
- dhisana/utils/apollo_tools.py,sha256=AHe0KJt88eytzh_a-8D6IUSUZxEU3ucBI2C1PpAY0tI,64136
15
+ dhisana/utils/apollo_tools.py,sha256=no-PwDVtPfOSDr6eZ-cN5C3C_Yf2SeElft5ksap24Gg,64136
16
16
  dhisana/utils/assistant_tool_tag.py,sha256=rYRl8ubLI7fUUIjg30XTefHBkFgRqNEVC12lF6U6Z-8,119
17
17
  dhisana/utils/built_with_api_tools.py,sha256=TFNGhnPb2vFdveVCpjiCvE1WKe_eK95UPpR0Ha5NgMQ,10260
18
18
  dhisana/utils/cache_output_tools.py,sha256=sSAruvUZn-WAJQ0lB9T1QjSmkm-_14AuxC9xKmcCQ0k,3428
@@ -92,8 +92,8 @@ dhisana/workflow/agent.py,sha256=esv7_i_XuMkV2j1nz_UlsHov_m6X5WZZiZm_tG4OBHU,565
92
92
  dhisana/workflow/flow.py,sha256=xWE3qQbM7j2B3FH8XnY3zOL_QXX4LbTW4ArndnEYJE0,1638
93
93
  dhisana/workflow/task.py,sha256=HlWz9mtrwLYByoSnePOemBUBrMEcj7KbgNjEE1oF5wo,1830
94
94
  dhisana/workflow/test.py,sha256=kwW8jWqSBNcRmoyaxlTuZCMOpGJpTbJQgHI7gSjwdzM,3399
95
- dhisana-0.0.1.dev217.dist-info/METADATA,sha256=14YRpC7MaMjhfo_4AsJ3QL9K4ny7sY76AdNTrGzHtaA,1190
96
- dhisana-0.0.1.dev217.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
97
- dhisana-0.0.1.dev217.dist-info/entry_points.txt,sha256=jujxteZmNI9EkEaK-pOCoWuBujU8TCevdkfl9ZcKHek,49
98
- dhisana-0.0.1.dev217.dist-info/top_level.txt,sha256=NETTHt6YifG_P7XtRHbQiXZlgSFk9Qh9aR-ng1XTf4s,8
99
- dhisana-0.0.1.dev217.dist-info/RECORD,,
95
+ dhisana-0.0.1.dev218.dist-info/METADATA,sha256=mF4K1TD6zfcNFZCXN1-YvFesMEKFO4txQyBOmmRb_v4,1190
96
+ dhisana-0.0.1.dev218.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
97
+ dhisana-0.0.1.dev218.dist-info/entry_points.txt,sha256=jujxteZmNI9EkEaK-pOCoWuBujU8TCevdkfl9ZcKHek,49
98
+ dhisana-0.0.1.dev218.dist-info/top_level.txt,sha256=NETTHt6YifG_P7XtRHbQiXZlgSFk9Qh9aR-ng1XTf4s,8
99
+ dhisana-0.0.1.dev218.dist-info/RECORD,,