graphiti-core 0.21.0rc4__py3-none-any.whl → 0.21.0rc5__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.

Potentially problematic release.


This version of graphiti-core might be problematic. Click here for more details.

@@ -362,6 +362,10 @@ async def extract_attributes_from_node(
362
362
  'ensure_ascii': ensure_ascii,
363
363
  }
364
364
 
365
+ has_entity_attributes: bool = bool(
366
+ entity_type is not None and len(entity_type.model_fields) != 0
367
+ )
368
+
365
369
  llm_response = (
366
370
  (
367
371
  await llm_client.generate_response(
@@ -370,7 +374,7 @@ async def extract_attributes_from_node(
370
374
  model_size=ModelSize.small,
371
375
  )
372
376
  )
373
- if entity_type is not None
377
+ if has_entity_attributes
374
378
  else {}
375
379
  )
376
380
 
@@ -380,7 +384,7 @@ async def extract_attributes_from_node(
380
384
  model_size=ModelSize.small,
381
385
  )
382
386
 
383
- if entity_type is not None:
387
+ if has_entity_attributes and entity_type is not None:
384
388
  entity_type(**llm_response)
385
389
 
386
390
  node.summary = summary_response.get('summary', '')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphiti-core
3
- Version: 0.21.0rc4
3
+ Version: 0.21.0rc5
4
4
  Summary: A temporal graph building library
5
5
  Project-URL: Homepage, https://help.getzep.com/graphiti/graphiti/overview
6
6
  Project-URL: Repository, https://github.com/getzep/graphiti
@@ -70,11 +70,11 @@ graphiti_core/utils/maintenance/__init__.py,sha256=vW4H1KyapTl-OOz578uZABYcpND4w
70
70
  graphiti_core/utils/maintenance/community_operations.py,sha256=XMiokEemn96GlvjkOvbo9hIX04Fea3eVj408NHG5P4o,11042
71
71
  graphiti_core/utils/maintenance/edge_operations.py,sha256=sejfmlbXCiMFcLAKFsw70_FHY1lVX0tLpdk4UCzuU-4,21418
72
72
  graphiti_core/utils/maintenance/graph_data_operations.py,sha256=42icj3S_ELAJ-NK3jVS_rg_243dmnaZOyUitJj_uJ-M,6085
73
- graphiti_core/utils/maintenance/node_operations.py,sha256=r9ilkA01eq1z-nF8P_s1EXG6A6j15qmnfIqetnzqF50,13644
73
+ graphiti_core/utils/maintenance/node_operations.py,sha256=vKvJeg8SATM2axfUrWGIl4Dbhu35Sj_WPoxUHbabrs4,13786
74
74
  graphiti_core/utils/maintenance/temporal_operations.py,sha256=IIaVtShpVkOYe6haxz3a1x3v54-MzaEXG8VsxFUNeoY,3582
75
75
  graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
76
  graphiti_core/utils/ontology_utils/entity_types_utils.py,sha256=4eVgxLWY6Q8k9cRJ5pW59IYF--U4nXZsZIGOVb_yHfQ,1285
77
- graphiti_core-0.21.0rc4.dist-info/METADATA,sha256=W_bFyM6HCQ8N7-tFNyjGHuRafGDYj89EtQ4tngZPUKc,26933
78
- graphiti_core-0.21.0rc4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
- graphiti_core-0.21.0rc4.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
80
- graphiti_core-0.21.0rc4.dist-info/RECORD,,
77
+ graphiti_core-0.21.0rc5.dist-info/METADATA,sha256=4lD2ulRL9RzAlwQf-LAdSuOovBKeXxsQpr6EKwJClFI,26933
78
+ graphiti_core-0.21.0rc5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
+ graphiti_core-0.21.0rc5.dist-info/licenses/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
80
+ graphiti_core-0.21.0rc5.dist-info/RECORD,,