diff --git a/archytas/react.py b/archytas/react.py index ece54a2..2e66fc6 100644 --- a/archytas/react.py +++ b/archytas/react.py @@ -248,6 +248,8 @@ async def react_async(self, query: str, react_context:dict=None) -> str: ) self.current_query = None # Store final answer as response in message, + if not isinstance(tool_input, str): + tool_input = str(tool_input) self.messages.append(AIMessage(content=tool_input)) return tool_input else: diff --git a/pyproject.toml b/pyproject.toml index eca4630..71785e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "archytas" -version = "1.3.0" +version = "1.3.1" description = "A library for pairing LLM agents with tools so they perform open ended tasks" authors = ["David Andrew Samson ", "Matthew Printz "] readme = "README.md"