Skip to main content

Python library to convert OpenAPI endpoints into callable tools for LLM AI agents.

Project description

OpenAPI Agent Tools

Generate function tools from OpenAPI server that can be used with LLM AI agents.

Project Checklist

  • ✅ Generate python functions from OpenAPI server endpoints
  • Generate function tools for OpenAPI Agent SDK
  • Generate function tools for Google ADK
  • Integrate pydantic for better typings
  • Support for endpoints with multiple path parameters

Installation

pip install openapi-agent-tools

Usage

from openapi_agent_tools import generate_tools

spec = load_spec('https://api.example.com/openapi.json')

generate_tools(spec)

License

MIT

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

openapi_llm_tools-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

openapi_llm_tools-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file openapi_llm_tools-0.1.0.tar.gz.

File metadata

  • Download URL: openapi_llm_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for openapi_llm_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41188065191ba94d3809c8777d92fa7f85f6d225ca624549e283a8e319502ced
MD5 576f1d5fa8cd8628cfe67147e4b3048c
BLAKE2b-256 839f0ddb6aa8a2dcb6ea068f6d5214be422b146d9f8e26a337a25850bc834e54

See more details on using hashes here.

File details

Details for the file openapi_llm_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openapi_llm_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 435ddee191ce3e7b394aae911d71de3cc45e8efe1ada9bab41afb19e02f1bb47
MD5 227b9337c736d6bcf48478b85a96d1f7
BLAKE2b-256 69413cefe22b906baa747c6a607a0bbbee683b2d42eb43e31a5e5316bf93763b

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