Skip to content

Commit

Permalink
Merge pull request #9 from ShobhitVishnoi30/updated
Browse files Browse the repository at this point in the history
fix:fixes tool issue in a_check_termination_and_human_reply
  • Loading branch information
ShobhitVishnoi30 authored Jan 10, 2024
2 parents fc8fb78 + 625a075 commit 94787e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,10 @@ async def a_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

# increment the consecutive_auto_reply_counter
Expand Down

0 comments on commit 94787e1

Please sign in to comment.