llm-tools-openapi
a plugins that allow to use OpenAPI as a tools
Installation
Install this plugin in the same environment as LLM.
llm install llm-tools-openapi
Usage
To use this with the LLM command-line tool:
llm --td --tool --tool 'OpenAPIToolbox(openapi_url="https://your/swagger.json")' 'question your API'
With the LLM Python API:
import llm
from llm_tools_openapi import openapi
model = llm.get_model("gpt-4.1-mini")
result = model.chain(
"Example prompt goes here",
tools=[openapi]
).text()
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-tools-openapi
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
python -m pytest
Metadata
Release files for llm-tools-openapi 0.1.1
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 | |
|---|---|---|---|---|
| llm_tools_openapi-0.1.1.tar.gz | 13.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_tools_openapi-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.6 kB
Release files / llm_tools_openapi-0.1.1.tar.gz
| Download URL | llm_tools_openapi-0.1.1.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59102ac756b74db4e7603a5bacb603ad5b6fb3be6e3da7491944968fbbd50ad2
|
|
BLAKE2b-256 checksum How to use checksums |
81efb3ebf18765f1d841bace0973d1ebffbb1278a7c64d425a233fe42bfa4311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Release files / llm_tools_openapi-0.1.1-py3-none-any.whl
| Download URL | llm_tools_openapi-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf70bf1761a178ba9b425b72e121e9141b2bc6c4bb162036443a31f300de0307
|
|
BLAKE2b-256 checksum How to use checksums |
564cef079bc01656f57f8c0ce6c5799a9418dc0497ddfe3bfda201b82cac2885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Security for llm-tools-openapi 0.1.1
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.