graphiti-core 0.9.0__py3-none-any.whl → 0.9.1__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.

graphiti_core/edges.py CHANGED
@@ -143,9 +143,9 @@ class EpisodicEdge(Edge):
143
143
  driver: AsyncDriver,
144
144
  group_ids: list[str],
145
145
  limit: int | None = None,
146
- created_at: datetime | None = None,
146
+ uuid_cursor: str | None = None,
147
147
  ):
148
- cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''
148
+ cursor_query: LiteralString = 'AND e.uuid < $uuid' if uuid_cursor else ''
149
149
  limit_query: LiteralString = 'LIMIT $limit' if limit is not None else ''
150
150
 
151
151
  records, _, _ = await driver.execute_query(
@@ -165,7 +165,7 @@ class EpisodicEdge(Edge):
165
165
  """
166
166
  + limit_query,
167
167
  group_ids=group_ids,
168
- created_at=created_at,
168
+ uuid=uuid_cursor,
169
169
  limit=limit,
170
170
  database_=DEFAULT_DATABASE,
171
171
  routing_='r',
@@ -297,9 +297,9 @@ class EntityEdge(Edge):
297
297
  driver: AsyncDriver,
298
298
  group_ids: list[str],
299
299
  limit: int | None = None,
300
- created_at: datetime | None = None,
300
+ uuid_cursor: str | None = None,
301
301
  ):
302
- cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''
302
+ cursor_query: LiteralString = 'AND e.uuid < $uuid' if uuid_cursor else ''
303
303
  limit_query: LiteralString = 'LIMIT $limit' if limit is not None else ''
304
304
 
305
305
  records, _, _ = await driver.execute_query(
@@ -326,7 +326,7 @@ class EntityEdge(Edge):
326
326
  """
327
327
  + limit_query,
328
328
  group_ids=group_ids,
329
- created_at=created_at,
329
+ uuid=uuid_cursor,
330
330
  limit=limit,
331
331
  database_=DEFAULT_DATABASE,
332
332
  routing_='r',
@@ -430,9 +430,9 @@ class CommunityEdge(Edge):
430
430
  driver: AsyncDriver,
431
431
  group_ids: list[str],
432
432
  limit: int | None = None,
433
- created_at: datetime | None = None,
433
+ uuid_cursor: str | None = None,
434
434
  ):
435
- cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''
435
+ cursor_query: LiteralString = 'AND e.uuid < $uuid' if uuid_cursor else ''
436
436
  limit_query: LiteralString = 'LIMIT $limit' if limit is not None else ''
437
437
 
438
438
  records, _, _ = await driver.execute_query(
@@ -452,7 +452,7 @@ class CommunityEdge(Edge):
452
452
  """
453
453
  + limit_query,
454
454
  group_ids=group_ids,
455
- created_at=created_at,
455
+ uuid=uuid_cursor,
456
456
  limit=limit,
457
457
  database_=DEFAULT_DATABASE,
458
458
  routing_='r',
@@ -87,6 +87,8 @@ class OpenAIClient(LLMClient):
87
87
  else:
88
88
  self.client = client
89
89
 
90
+ self.max_tokens = max_tokens
91
+
90
92
  async def _generate_response(
91
93
  self,
92
94
  messages: list[Message],
graphiti_core/nodes.py CHANGED
@@ -216,9 +216,9 @@ class EpisodicNode(Node):
216
216
  driver: AsyncDriver,
217
217
  group_ids: list[str],
218
218
  limit: int | None = None,
219
- created_at: datetime | None = None,
219
+ uuid_cursor: str | None = None,
220
220
  ):
221
- cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''
221
+ cursor_query: LiteralString = 'AND e.uuid < $uuid' if uuid_cursor else ''
222
222
  limit_query: LiteralString = 'LIMIT $limit' if limit is not None else ''
223
223
 
224
224
  records, _, _ = await driver.execute_query(
@@ -241,7 +241,7 @@ class EpisodicNode(Node):
241
241
  """
242
242
  + limit_query,
243
243
  group_ids=group_ids,
244
- created_at=created_at,
244
+ uuid=uuid_cursor,
245
245
  limit=limit,
246
246
  database_=DEFAULT_DATABASE,
247
247
  routing_='r',
@@ -348,9 +348,9 @@ class EntityNode(Node):
348
348
  driver: AsyncDriver,
349
349
  group_ids: list[str],
350
350
  limit: int | None = None,
351
- created_at: datetime | None = None,
351
+ uuid_cursor: str | None = None,
352
352
  ):
353
- cursor_query: LiteralString = 'AND n.created_at < $created_at' if created_at else ''
353
+ cursor_query: LiteralString = 'AND n.uuid < $uuid' if uuid_cursor else ''
354
354
  limit_query: LiteralString = 'LIMIT $limit' if limit is not None else ''
355
355
 
356
356
  records, _, _ = await driver.execute_query(
@@ -372,7 +372,7 @@ class EntityNode(Node):
372
372
  """
373
373
  + limit_query,
374
374
  group_ids=group_ids,
375
- created_at=created_at,
375
+ uuid=uuid_cursor,
376
376
  limit=limit,
377
377
  database_=DEFAULT_DATABASE,
378
378
  routing_='r',
@@ -465,9 +465,9 @@ class CommunityNode(Node):
465
465
  driver: AsyncDriver,
466
466
  group_ids: list[str],
467
467
  limit: int | None = None,
468
- created_at: datetime | None = None,
468
+ uuid_cursor: str | None = None,
469
469
  ):
470
- cursor_query: LiteralString = 'AND n.created_at < $created_at' if created_at else ''
470
+ cursor_query: LiteralString = 'AND n.uuid < $uuid' if uuid_cursor else ''
471
471
  limit_query: LiteralString = 'LIMIT $limit' if limit is not None else ''
472
472
 
473
473
  records, _, _ = await driver.execute_query(
@@ -487,7 +487,7 @@ class CommunityNode(Node):
487
487
  """
488
488
  + limit_query,
489
489
  group_ids=group_ids,
490
- created_at=created_at,
490
+ uuid=uuid_cursor,
491
491
  limit=limit,
492
492
  database_=DEFAULT_DATABASE,
493
493
  routing_='r',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: graphiti-core
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: A temporal graph building library
5
5
  License: Apache-2.0
6
6
  Author: Paul Paliychuk
@@ -3,7 +3,7 @@ graphiti_core/cross_encoder/__init__.py,sha256=hry59vz21x-AtGZ0MJ7ugw0HTwJkXiddp
3
3
  graphiti_core/cross_encoder/bge_reranker_client.py,sha256=xgXZqB_qoaWQPjnmuf1ne38YPyhhvApySKcQDaHc9R4,1435
4
4
  graphiti_core/cross_encoder/client.py,sha256=KLsbfWKOEaAV3adFe3XZlAeb-gje9_sVKCVZTaJP3ac,1441
5
5
  graphiti_core/cross_encoder/openai_reranker_client.py,sha256=e-QCftckZ7GLQgJ-ijljw6vzVa6H417cZ3cISB70M5g,4377
6
- graphiti_core/edges.py,sha256=pVaQUmxUH7ZwETdaTaoBsmmd5MMis1v7L-0tHBzUuHc,15657
6
+ graphiti_core/edges.py,sha256=-D7Q6xXh9lut6Y0Yhzc9nVbWUYuoNCZzAhmkQfrCvzY,15597
7
7
  graphiti_core/embedder/__init__.py,sha256=EL564ZuE-DZjcuKNUK_exMn_XHXm2LdO9fzdXePVKL4,179
8
8
  graphiti_core/embedder/client.py,sha256=HKIlpPLnzFT81jurPkry6z8F8nxfZVfejdcfxHVUSFU,995
9
9
  graphiti_core/embedder/gemini.py,sha256=nE0XH8wYVGcPSO7DaNQ7kdsQLFSoH4FQOu2HMQUy2ss,2200
@@ -19,7 +19,7 @@ graphiti_core/llm_client/config.py,sha256=PxbjQWNjYQJKA7Pws28jJ0TsSZijOUds8GD9Yv
19
19
  graphiti_core/llm_client/errors.py,sha256=Vk0mj2SgNDg8E8p7m1UyUaerqLPNLCDKPVsMEnOSBdQ,1028
20
20
  graphiti_core/llm_client/gemini_client.py,sha256=uibmwppDgkEv60FsIhS-oakuafTUFgpu3qr5Kdcbhz4,7321
21
21
  graphiti_core/llm_client/groq_client.py,sha256=EesX0_iFOIvvIc3ql6Xa8EOm0dbGJ_o3VpqyDM83mKg,2498
22
- graphiti_core/llm_client/openai_client.py,sha256=_kLK35oSwhP20RQ9n20P8m5QxjmqqqmvU4UlOOhoLhw,6798
22
+ graphiti_core/llm_client/openai_client.py,sha256=uK6_tR9vOrcOo7zeZesClIBdNrFfkTWjoZlKSoeqtak,6836
23
23
  graphiti_core/llm_client/openai_generic_client.py,sha256=PtMtOaophf2T2-W_O7KitsQIN2C2pl7Qzs-ToYADurM,6648
24
24
  graphiti_core/llm_client/utils.py,sha256=zKpxXEbKa369m4W7RDEf-m56kH46V1Mx3RowcWZEWWs,1000
25
25
  graphiti_core/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -27,7 +27,7 @@ graphiti_core/models/edges/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
27
27
  graphiti_core/models/edges/edge_db_queries.py,sha256=2UoLkmazO-FJYqjc3g0LuL-pyjekzQxxed_XHVv_HZE,2671
28
28
  graphiti_core/models/nodes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  graphiti_core/models/nodes/node_db_queries.py,sha256=AQgRGVO-GgFWfLq1G6k8s86WItwpXruy3Mj4DBli-vM,2145
30
- graphiti_core/nodes.py,sha256=0lH8SOpnzTtNIvG4ScnJ3SeQudviCsZwsnM867kY1aI,16998
30
+ graphiti_core/nodes.py,sha256=L_sAXuS-Hbj1I_kmln_y3dBiu_UDMKu64oWTB3ecFss,16938
31
31
  graphiti_core/prompts/__init__.py,sha256=EA-x9xUki9l8wnu2l8ek_oNf75-do5tq5hVq7Zbv8Kw,101
32
32
  graphiti_core/prompts/dedupe_edges.py,sha256=EuX8ngeItBzrlMBOgeHrpExzxIFHD2aoDyaX1ZniF6I,3556
33
33
  graphiti_core/prompts/dedupe_nodes.py,sha256=1MHYuqi-eXPnTQd_jEcVKfljSC_F_r5SdVRm_dpdOiI,4645
@@ -58,7 +58,7 @@ graphiti_core/utils/maintenance/node_operations.py,sha256=gtc5EhEUqC57VPBMOLsRFs
58
58
  graphiti_core/utils/maintenance/temporal_operations.py,sha256=RdNtubCyYhOVrvcOIq2WppHls1Q-BEjtsN8r38l-Rtc,3691
59
59
  graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
60
  graphiti_core/utils/ontology_utils/entity_types_utils.py,sha256=QJX5cG0GSSNF_Mm_yrldr69wjVAbN_MxLhOSznz85Hk,1279
61
- graphiti_core-0.9.0.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
62
- graphiti_core-0.9.0.dist-info/METADATA,sha256=0jvS49ZVOwOiP-r5WmLVohmZaqs0ZnuwdbxQZzjTmr4,14064
63
- graphiti_core-0.9.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
64
- graphiti_core-0.9.0.dist-info/RECORD,,
61
+ graphiti_core-0.9.1.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
62
+ graphiti_core-0.9.1.dist-info/METADATA,sha256=9BDAF1CUprJ05Wz3DNd-NU0HVvSXYHo_aO89yZYu994,14064
63
+ graphiti_core-0.9.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
64
+ graphiti_core-0.9.1.dist-info/RECORD,,