Skip to content

Commit

Permalink
check tool_returns (microsoft#1187)
Browse files Browse the repository at this point in the history
* check tool_returns

* bump version to 0.2.6
  • Loading branch information
sonichi authored Jan 10, 2024
1 parent 156b02d commit 7d27d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,9 @@ def check_termination_and_human_reply(
]
)

response = {"role": "user", "content": reply, "tool_responses": tool_returns}
response = {"role": "user", "content": reply}
if tool_returns:
response["tool_responses"] = tool_returns

return True, response

Expand Down
2 changes: 1 addition & 1 deletion autogen/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.5"
__version__ = "0.2.6"

0 comments on commit 7d27d5e

Please sign in to comment.