Skip to content
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

fix #687 #1500

Merged
merged 1 commit into from
Oct 11, 2024
Merged

fix #687 #1500

merged 1 commit into from
Oct 11, 2024

Conversation

shenchucheng
Copy link
Collaborator

Features

Because the Method class cannot be serialized, simply exclude fields of type Method from WebBrowserEngine and SearchEngine. This ensures that the serialization process does not encounter errors related to the Method class, addressing issue #687.

Result
You can verify this by running:

pytest tests/metagpt/roles/test_researcher.py::test_serialize

@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.65%. Comparing base (4c55a97) to head (61bb774).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1500      +/-   ##
==========================================
+ Coverage   61.99%   62.65%   +0.65%     
==========================================
  Files         285      285              
  Lines       17534    17535       +1     
==========================================
+ Hits        10871    10986     +115     
+ Misses       6663     6549     -114     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@geekan
Copy link
Owner

geekan commented Oct 11, 2024

Pre-commit seems to be down?

@shenchucheng
Copy link
Collaborator Author

Pre-commit seems to be down?

I have enabled Pre-commit and force-pushed the changes again.

@geekan geekan merged commit 45f102c into main Oct 11, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants