diff --git a/.fern/replay.lock b/.fern/replay.lock new file mode 100644 index 0000000..6be5ee4 --- /dev/null +++ b/.fern/replay.lock @@ -0,0 +1,16 @@ +# DO NOT EDIT MANUALLY - Managed by Fern Replay +version: "1.0" +generations: + - commit_sha: 36ef7a1c35b8b6f4614d1095dae12b8328832a89 + tree_hash: ff6c7f6dca046cfe71ff8d197ce03fd3f3cefccd + timestamp: 2026-07-28T21:28:05.428Z + cli_version: unknown + generator_versions: {} + - commit_sha: a7d57c567987a6cfead733b64cd20d025c4ea593 + tree_hash: 536ce8a8b7d3e46a6e3b82f36938c3518c6594e9 + timestamp: 2026-07-28T21:28:05.773Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 4.25.5 +current_generation: a7d57c567987a6cfead733b64cd20d025c4ea593 +patches: [] diff --git a/.fernignore b/.fernignore index ba9cbe2..789c94d 100644 --- a/.fernignore +++ b/.fernignore @@ -10,4 +10,7 @@ README.md .github Makefile .gitignore -LICENSE \ No newline at end of file +LICENSE +.fern/replay.lock +.fern/replay.yml +.gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..74928d6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.fern/replay.lock linguist-generated=true diff --git a/pyproject.toml b/pyproject.toml index b87cb91..e88b9e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "zep-cloud" -version = "3.25.0" +version = "3.26.0" [tool.poetry] name = "zep-cloud" -version = "3.25.0" +version = "3.26.0" description = "" readme = "README.md" authors = [] diff --git a/reference.md b/reference.md index da5c671..50ea65c 100644 --- a/reference.md +++ b/reference.md @@ -1666,14 +1666,6 @@ Nested objects and arrays are not allowed.
-**fact_uuid:** `typing.Optional[str]` — The uuid of the edge to add - -
-
- -
-
- **graph_id:** `typing.Optional[str]`
@@ -4951,7 +4943,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
@@ -5076,7 +5068,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
@@ -5908,7 +5900,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
@@ -6033,7 +6025,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
@@ -6541,7 +6533,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
@@ -6666,7 +6658,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
@@ -6862,7 +6854,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
@@ -6987,7 +6979,7 @@ of the previous page. Encodes the sort field, direction, and continuation positi
-**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at" or "uuid" (default "uuid"). +**order_by:** `typing.Optional[str]` — Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid").
diff --git a/src/zep_cloud/__init__.py b/src/zep_cloud/__init__.py index 5ab7c53..57aa7d2 100644 --- a/src/zep_cloud/__init__.py +++ b/src/zep_cloud/__init__.py @@ -8,6 +8,7 @@ AddThreadMessagesRequest, AddThreadMessagesResponse, AddTripleResponse, + AddedNode, ApiError, ApidataBatchAddItemRole, ApidataBatchAddItemType, @@ -101,6 +102,7 @@ "AddThreadMessagesRequest", "AddThreadMessagesResponse", "AddTripleResponse", + "AddedNode", "ApiError", "ApidataBatchAddItemRole", "ApidataBatchAddItemType", diff --git a/src/zep_cloud/core/client_wrapper.py b/src/zep_cloud/core/client_wrapper.py index 72f2295..acb66ce 100644 --- a/src/zep_cloud/core/client_wrapper.py +++ b/src/zep_cloud/core/client_wrapper.py @@ -22,10 +22,10 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "zep-cloud/3.25.0", + "User-Agent": "zep-cloud/3.26.0", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "3.25.0", + "X-Fern-SDK-Version": "3.26.0", **(self.get_custom_headers() or {}), } headers["Authorization"] = f"Api-Key {self.api_key}" diff --git a/src/zep_cloud/graph/client.py b/src/zep_cloud/graph/client.py index 2f6a567..ec9543e 100644 --- a/src/zep_cloud/graph/client.py +++ b/src/zep_cloud/graph/client.py @@ -430,7 +430,6 @@ def add_fact_triple( created_at: typing.Optional[str] = OMIT, edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, expired_at: typing.Optional[str] = OMIT, - fact_uuid: typing.Optional[str] = OMIT, graph_id: typing.Optional[str] = OMIT, invalid_at: typing.Optional[str] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, @@ -469,9 +468,6 @@ def add_fact_triple( expired_at : typing.Optional[str] The time (if any) at which the edge expires - fact_uuid : typing.Optional[str] - The uuid of the edge to add - graph_id : typing.Optional[str] invalid_at : typing.Optional[str] @@ -552,7 +548,6 @@ def add_fact_triple( created_at=created_at, edge_attributes=edge_attributes, expired_at=expired_at, - fact_uuid=fact_uuid, graph_id=graph_id, invalid_at=invalid_at, metadata=metadata, @@ -1564,7 +1559,6 @@ async def add_fact_triple( created_at: typing.Optional[str] = OMIT, edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, expired_at: typing.Optional[str] = OMIT, - fact_uuid: typing.Optional[str] = OMIT, graph_id: typing.Optional[str] = OMIT, invalid_at: typing.Optional[str] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, @@ -1603,9 +1597,6 @@ async def add_fact_triple( expired_at : typing.Optional[str] The time (if any) at which the edge expires - fact_uuid : typing.Optional[str] - The uuid of the edge to add - graph_id : typing.Optional[str] invalid_at : typing.Optional[str] @@ -1694,7 +1685,6 @@ async def main() -> None: created_at=created_at, edge_attributes=edge_attributes, expired_at=expired_at, - fact_uuid=fact_uuid, graph_id=graph_id, invalid_at=invalid_at, metadata=metadata, diff --git a/src/zep_cloud/graph/edge/client.py b/src/zep_cloud/graph/edge/client.py index bd7e6f9..2835015 100644 --- a/src/zep_cloud/graph/edge/client.py +++ b/src/zep_cloud/graph/edge/client.py @@ -62,7 +62,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -134,7 +134,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -353,7 +353,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -433,7 +433,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/graph/edge/raw_client.py b/src/zep_cloud/graph/edge/raw_client.py index 33f435d..4375c21 100644 --- a/src/zep_cloud/graph/edge/raw_client.py +++ b/src/zep_cloud/graph/edge/raw_client.py @@ -60,7 +60,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -166,7 +166,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -542,7 +542,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -648,7 +648,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/graph/node/client.py b/src/zep_cloud/graph/node/client.py index b086a05..71d531c 100644 --- a/src/zep_cloud/graph/node/client.py +++ b/src/zep_cloud/graph/node/client.py @@ -64,7 +64,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -136,7 +136,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -406,7 +406,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -486,7 +486,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/graph/node/raw_client.py b/src/zep_cloud/graph/node/raw_client.py index 45c6cf8..a86270d 100644 --- a/src/zep_cloud/graph/node/raw_client.py +++ b/src/zep_cloud/graph/node/raw_client.py @@ -62,7 +62,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -168,7 +168,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -664,7 +664,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -770,7 +770,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/graph/observation/client.py b/src/zep_cloud/graph/observation/client.py index c46ef49..cdd97fb 100644 --- a/src/zep_cloud/graph/observation/client.py +++ b/src/zep_cloud/graph/observation/client.py @@ -61,7 +61,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -133,7 +133,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -252,7 +252,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -332,7 +332,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/graph/observation/raw_client.py b/src/zep_cloud/graph/observation/raw_client.py index 72b18a5..b677dfa 100644 --- a/src/zep_cloud/graph/observation/raw_client.py +++ b/src/zep_cloud/graph/observation/raw_client.py @@ -59,7 +59,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -176,7 +176,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -372,7 +372,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -489,7 +489,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/graph/raw_client.py b/src/zep_cloud/graph/raw_client.py index a6e4f8a..9056b30 100644 --- a/src/zep_cloud/graph/raw_client.py +++ b/src/zep_cloud/graph/raw_client.py @@ -723,7 +723,6 @@ def add_fact_triple( created_at: typing.Optional[str] = OMIT, edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, expired_at: typing.Optional[str] = OMIT, - fact_uuid: typing.Optional[str] = OMIT, graph_id: typing.Optional[str] = OMIT, invalid_at: typing.Optional[str] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, @@ -762,9 +761,6 @@ def add_fact_triple( expired_at : typing.Optional[str] The time (if any) at which the edge expires - fact_uuid : typing.Optional[str] - The uuid of the edge to add - graph_id : typing.Optional[str] invalid_at : typing.Optional[str] @@ -836,7 +832,6 @@ def add_fact_triple( "expired_at": expired_at, "fact": fact, "fact_name": fact_name, - "fact_uuid": fact_uuid, "graph_id": graph_id, "invalid_at": invalid_at, "metadata": metadata, @@ -2532,7 +2527,6 @@ async def add_fact_triple( created_at: typing.Optional[str] = OMIT, edge_attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, expired_at: typing.Optional[str] = OMIT, - fact_uuid: typing.Optional[str] = OMIT, graph_id: typing.Optional[str] = OMIT, invalid_at: typing.Optional[str] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT, @@ -2571,9 +2565,6 @@ async def add_fact_triple( expired_at : typing.Optional[str] The time (if any) at which the edge expires - fact_uuid : typing.Optional[str] - The uuid of the edge to add - graph_id : typing.Optional[str] invalid_at : typing.Optional[str] @@ -2645,7 +2636,6 @@ async def add_fact_triple( "expired_at": expired_at, "fact": fact, "fact_name": fact_name, - "fact_uuid": fact_uuid, "graph_id": graph_id, "invalid_at": invalid_at, "metadata": metadata, diff --git a/src/zep_cloud/graph/thread_summary/client.py b/src/zep_cloud/graph/thread_summary/client.py index 3f6fd54..02b8db7 100644 --- a/src/zep_cloud/graph/thread_summary/client.py +++ b/src/zep_cloud/graph/thread_summary/client.py @@ -61,7 +61,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -133,7 +133,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -221,7 +221,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -301,7 +301,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/graph/thread_summary/raw_client.py b/src/zep_cloud/graph/thread_summary/raw_client.py index 2d041df..063a02f 100644 --- a/src/zep_cloud/graph/thread_summary/raw_client.py +++ b/src/zep_cloud/graph/thread_summary/raw_client.py @@ -59,7 +59,7 @@ def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -176,7 +176,7 @@ def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -298,7 +298,7 @@ async def get_by_graph_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. @@ -415,7 +415,7 @@ async def get_by_user_id( Maximum number of items to return order_by : typing.Optional[str] - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). uuid_cursor : typing.Optional[str] UUID based cursor, used for pagination. Should be the UUID of the last item in the previous page. diff --git a/src/zep_cloud/types/__init__.py b/src/zep_cloud/types/__init__.py index 331188b..4b786fd 100644 --- a/src/zep_cloud/types/__init__.py +++ b/src/zep_cloud/types/__init__.py @@ -7,6 +7,7 @@ from .add_thread_messages_request import AddThreadMessagesRequest from .add_thread_messages_response import AddThreadMessagesResponse from .add_triple_response import AddTripleResponse +from .added_node import AddedNode from .api_error import ApiError from .apidata_batch_add_item_role import ApidataBatchAddItemRole from .apidata_batch_add_item_type import ApidataBatchAddItemType @@ -94,6 +95,7 @@ "AddThreadMessagesRequest", "AddThreadMessagesResponse", "AddTripleResponse", + "AddedNode", "ApiError", "ApidataBatchAddItemRole", "ApidataBatchAddItemType", diff --git a/src/zep_cloud/types/add_node_item.py b/src/zep_cloud/types/add_node_item.py index f218035..c63ea10 100644 --- a/src/zep_cloud/types/add_node_item.py +++ b/src/zep_cloud/types/add_node_item.py @@ -3,9 +3,7 @@ import typing import pydantic -import typing_extensions from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from ..core.serialization import FieldMetadata class AddNodeItem(UniversalBaseModel): @@ -42,14 +40,6 @@ class AddNodeItem(UniversalBaseModel): A regional summary of the node. """ - uuid_: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="uuid")] = pydantic.Field(default=None) - """ - Optional caller-supplied node UUID. When it matches an existing node the - node is upserted; when well-formed but unknown the node is created with - this UUID; when absent the server assigns one. This is the node's only - identity/dedup key -- there is no name-based resolution. - """ - if IS_PYDANTIC_V2: model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 else: diff --git a/src/zep_cloud/types/add_nodes_response.py b/src/zep_cloud/types/add_nodes_response.py index 0f94650..5cc6db7 100644 --- a/src/zep_cloud/types/add_nodes_response.py +++ b/src/zep_cloud/types/add_nodes_response.py @@ -4,14 +4,14 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .add_node_item import AddNodeItem +from .added_node import AddedNode class AddNodesResponse(UniversalBaseModel): - nodes: typing.Optional[typing.List[AddNodeItem]] = pydantic.Field(default=None) + nodes: typing.Optional[typing.List[AddedNode]] = pydantic.Field(default=None) """ - The accepted nodes, each carrying its resolved (server-assigned or - caller-supplied) UUID, in request order. + The accepted nodes, each carrying the UUID Zep assigned to it, in request + order. """ task_id: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/zep_cloud/types/added_node.py b/src/zep_cloud/types/added_node.py new file mode 100644 index 0000000..096a05e --- /dev/null +++ b/src/zep_cloud/types/added_node.py @@ -0,0 +1,54 @@ +# This file was auto-generated by Fern from our API Definition. + +import typing + +import pydantic +import typing_extensions +from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel +from ..core.serialization import FieldMetadata + + +class AddedNode(UniversalBaseModel): + attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) + """ + Additional attributes of the node. + """ + + created_at: typing.Optional[str] = pydantic.Field(default=None) + """ + The node creation time. + """ + + label: typing.Optional[str] = pydantic.Field(default=None) + """ + The node's entity type. + """ + + metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None) + """ + Metadata attached to the node's shadow episode. + """ + + name: str = pydantic.Field() + """ + The name of the node. + """ + + summary: typing.Optional[str] = pydantic.Field(default=None) + """ + A regional summary of the node. + """ + + uuid_: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="uuid")] = pydantic.Field(default=None) + """ + The node UUID, assigned by Zep. + """ + + if IS_PYDANTIC_V2: + model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 + else: + + class Config: + frozen = True + smart_union = True + extra = pydantic.Extra.allow diff --git a/src/zep_cloud/types/comparison_operator.py b/src/zep_cloud/types/comparison_operator.py index 4439374..8e1df62 100644 --- a/src/zep_cloud/types/comparison_operator.py +++ b/src/zep_cloud/types/comparison_operator.py @@ -3,5 +3,5 @@ import typing ComparisonOperator = typing.Union[ - typing.Literal["=", "<>", ">", "<", ">=", "<=", "IS NULL", "IS NOT NULL", "CONTAINS"], typing.Any + typing.Literal["=", "<>", ">", "<", ">=", "<=", "IS NULL", "is_null", "IS NOT NULL", "CONTAINS"], typing.Any ] diff --git a/src/zep_cloud/types/date_filter.py b/src/zep_cloud/types/date_filter.py index 429400e..154360a 100644 --- a/src/zep_cloud/types/date_filter.py +++ b/src/zep_cloud/types/date_filter.py @@ -16,7 +16,7 @@ class DateFilter(UniversalBaseModel): date: typing.Optional[str] = pydantic.Field(default=None) """ Date to filter on. Required for non-null operators (=, \<\>, \>, \<, \>=, \<=). - Should be omitted for IS NULL and IS NOT NULL operators. + Should be omitted for IS NULL (or is_null) and IS NOT NULL operators. """ if IS_PYDANTIC_V2: diff --git a/src/zep_cloud/types/graph_edges_request.py b/src/zep_cloud/types/graph_edges_request.py index 270f3e8..77cc19a 100644 --- a/src/zep_cloud/types/graph_edges_request.py +++ b/src/zep_cloud/types/graph_edges_request.py @@ -33,7 +33,7 @@ class GraphEdgesRequest(UniversalBaseModel): order_by: typing.Optional[str] = pydantic.Field(default=None) """ - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). """ uuid_cursor: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/zep_cloud/types/graph_nodes_request.py b/src/zep_cloud/types/graph_nodes_request.py index 30a8e95..e74a760 100644 --- a/src/zep_cloud/types/graph_nodes_request.py +++ b/src/zep_cloud/types/graph_nodes_request.py @@ -33,7 +33,7 @@ class GraphNodesRequest(UniversalBaseModel): order_by: typing.Optional[str] = pydantic.Field(default=None) """ - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). """ uuid_cursor: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/zep_cloud/types/graph_observations_request.py b/src/zep_cloud/types/graph_observations_request.py index 15ff765..21f81b7 100644 --- a/src/zep_cloud/types/graph_observations_request.py +++ b/src/zep_cloud/types/graph_observations_request.py @@ -33,7 +33,7 @@ class GraphObservationsRequest(UniversalBaseModel): order_by: typing.Optional[str] = pydantic.Field(default=None) """ - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). """ uuid_cursor: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/zep_cloud/types/graph_thread_summaries_request.py b/src/zep_cloud/types/graph_thread_summaries_request.py index ec9b6ac..0f835d7 100644 --- a/src/zep_cloud/types/graph_thread_summaries_request.py +++ b/src/zep_cloud/types/graph_thread_summaries_request.py @@ -33,7 +33,7 @@ class GraphThreadSummariesRequest(UniversalBaseModel): order_by: typing.Optional[str] = pydantic.Field(default=None) """ - Field to sort by. One of "created_at" or "uuid" (default "uuid"). + Field to sort by. One of "created_at", "valid_at", or "uuid" (default "uuid"). """ uuid_cursor: typing.Optional[str] = pydantic.Field(default=None)