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
BaseToolSpecfrom 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
DuckDuckGoSearchRuntool.
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
authproperty for theLlamaIndexToolRequest. -
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hyperdock_llamaindex-0.3.7.tar.gz | 102.0 kB | Without provenance | Details for hyperdock_llamaindex-0.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hyperdock_llamaindex-0.3.7-py3-none-any.whl | Python 3 | none | any | Details for hyperdock_llamaindex-0.3.7-py3-none-any.whl |
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
|
Security for hyperdock-llamaindex 0.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.