Skip to main content

Hyperdock for LlamaIndex Tools

But seriously, what is a Hyperdock?

  • Hyperdock is just a fancy name for a collection of tools. Which are, just python functions returning str!
  • In this case, the collection will contain functions that invoke tools which are methods of subclass of BaseToolSpec from llamaindex.

How to use it?

  • To use tools from llama-index, install independent tool package first.
$ pip install llama-index-tools-duckduckgo # or maybe uv add llama-index-tools-duckduckgo
  • Make a dock with the tools you want to use. For example, let's say you want to use DuckDuckGoSearchRun tool.
from hyperdock_llamaindex import LlamaIndexToolRequest, dock as llamaindex_dock
from llama_index.tools.duckduckgo import DuckDuckGoSearchToolSpec

# ...
dock = llamaindex_dock(
        LlamaIndexToolRequest(
            tool_func=DuckDuckGoSearchToolSpec.duckduckgo_full_search,
            tool_args={
                "max_results": 10,
            },
        )
    )
  • You might want to use hyperpocket's auth feature while using the llamaindex tools. In that case, you can define auth property for the LlamaIndexToolRequest.

  • The auth property must be possible to serialized as hyperpocket.tool.ToolAuth.

  • After you make your dock, call from_dock from your pocket instantiation. For example, Let's say you're using hyperpocket for llamaindex. You can do:

from hyperpocket.tool import from_dock
from hyperpocket_llamaindex import PocketLlamaindex
from hyperdock_llamaindex import LlamaIndexToolRequest, dock as llamaindex_dock

dock = llamaindex_dock(
    #...
)
# ...
def agent():
    # ...
    # initialize the pocket
    pocket = PocketLlamaindex(
        tools=[
            *from_dock(dock),
        ]
    )

Metadata

Release files for hyperdock-llamaindex 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyperdock-llamaindex 0.3.7
File Size Uploaded
hyperdock_llamaindex-0.3.7.tar.gz 102.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hyperdock-llamaindex 0.3.7
File Interpreter ABI Platform
hyperdock_llamaindex-0.3.7-py3-none-any.whl Python 3 none any Details

Total release size: 105.2 kB

Release files / hyperdock_llamaindex-0.3.7.tar.gz

Download URL hyperdock_llamaindex-0.3.7.tar.gz
Size 102.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1cc720cf22df5777745e7057fda6919e533e8f9ffb6b5c0de53b02bbac87373a
BLAKE2b-256 checksum
How to use checksums
68a38d319a8fa5650bfd3b4ce600bbe424501b9bdf3c22d8823ed592005e773e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / hyperdock_llamaindex-0.3.7-py3-none-any.whl

Download URL hyperdock_llamaindex-0.3.7-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae7f72022b5182f2c1ebf6e4b072d66ab3ce39906109060540ba124bd81d13d9
BLAKE2b-256 checksum
How to use checksums
4ac27954b8fd04cff1d9cd52ecc173cf14f1ef1b01c6027bdf47120290ca8fdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.3.7 This release

2 release files

0.3.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page