graphiti-core 0.3.5__py3-none-any.whl → 0.3.6__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 +3 -5
- graphiti_core/errors.py +8 -0
- {graphiti_core-0.3.5.dist-info → graphiti_core-0.3.6.dist-info}/METADATA +1 -1
- {graphiti_core-0.3.5.dist-info → graphiti_core-0.3.6.dist-info}/RECORD +6 -6
- {graphiti_core-0.3.5.dist-info → graphiti_core-0.3.6.dist-info}/LICENSE +0 -0
- {graphiti_core-0.3.5.dist-info → graphiti_core-0.3.6.dist-info}/WHEEL +0 -0
graphiti_core/edges.py
CHANGED
|
@@ -24,7 +24,7 @@ from uuid import uuid4
|
|
|
24
24
|
from neo4j import AsyncDriver
|
|
25
25
|
from pydantic import BaseModel, Field
|
|
26
26
|
|
|
27
|
-
from graphiti_core.errors import EdgeNotFoundError
|
|
27
|
+
from graphiti_core.errors import EdgeNotFoundError, GroupsEdgesNotFoundError
|
|
28
28
|
from graphiti_core.helpers import parse_db_date
|
|
29
29
|
from graphiti_core.llm_client.config import EMBEDDING_DIM
|
|
30
30
|
from graphiti_core.nodes import Node
|
|
@@ -147,10 +147,9 @@ class EpisodicEdge(Edge):
|
|
|
147
147
|
)
|
|
148
148
|
|
|
149
149
|
edges = [get_episodic_edge_from_record(record) for record in records]
|
|
150
|
-
uuids = [edge.uuid for edge in edges]
|
|
151
150
|
|
|
152
151
|
if len(edges) == 0:
|
|
153
|
-
raise
|
|
152
|
+
raise GroupsEdgesNotFoundError(group_ids)
|
|
154
153
|
return edges
|
|
155
154
|
|
|
156
155
|
|
|
@@ -293,10 +292,9 @@ class EntityEdge(Edge):
|
|
|
293
292
|
)
|
|
294
293
|
|
|
295
294
|
edges = [get_entity_edge_from_record(record) for record in records]
|
|
296
|
-
uuids = [edge.uuid for edge in edges]
|
|
297
295
|
|
|
298
296
|
if len(edges) == 0:
|
|
299
|
-
raise
|
|
297
|
+
raise GroupsEdgesNotFoundError(group_ids)
|
|
300
298
|
return edges
|
|
301
299
|
|
|
302
300
|
|
graphiti_core/errors.py
CHANGED
|
@@ -27,6 +27,14 @@ class EdgeNotFoundError(GraphitiError):
|
|
|
27
27
|
super().__init__(self.message)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
class GroupsEdgesNotFoundError(GraphitiError):
|
|
31
|
+
"""Raised when no edges are found for a list of group ids."""
|
|
32
|
+
|
|
33
|
+
def __init__(self, group_ids: list[str]):
|
|
34
|
+
self.message = f'no edges found for group ids {group_ids}'
|
|
35
|
+
super().__init__(self.message)
|
|
36
|
+
|
|
37
|
+
|
|
30
38
|
class NodeNotFoundError(GraphitiError):
|
|
31
39
|
"""Raised when a node is not found."""
|
|
32
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
graphiti_core/__init__.py,sha256=e5SWFkRiaUwfprYIeIgVIh7JDedNiloZvd3roU-0aDY,55
|
|
2
|
-
graphiti_core/edges.py,sha256=
|
|
3
|
-
graphiti_core/errors.py,sha256=
|
|
2
|
+
graphiti_core/edges.py,sha256=ePQfFHYXwYXqcTH_im9OjU74OH78f0fhCBo08aEXLoo,13471
|
|
3
|
+
graphiti_core/errors.py,sha256=iJrkk5sTgc2z16ABS6TziPylEabdBJcpk0x9KyBUmxs,1527
|
|
4
4
|
graphiti_core/graphiti.py,sha256=z6a4tCyDID_o6gloXDuUFmbL22bRiUE7A22JPYGVIyI,25947
|
|
5
5
|
graphiti_core/helpers.py,sha256=qQqZJBkc_z5f3x5axPfCKK_QHLRybvWNFb57WXNENfQ,769
|
|
6
6
|
graphiti_core/llm_client/__init__.py,sha256=PA80TSMeX-sUXITXEAxMDEt3gtfZgcJrGJUcyds1mSo,207
|
|
@@ -37,7 +37,7 @@ graphiti_core/utils/maintenance/graph_data_operations.py,sha256=zk-Ir7msJIbdQj-8
|
|
|
37
37
|
graphiti_core/utils/maintenance/node_operations.py,sha256=QAg4KQkSAOXx9QRaUp7t6DCaztZlzeOBC3__57FCs_o,9025
|
|
38
38
|
graphiti_core/utils/maintenance/temporal_operations.py,sha256=BzfGDm96w4HcUEsaWTHUBt5S8dNmDQL1eX6AuBL-XFM,8135
|
|
39
39
|
graphiti_core/utils/maintenance/utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
|
-
graphiti_core-0.3.
|
|
41
|
-
graphiti_core-0.3.
|
|
42
|
-
graphiti_core-0.3.
|
|
43
|
-
graphiti_core-0.3.
|
|
40
|
+
graphiti_core-0.3.6.dist-info/LICENSE,sha256=KCUwCyDXuVEgmDWkozHyniRyWjnWUWjkuDHfU6o3JlA,11325
|
|
41
|
+
graphiti_core-0.3.6.dist-info/METADATA,sha256=y5lM6qDP9MbjeNExduVvVaxyi7yP7vw7mxqsbOE7k5s,9395
|
|
42
|
+
graphiti_core-0.3.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
43
|
+
graphiti_core-0.3.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|