diff --git a/libs/checkpoint/langgraph/store/base/__init__.py b/libs/checkpoint/langgraph/store/base/__init__.py index b2ab49527..c635e43ed 100644 --- a/libs/checkpoint/langgraph/store/base/__init__.py +++ b/libs/checkpoint/langgraph/store/base/__init__.py @@ -80,13 +80,16 @@ class Item: def dict(self) -> dict: return { - "value": self.value, - "key": self.key, "namespace": list(self.namespace), + "key": self.key, + "value": self.value, "created_at": self.created_at.isoformat(), "updated_at": self.updated_at.isoformat(), } + def __repr__(self) -> str: + return f"Item({', '.join(f'{k}={v!r}' for k, v in self.dict().items())})" + class SearchItem(Item): """Represents an item returned from a search operation with additional metadata."""