File tree Expand file tree Collapse file tree
integrations/python/zep_autogen Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " zep-autogen"
3- version = " 1.0 .0"
3+ version = " 1.1 .0"
44description = " Autogen integration for Zep"
55readme = " README.md"
66requires-python = " >=3.10"
@@ -12,7 +12,7 @@ dependencies = [
1212 " python-dotenv>=1.0.0" ,
1313 " python-slugify>=8.0.4" ,
1414 " rich>=14.0.0" ,
15- " zep-cloud>=3.2 .0" ,
15+ " zep-cloud>=3.3 .0" ,
1616]
1717
1818[project .urls ]
Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ async def _retrieve_graph_context(self) -> MemoryContent | None:
227227 query = ""
228228 for msg in recent_messages .episodes :
229229 query += f"{ msg .content } \n "
230+
231+ # trim query to 400 chars
232+ query = query [- 400 :]
230233 search_functions = []
231234
232235 search_functions .append (
@@ -260,7 +263,7 @@ async def _retrieve_graph_context(self) -> MemoryContent | None:
260263 nodes .extend (result .nodes )
261264 if not edges and not nodes :
262265 return None
263- context = compose_context_string (edges , nodes )
266+ context = compose_context_string (edges , nodes , [] )
264267 return MemoryContent (
265268 content = context ,
266269 mime_type = MemoryMimeType .TEXT ,
You can’t perform that action at this time.
0 commit comments