-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[Bug]: Runtime error with autogen.runtime_logging.start, using nested chats #2573
Labels
logging
related to logging issue
Comments
Thanks for raising the issue. Like you said, the bug is due to the autogen/autogen/agentchat/conversable_agent.py Lines 1950 to 1959 in 10bb25b
Would you like to propose a fix? cc @lalo |
No. Only with logging enabled.
Happy to PR something but wasn’t sure the right approach to match code base
expectations.
E.g. using getattr vs. @Wrap instead of partial, etc.
…On Thu, May 2, 2024 at 8:30 PM Eric Zhu ***@***.***> wrote:
Does this happen when you turn off logging?
—
Reply to this email directly, view it on GitHub
<#2573 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABDQA3CMTV7COBNTYHT5DTZALLCHAVCNFSM6AAAAABHD6VOOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRHE2TGOBSG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I think in this case using a simple wrapper function for nested chat makes the code more readable than partial. |
This was referenced May 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Enabling runtime logging
autogen.runtime_logging.start
, while using nested chats with the default reply function causes a crash.Introduced in
v0.2.27
via ebde196register_nested_chats -- default reply func uses a partial, which does supply the special
__name__
attribute.reply_func = partial(reply_func_from_nested_chats, chat_queue)
Steps to reproduce
v0.2.27
autogen.runtime_logging.start(config={"dbname": "logs.db"})
on existing nested chats application which uses the default reply function.Model Used
gpt-3.5-turbo
Expected Behavior
No runtime error, logging executed successfully.
Screenshots and logs
Additional Information
AutoGen Version: 0.2.27 minimum
Python Version: 3.11.3
Example Code for failure, based on autogen example.
The text was updated successfully, but these errors were encountered: