-
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
add __init__.py for capabilities #1177
Conversation
Looks reasonable to me. @sonichi it appears that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've verified that the contrib/capabilities folder is missing from the pyautogen==0.2.4 package, and adding the folder manually under site-packages after a pip install fixes the problem. I assume that adding an __init__.py
file per this PR will cause the package build process to pick up the capabilities folder. I also verified that the contents of __init__.py
supplied by this PR allow Teachability and AgentCapability to be imported and run, although an empty __init__.py
also seems to work.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1177 +/- ##
==========================================
+ Coverage 31.80% 39.52% +7.71%
==========================================
Files 29 32 +3
Lines 4112 4301 +189
Branches 961 1044 +83
==========================================
+ Hits 1308 1700 +392
+ Misses 2710 2475 -235
- Partials 94 126 +32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@btcioner The pre-commit-check fails because black wants the list to be on a single line like this:
Can you make this change in your fork? Thanks. |
Fix formatting to satisfy black.
Oh, it looks like I've got access to your fork. I went ahead and made the change. Now pre-commit-check is happy! |
* Make auto reply method pluggable * allow richer trigger types * test list
* Create __init__.py * Update __init__.py * Update __init__.py Fix formatting to satisfy black. --------- Co-authored-by: Ricky Loynd <[email protected]>
Why are these changes needed?
some error info like below:
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 3>()
1 import autogen
2 from autogen import UserProxyAgent, config_list_from_json
----> 3 from autogen.agentchat.contrib.capabilities.teachability import Teachability
4 from flaml import tune
5
ModuleNotFoundError: No module named 'autogen.agentchat.contrib.capabilities'
Related issue number
Checks