Skip to content

Added DuckDuckGo Search Tool and Agent in AutoGen Extensions #6682

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

Merged
merged 25 commits into from
Jul 6, 2025

Conversation

varadsrivastava
Copy link
Contributor

Why are these changes needed?

Adds a specialized AutoGen agent that uses DuckDuckGo for web searches, providing privacy-focused search capabilities without requiring API keys.

Related issue number

Checks

@varadsrivastava
Copy link
Contributor Author

@microsoft-github-policy-service agree

@varadsrivastava varadsrivastava requested a review from ekzhu June 18, 2025 13:09
@varadsrivastava varadsrivastava requested a review from ekzhu June 19, 2025 22:12
1. Added return_value_as_string function, added corresponding example in API doc
2. Removed some stray inits still present, and fixed imports
@varadsrivastava varadsrivastava requested a review from ekzhu June 20, 2025 16:14
undo truncate content in output which was done for testing
@varadsrivastava varadsrivastava requested a review from ekzhu June 27, 2025 14:14
@varadsrivastava
Copy link
Contributor Author

Hi Eric (@ekzhu), really appreciate your help and review on this one! :) Could you please let me know if there's anything else needed before we could merge this?

@ekzhu
Copy link
Collaborator

ekzhu commented Jul 6, 2025

@varadsrivastava there are still many issues with the PR. If you are using code generation tool I recommend adding existing unit tests as part of the context to properly generate unit tests. Also, make sure to run type checks and unit tests locally before requesting for review.

I am fixing this for you this time. In the future please follow the developer guide.

Copy link

codecov bot commented Jul 6, 2025

Codecov Report

Attention: Patch coverage is 89.89362% with 19 lines in your changes missing coverage. Please review.

Project coverage is 80.42%. Comparing base (0bd99ee) to head (07a3eac).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../tools/web_search/duckduckgo/_duckduckgo_search.py 88.19% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6682      +/-   ##
==========================================
+ Coverage   80.33%   80.42%   +0.09%     
==========================================
  Files         232      234       +2     
  Lines       17688    17863     +175     
==========================================
+ Hits        14209    14367     +158     
- Misses       3479     3496      +17     
Flag Coverage Δ
unittests 80.42% <89.89%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekzhu ekzhu enabled auto-merge (squash) July 6, 2025 22:00
@ekzhu ekzhu disabled auto-merge July 6, 2025 22:01
@ekzhu ekzhu enabled auto-merge (squash) July 6, 2025 22:01
@ekzhu ekzhu disabled auto-merge July 6, 2025 22:01
@ekzhu ekzhu changed the title Added DuckDuckGo Search Agent in AutoGen Extensions Added DuckDuckGo Search Tool and Agent in AutoGen Extensions Jul 6, 2025
@ekzhu ekzhu merged commit 13f9a73 into microsoft:main Jul 6, 2025
67 checks passed
@ekzhu
Copy link
Collaborator

ekzhu commented Jul 9, 2025

Dear @varadsrivastava, unfortunately we had to remove these changes from our code base because of potential DMCA violation. You are welcome to contribute it as an independent package autogen-ext-duckduckgo-search and publish the source code to GitHub with tag autogen for discovery.

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.

2 participants