Closed leehuwuj closed 3 weeks ago
Latest commit: bdaf2c63d93a031791b7af546f20626559c6f709
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The changes introduce a DuckDuckGo search tool for both Python and TypeScript environments, enabling efficient web searches. This new feature includes the necessary dependencies and metadata to support multiple frameworks like FastAPI, Next.js, and Express. The search functionality is implemented through the duck-duck-scrape
library, making it well-integrated and accessible within different project setups.
File/Path | Change Summary |
---|---|
.changeset/clever-pens-mix.md |
Summary of all introduced changes |
helpers/tools.ts |
Added DuckDuckGo Search tool with specifications, dependencies, supported frameworks, and environmental variables. |
.../typescript/agent/tools/duckduckgo.ts |
Defined the DuckDuckGo search functionality, including parameters for query and region, and added necessary imports and class implementation. |
.../python/agent/tools/duckduckgo.py |
Introduced duckduckgo_search function for DuckDuckGo queries along with get_tools to list available tools. |
.../typescript/agent/tools/index.ts |
Added import statements and a factory entry for creating DuckDuckGoSearchTool using defined parameters. |
.../streaming/express/package.json |
Added duck-duck-scrape: ^2.2.5 dependency for Express project. |
.../streaming/nextjs/package.json |
Added duck-duck-scrape: ^2.2.5 dependency for Next.js project. |
sequenceDiagram
participant User
participant DuckDuckGoSearchTool
participant DuckDuckGoAPI
User->>DuckDuckGoSearchTool: Query DuckDuckGo
DuckDuckGoSearchTool->>DuckDuckGoAPI: Send search request
DuckDuckGoAPI-->>DuckDuckGoSearchTool: Return search results
DuckDuckGoSearchTool-->>User: Display search results
In fields of code, a bunny hops, Bringing tools with clever crops, DuckDuckGo joins the dance, Enhancing searches at a glance. Through Python, TypeScript too, The web unfolds, all bright and true.
[!WARNING]
Review ran into problems
Problems (1)
* Git: Failed to clone repository. Please contact CodeRabbit support.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Dependencies
duck-duck-scrape
dependency to projects using Express and Next.js.