-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow None for sender field in CoversableAgent.generate_reply
#1725
Conversation
@microsoft-github-policy-service agree |
Please fix the code formatting error. You can use pre-commit to help. |
… and sender is None
Thanks, done! |
@RohitRathore1 What's your discord name? We can add you to an appropriate role. |
Hi @ekzhu sure, my username is RohitRathore1. Let me know if you encounter any issues. |
…osoft#1725) * Allow None for sender field * Apply formatting fixes * Add test for ConversableAgent generate_reply with message is provided and sender is None --------- Co-authored-by: Chi Wang <[email protected]>
Why are these changes needed?
Currently, if we do:
We get
After fixing this bug it addresses potential issue with
sender
beingNone
and usingsender_name
correctly throughout the method. This ensures that our method handles different scenarios robustly, including when sender might not be provided, and makes our method more resilient to various input conditions.Related issue number
Closes #1708
Checks