aiqtoolkit-zep-cloud 1.1.0rc5__py3-none-any.whl → 1.2.0__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 aiqtoolkit-zep-cloud might be problematic. Click here for more details.

@@ -1,13 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiqtoolkit-zep-cloud
3
- Version: 1.1.0rc5
4
- Summary: Subpackage for Zep memory integration in AIQtoolkit
5
- Keywords: ai,agents,memory
3
+ Version: 1.2.0
4
+ Summary: Transitional package for nvidia-nat-zep-cloud, this package is deprecated and will be removed in the future.
6
5
  Classifier: Programming Language :: Python
7
- Requires-Python: <3.13,>=3.11
8
6
  Description-Content-Type: text/markdown
9
- Requires-Dist: aiqtoolkit==v1.1.0-rc5
10
- Requires-Dist: zep-cloud~=2.2.0
7
+ Requires-Dist: nvidia-nat-zep-cloud
11
8
 
12
9
  <!--
13
10
  SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
@@ -26,9 +23,7 @@ See the License for the specific language governing permissions and
26
23
  limitations under the License.
27
24
  -->
28
25
 
29
- ![NVIDIA Agent Intelligence Toolkit](https://media.githubusercontent.com/media/NVIDIA/AIQToolkit/refs/heads/main/docs/source/_static/aiqtoolkit_banner.png "AIQ toolkit banner image")
26
+ # Transitional Package for `nvidia-nat-zep-cloud`
27
+ This is a transitional package for `nvidia-nat-zep-cloud` to help ease the migration to `nvidia-nat-zep-cloud`, and will be removed in a future release. It is recommended to use `nvidia-nat-zep-cloud` directly for new projects.
30
28
 
31
- # NVIDIA Agent Intelligence Toolkit Subpackage
32
- This is a subpackage for Zep memory integration in AIQ toolkit.
33
-
34
- For more information about AIQ toolkit, please visit the [AIQ toolkit package](https://pypi.org/project/aiqtoolkit/).
29
+ For more information about the NVIDIA NeMo Agent toolkit, please visit the [NeMo Agent toolkit package](https://pypi.org/project/nvidia-nat-zep-cloud/).
@@ -0,0 +1,4 @@
1
+ aiqtoolkit_zep_cloud-1.2.0.dist-info/METADATA,sha256=GftdAr9q-vMUBxUXnPGI9PAVtrMN0huYWsfMLilpMIQ,1399
2
+ aiqtoolkit_zep_cloud-1.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
3
+ aiqtoolkit_zep_cloud-1.2.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
4
+ aiqtoolkit_zep_cloud-1.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
aiq/meta/pypi.md DELETED
@@ -1,23 +0,0 @@
1
- <!--
2
- SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
- SPDX-License-Identifier: Apache-2.0
4
-
5
- Licensed under the Apache License, Version 2.0 (the "License");
6
- you may not use this file except in compliance with the License.
7
- You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.
16
- -->
17
-
18
- ![NVIDIA Agent Intelligence Toolkit](https://media.githubusercontent.com/media/NVIDIA/AIQToolkit/refs/heads/main/docs/source/_static/aiqtoolkit_banner.png "AIQ toolkit banner image")
19
-
20
- # NVIDIA Agent Intelligence Toolkit Subpackage
21
- This is a subpackage for Zep memory integration in AIQ toolkit.
22
-
23
- For more information about AIQ toolkit, please visit the [AIQ toolkit package](https://pypi.org/project/aiqtoolkit/).
File without changes
@@ -1,46 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
- # SPDX-License-Identifier: Apache-2.0
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from aiq.builder.builder import Builder
17
- from aiq.cli.register_workflow import register_memory
18
- from aiq.data_models.memory import MemoryBaseConfig
19
-
20
-
21
- class ZepMemoryClientConfig(MemoryBaseConfig, name="zep_memory"):
22
- base_url: str | None = None
23
- timeout: float | None = None
24
- follow_redirects: bool | None = None
25
-
26
-
27
- @register_memory(config_type=ZepMemoryClientConfig)
28
- async def zep_memory_client(config: ZepMemoryClientConfig, builder: Builder):
29
- import os
30
-
31
- from zep_cloud.client import AsyncZep
32
-
33
- from aiq.plugins.zep_cloud.zep_editor import ZepEditor
34
-
35
- zep_api_key = os.environ.get("ZEP_API_KEY")
36
-
37
- if zep_api_key is None:
38
- raise RuntimeError("Zep API key is not set. Please specify it in the environment variable 'ZEP_API_KEY'.")
39
-
40
- zep_client = AsyncZep(api_key=zep_api_key,
41
- base_url=config.base_url,
42
- timeout=config.timeout,
43
- follow_redirects=config.follow_redirects)
44
- memory_editor = ZepEditor(zep_client)
45
-
46
- yield memory_editor
@@ -1,22 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
- # SPDX-License-Identifier: Apache-2.0
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- # pylint: disable=unused-import
17
- # flake8: noqa
18
- # isort:skip_file
19
-
20
- # Import any providers which need to be automatically registered here
21
-
22
- from . import memory
@@ -1,105 +0,0 @@
1
- # SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
- # SPDX-License-Identifier: Apache-2.0
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- from __future__ import annotations
17
-
18
- import asyncio
19
-
20
- from zep_cloud.client import AsyncZep
21
- from zep_cloud.types import Message
22
-
23
- from aiq.memory.interfaces import MemoryEditor
24
- from aiq.memory.models import MemoryItem
25
-
26
-
27
- class ZepEditor(MemoryEditor):
28
- """
29
- Wrapper class that implements AIQ Toolkit Interfaces for Zep Integrations Async.
30
- """
31
-
32
- def __init__(self, zep_client: AsyncZep):
33
- """
34
- Initialize class with Predefined Mem0 Client.
35
-
36
- Args:
37
- zep_client (AsyncZep): Async client instance.
38
- """
39
- self._client = zep_client
40
-
41
- async def add_items(self, items: list[MemoryItem]) -> None:
42
- """
43
- Insert Multiple MemoryItems into the memory. Each MemoryItem is translated and uploaded.
44
- """
45
-
46
- coroutines = []
47
-
48
- # Iteratively insert memories into Mem0
49
- for memory_item in items:
50
- conversation = memory_item.conversation
51
- session_id = memory_item.user_id
52
- messages = []
53
- for msg in conversation:
54
- messages.append(Message(content=msg["content"], role_type=msg["role"]))
55
-
56
- coroutines.append(self._client.memory.add(session_id=session_id, messages=messages))
57
-
58
- await asyncio.gather(*coroutines)
59
-
60
- async def search(self, query: str, top_k: int = 5, **kwargs) -> list[MemoryItem]:
61
- """
62
- Retrieve items relevant to the given query.
63
-
64
- Args:
65
- query (str): The query string to match.
66
- top_k (int): Maximum number of items to return.
67
- **kwargs: Other keyword arguments for search.
68
-
69
- Returns:
70
- list[MemoryItem]: The most relevant MemoryItems for the given query.
71
- """
72
-
73
- session_id = kwargs.pop("user_id") # Ensure user ID is in keyword arguments
74
- limit = top_k
75
-
76
- search_result = await self._client.memory.search_sessions(session_ids=[session_id],
77
- text=query,
78
- limit=limit,
79
- search_scope="messages",
80
- **kwargs)
81
-
82
- # Construct MemoryItem instances
83
- memories = []
84
-
85
- for res in search_result.results:
86
- memories.append(
87
- MemoryItem(conversation=[],
88
- user_id=session_id,
89
- memory=res.message.content,
90
- metadata={
91
- "relevance_score": res.score,
92
- "created_at": res.message.created_at,
93
- "updated_at": res.message.updated_at
94
- }))
95
-
96
- return memories
97
-
98
- async def remove_items(self, **kwargs):
99
-
100
- if "session_id" in kwargs:
101
- session_id = kwargs.pop("session_id")
102
- await self._client.memory.delete(session_id)
103
-
104
- else:
105
- raise ValueError("session_id not provided as part of the tool call. ")
@@ -1,10 +0,0 @@
1
- aiq/meta/pypi.md,sha256=OaXSseSQmZpGfu1gU1X-CA1agKyr9jjkimG2pFumUws,1079
2
- aiq/plugins/zep_cloud/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- aiq/plugins/zep_cloud/memory.py,sha256=nCdjuqc88lbHgOzryX03lXsZvT26CLtIhaWjPyzYYBo,1728
4
- aiq/plugins/zep_cloud/register.py,sha256=_ffKNKnMfkB2HzX4Nk_9EW0pwebg3GuzAE-iB-CoC3E,839
5
- aiq/plugins/zep_cloud/zep_editor.py,sha256=n8CzRcN6FupQ4gJT6hB7o6-cGnAL3OP3mI2IiUfdvOA,3778
6
- aiqtoolkit_zep_cloud-1.1.0rc5.dist-info/METADATA,sha256=2Z8Cy29aW5fqrmxawXLaFaSPd9i64_b5quhT5auFpuc,1418
7
- aiqtoolkit_zep_cloud-1.1.0rc5.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
8
- aiqtoolkit_zep_cloud-1.1.0rc5.dist-info/entry_points.txt,sha256=4YncaCW2G71ZTzahBnUuvTEhIbz9adjbPXC2waBqZ0Q,64
9
- aiqtoolkit_zep_cloud-1.1.0rc5.dist-info/top_level.txt,sha256=fo7AzYcNhZ_tRWrhGumtxwnxMew4xrT1iwouDy_f0Kc,4
10
- aiqtoolkit_zep_cloud-1.1.0rc5.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [aiq.components]
2
- aiq_zep_cloud = aiq.plugins.zep_cloud.register