zep-crewai 1.1.0__tar.gz → 1.1.1__tar.gz
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.
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/PKG-INFO +1 -1
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/examples/crewai_graph.py +1 -1
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/examples/crewai_user.py +1 -1
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/pyproject.toml +1 -1
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/src/zep_crewai/graph_storage.py +1 -1
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/src/zep_crewai/memory.py +2 -2
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/src/zep_crewai/user_storage.py +1 -1
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/tests/test_graph_storage.py +1 -1
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/tests/test_user_storage.py +3 -3
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/.gitignore +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/Makefile +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/README.md +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/examples/crewai_tools.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/examples/simple_example.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/examples/test_context_mock.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/src/zep_crewai/__init__.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/src/zep_crewai/exceptions.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/src/zep_crewai/tools.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/src/zep_crewai/utils.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/tests/test_basic.py +0 -0
- {zep_crewai-1.1.0 → zep_crewai-1.1.1}/tests/test_tools.py +0 -0
@@ -214,7 +214,7 @@ def main():
|
|
214
214
|
search_results = graph_storage.search("Python", limit=5)
|
215
215
|
print(f"Found {len(search_results)} results about Python:")
|
216
216
|
for idx, result in enumerate(search_results[:3], 1):
|
217
|
-
print(f" {idx}. {result.get('
|
217
|
+
print(f" {idx}. {result.get('context', '')[:100]}...")
|
218
218
|
|
219
219
|
except Exception as e:
|
220
220
|
print(f"\n❌ Execution failed: {e}")
|
@@ -223,7 +223,7 @@ def main():
|
|
223
223
|
print(f"Found {len(search_results)} relevant memories about mobile app:")
|
224
224
|
for idx, result in enumerate(search_results[:3], 1):
|
225
225
|
memory_type = result.get("type", "unknown")
|
226
|
-
content = result.get("
|
226
|
+
content = result.get("context", "")[:100]
|
227
227
|
print(f" {idx}. [{memory_type}] {content}...")
|
228
228
|
|
229
229
|
except Exception as e:
|
@@ -127,7 +127,7 @@ class ZepGraphStorage(Storage):
|
|
127
127
|
if context:
|
128
128
|
self._logger.info(f"Composed context for query: {query}")
|
129
129
|
return [
|
130
|
-
{"
|
130
|
+
{"context": context, "type": "graph_context", "source": "graph", "query": query}
|
131
131
|
]
|
132
132
|
|
133
133
|
self._logger.info(f"No results found for query: {query}")
|
@@ -156,10 +156,10 @@ class ZepStorage(Storage):
|
|
156
156
|
self._logger.debug(f"Failed to search user memories: {e}")
|
157
157
|
|
158
158
|
if thread_context and hasattr(thread_context, "context") and thread_context.context:
|
159
|
-
results.append({"
|
159
|
+
results.append({"context": thread_context.context})
|
160
160
|
|
161
161
|
for result in edges_search_results:
|
162
|
-
results.append({"
|
162
|
+
results.append({"context": result})
|
163
163
|
|
164
164
|
return results
|
165
165
|
|
@@ -125,7 +125,7 @@ class TestZepGraphStorage:
|
|
125
125
|
assert len(results) == 1 # Single composed result
|
126
126
|
|
127
127
|
# Check the composed result
|
128
|
-
assert results[0]["
|
128
|
+
assert results[0]["context"] == (
|
129
129
|
"Facts:\n- Python is used for AI\n\n"
|
130
130
|
"Entities:\n- Python: A programming language\n\n"
|
131
131
|
"Episodes:\n- Discussion about Python"
|
@@ -180,7 +180,7 @@ class TestZepUserStorage:
|
|
180
180
|
assert isinstance(results, list)
|
181
181
|
assert len(results) == 1
|
182
182
|
assert results[0]["type"] == "user_graph_context"
|
183
|
-
assert results[0]["
|
183
|
+
assert results[0]["context"] == "Context: User likes Python"
|
184
184
|
|
185
185
|
@patch("zep_crewai.utils.compose_context_string")
|
186
186
|
@patch("zep_crewai.utils.ThreadPoolExecutor")
|
@@ -256,8 +256,8 @@ class TestZepUserStorage:
|
|
256
256
|
# Verify results
|
257
257
|
assert len(results) == 1
|
258
258
|
assert results[0]["type"] == "user_graph_context"
|
259
|
-
assert "User prefers Python" in results[0]["
|
260
|
-
assert "UserPreference" in results[0]["
|
259
|
+
assert "User prefers Python" in results[0]["context"]
|
260
|
+
assert "UserPreference" in results[0]["context"]
|
261
261
|
|
262
262
|
def test_get_context_with_thread(self):
|
263
263
|
"""Test get_context retrieves context using thread.get_user_context."""
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|