make node record loading more robust (#363)
don't throw an error if certain pieces of the dict don't exist
This commit is contained in:
parent
45b15a06f2
commit
bad33f698e
2 changed files with 7 additions and 7 deletions
|
|
@ -550,12 +550,12 @@ def get_entity_node_from_record(record: Any) -> EntityNode:
|
|||
attributes=record['attributes'],
|
||||
)
|
||||
|
||||
del entity_node.attributes['uuid']
|
||||
del entity_node.attributes['name']
|
||||
del entity_node.attributes['group_id']
|
||||
del entity_node.attributes['name_embedding']
|
||||
del entity_node.attributes['summary']
|
||||
del entity_node.attributes['created_at']
|
||||
entity_node.attributes.pop('uuid', None)
|
||||
entity_node.attributes.pop('name', None)
|
||||
entity_node.attributes.pop('group_id', None)
|
||||
entity_node.attributes.pop('name_embedding', None)
|
||||
entity_node.attributes.pop('summary', None)
|
||||
entity_node.attributes.pop('created_at', None)
|
||||
|
||||
return entity_node
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[project]
|
||||
name = "graphiti-core"
|
||||
description = "A temporal graph building library"
|
||||
version = "0.10.0"
|
||||
version = "0.10.1"
|
||||
authors = [
|
||||
{ "name" = "Paul Paliychuk", "email" = "paul@getzep.com" },
|
||||
{ "name" = "Preston Rasmussen", "email" = "preston@getzep.com" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue