Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattprintz committed Dec 3, 2024
1 parent bcdc3b0 commit da6234b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions archytas/react.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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 = "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 <[email protected]>", "Matthew Printz <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit da6234b

Please sign in to comment.