Skip to content

Commit

Permalink
check tool_returns (#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 9e45e9f commit 78fe8f9
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"

2 comments on commit 78fe8f9

@ShobhitVishnoi30
Copy link
Collaborator

@ShobhitVishnoi30 ShobhitVishnoi30 commented on 78fe8f9 Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add the same for a_check_termination_and_human_reply() function as well @sonichi .And when we can expect this new version ??

@sonichi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add the same for a_check_termination_and_human_reply() function as well @sonichi .And when we can expect this new version ??

You are right. It has been addressed and 0.2.6 has been released.

Please sign in to comment.