Skip to content

Commit

Permalink
fix ainvoke for agent_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
waleko committed Sep 19, 2024
1 parent 62274f6 commit cb4fa3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions code_editing/agents/agent_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def invoke(self, *args, **kwargs):
self.__cached_runnable = self._runnable
return self.__cached_runnable.invoke(*args, **kwargs)

async def ainvoke(self, *args, **kwargs):
if self.__cached_runnable is None or not self.do_cache:
self.__cached_runnable = self._runnable
return await self.__cached_runnable.ainvoke(*args, **kwargs)

@property
def root_params(self):
return {"tools": self.tools, "llm": self.llm, "run_manager": self.run_manager, "do_cache": self.do_cache}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ai-agents-code-editing"
version = "0.1.6"
version = "0.1.7"
description = "AI agents for Code Editing"
authors = ["Alexander Kovrigin <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit cb4fa3a

Please sign in to comment.