Skip to content

Commit

Permalink
minor change in return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak-akkil committed Sep 10, 2024
1 parent d21f667 commit b0e99ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ae/core/autogen_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def my_custom_summary_method(sender: autogen.ConversableAgent,recipient: autogen
self.__save_chat_log(list(messages_str_keys.values())[0]) # type: ignore
last_message=recipient.last_message(sender)["content"] # type: ignore
if not last_message or last_message.strip() == "": # type: ignore
return "I received an empty message. This is not an empty and is recoverable. Try to reformulate the task..."
return "I received an empty message. This is not an error and is recoverable. Try to reformulate the task..."
elif "##TERMINATE TASK##" in last_message:
last_message=last_message.replace("##TERMINATE TASK##", "") # type: ignore
last_message=last_message+" "+ get_url() # type: ignore
Expand Down

0 comments on commit b0e99ad

Please sign in to comment.