llama-index-tools-duckduckgo


Namellama-index-tools-duckduckgo JSON
Version 0.4.1 PyPI version JSON
download
home_pageNone
Summaryllama-index tools integrating DuckDuckGo search
upload_time2025-09-08 20:50:45
maintainerleehuwuj
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseNone
keywords research
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # DuckDuckGo Search Tool

This tool enables agents to search and retrieve results from the DuckDuckGo search engine. It utilizes the duckduckgo_search package, which either fetches instant query answers from DuckDuckGo or conducts a full search and parses the results.

## Usage

This tool has a more extensive example usage documented in a Jupyter notebook [here](./examples/duckduckgo_search.ipynb)

Here's an example usage of the DuckDuckGoSearchToolSpec.

```python
from llama_index.tools.duckduckgo import DuckDuckGoSearchToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = DuckDuckGoSearchToolSpec()

agent = FunctionAgent(
    tools=DuckDuckGoSearchToolSpec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(await agent.run("What's going on with the superconductor lk-99"))
print(await agent.run("what are the latest developments in machine learning"))
```

## Available tool functions:

- `duckduckgo_instant_search`: Make a query to DuckDuckGo api to receive an instant answer.

- `duckduckgo_full_search`: Make a query to DuckDuckGo search to receive a full search results.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-tools-duckduckgo",
    "maintainer": "leehuwuj",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "research",
    "author": null,
    "author_email": "Your Name <you@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/54/c2/2d6f51a0ca650eff79ea4518a558484842bff12cc3e16b7d2b71c5bb218f/llama_index_tools_duckduckgo-0.4.1.tar.gz",
    "platform": null,
    "description": "# DuckDuckGo Search Tool\n\nThis tool enables agents to search and retrieve results from the DuckDuckGo search engine. It utilizes the duckduckgo_search package, which either fetches instant query answers from DuckDuckGo or conducts a full search and parses the results.\n\n## Usage\n\nThis tool has a more extensive example usage documented in a Jupyter notebook [here](./examples/duckduckgo_search.ipynb)\n\nHere's an example usage of the DuckDuckGoSearchToolSpec.\n\n```python\nfrom llama_index.tools.duckduckgo import DuckDuckGoSearchToolSpec\nfrom llama_index.core.agent.workflow import FunctionAgent\nfrom llama_index.llms.openai import OpenAI\n\ntool_spec = DuckDuckGoSearchToolSpec()\n\nagent = FunctionAgent(\n    tools=DuckDuckGoSearchToolSpec.to_tool_list(),\n    llm=OpenAI(model=\"gpt-4.1\"),\n)\n\nprint(await agent.run(\"What's going on with the superconductor lk-99\"))\nprint(await agent.run(\"what are the latest developments in machine learning\"))\n```\n\n## Available tool functions:\n\n- `duckduckgo_instant_search`: Make a query to DuckDuckGo api to receive an instant answer.\n\n- `duckduckgo_full_search`: Make a query to DuckDuckGo search to receive a full search results.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "llama-index tools integrating DuckDuckGo search",
    "version": "0.4.1",
    "project_urls": null,
    "split_keywords": [
        "research"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a2cd8cc3bbdc123833dbbde2f871e7d12d53927956a1a12702882b121287994a",
                "md5": "f2e3590248b61dd662eee543893db437",
                "sha256": "380efcc46200f972019b116d6723909279b2e2d210feb54d54a42406c2ff6e43"
            },
            "downloads": -1,
            "filename": "llama_index_tools_duckduckgo-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f2e3590248b61dd662eee543893db437",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3596,
            "upload_time": "2025-09-08T20:50:44",
            "upload_time_iso_8601": "2025-09-08T20:50:44.747850Z",
            "url": "https://files.pythonhosted.org/packages/a2/cd/8cc3bbdc123833dbbde2f871e7d12d53927956a1a12702882b121287994a/llama_index_tools_duckduckgo-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "54c22d6f51a0ca650eff79ea4518a558484842bff12cc3e16b7d2b71c5bb218f",
                "md5": "2f2fa69aec2fe5c567a1e53e3cf72174",
                "sha256": "f76e82cbef88733cb75ed05c760a33402c1161920b14aa5fd673e72ffc9bf490"
            },
            "downloads": -1,
            "filename": "llama_index_tools_duckduckgo-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2f2fa69aec2fe5c567a1e53e3cf72174",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 3931,
            "upload_time": "2025-09-08T20:50:45",
            "upload_time_iso_8601": "2025-09-08T20:50:45.506552Z",
            "url": "https://files.pythonhosted.org/packages/54/c2/2d6f51a0ca650eff79ea4518a558484842bff12cc3e16b7d2b71c5bb218f/llama_index_tools_duckduckgo-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-08 20:50:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-duckduckgo"
}
        
Elapsed time: 4.94632s