Skip to main content

a plugins that allow to use OpenAPI as a tools

Project description

llm-tools-openapi

PyPI Changelog Tests License

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 --tool openapi "Example prompt goes here" --tools-debug

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_tools_openapi-0.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_tools_openapi-0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file llm_tools_openapi-0.1.tar.gz.

File metadata

  • Download URL: llm_tools_openapi-0.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for llm_tools_openapi-0.1.tar.gz
Algorithm Hash digest
SHA256 f5f13db94d7e6e5a28d3f561ebbe5bf30573e07cbe9200a46088db5c0780d922
MD5 4274848ee4b12974a6c8c55d059012d9
BLAKE2b-256 93ec0c2899f356accfef14a1c1f8bf5c259a5627a183357c60cd711b5937bf24

See more details on using hashes here.

File details

Details for the file llm_tools_openapi-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_tools_openapi-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79b6cd28370e43a1b4ae417afd20eabaafeb73f26bac4bd52e5f355c86562ab1
MD5 253d72d62afcadebebe09f86b6e4e74f
BLAKE2b-256 f207dcfd99d890334d3fe387388374f5e0ba2fabdfb1fcaa10578af4aef6c174

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page