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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zep-crewai
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: CrewAI integration for Zep
5
5
  Project-URL: Homepage, https://github.com/getzep/zep
6
6
  Project-URL: Documentation, https://help.getzep.com
@@ -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('memory', '')[:100]}...")
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("memory", "")[:100]
226
+ content = result.get("context", "")[:100]
227
227
  print(f" {idx}. [{memory_type}] {content}...")
228
228
 
229
229
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "zep-crewai"
3
- version = "1.1.0"
3
+ version = "1.1.1"
4
4
  description = "CrewAI integration for Zep"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -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
- {"memory": context, "type": "graph_context", "source": "graph", "query": query}
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({"memory": thread_context.context})
159
+ results.append({"context": thread_context.context})
160
160
 
161
161
  for result in edges_search_results:
162
- results.append({"memory": result})
162
+ results.append({"context": result})
163
163
 
164
164
  return results
165
165
 
@@ -155,7 +155,7 @@ class ZepUserStorage(Storage):
155
155
  self._logger.info(f"Composed context for query: {query}")
156
156
  return [
157
157
  {
158
- "memory": context,
158
+ "context": context,
159
159
  "type": "user_graph_context",
160
160
  "source": "user_graph",
161
161
  "query": query,
@@ -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]["memory"] == (
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]["memory"] == "Context: User likes Python"
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]["memory"]
260
- assert "UserPreference" in results[0]["memory"]
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