Skip to content

[FEATURE] Add native WikipediaSearchTool for free research #5823

@raghav-404

Description

@raghav-404

Feature Area

Integration with external tools

Is your feature request related to a an existing bug? Please link it here.

NA

Describe the solution you'd like

I’d like to add a WikipediaSearchTool to the library. It would allow agents to search Wikipedia for specific topics and return a concise summary (e.g., the first 3 sentences).

I plan to use the wikipedia Python library to handle this. It would include basic error handling for:

->Disambiguation: If a search is too broad, the tool can ask for more specifics.
->Page Not Found: Graceful handling if the topic doesn't exist.

Describe alternatives you've considered

Using a general ScrapeWebsiteTool on Wikipedia URLs, but that requires the agent to already know the exact URL, which is less "agentic" than a direct search.

Additional context

I've already drafted the code and a basic test for this tool. I would be very happy to submit a Pull Request to contribute this if the team is interested!

Willingness to Contribute

Yes, I'd be happy to submit a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions