Skip to main content

OpenAI Function Generator

This project provides a tool to generate JSON schema definitions for OpenAI functions.

Installation

pip install openai-tool-generator

Usage

from openai_tool_generator.generate_tool_definition import generate_tool_definition

def sample_func(a: int, b: Optional[str] = "default", c: List[float] = [1.0, 2.0]) -> None:
    """
    Sample function for testing
    """
    pass

definition = generate_tool_definition(sample_func)
print(definition)

Metadata

Release files for openai-tool-generator 0.2.0

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

Source distribution (sdist)

Source distribution for openai-tool-generator 0.2.0
File Size Uploaded Provenance Actions
openai_tool_generator-0.2.0.tar.gz 3.7 kB Without provenance Details for openai_tool_generator-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openai-tool-generator 0.2.0
File Interpreter ABI Platform Actions
openai_tool_generator-0.2.0-py3-none-any.whl Python 3 none any Details for openai_tool_generator-0.2.0-py3-none-any.whl

Total release size: 7.9 kB

Release files / openai_tool_generator-0.2.0.tar.gz

Download URL openai_tool_generator-0.2.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cf80a1b5dabe3925bfeb2a552a02732c402a9e7c4261e9ef1e2256741c751534
BLAKE2b-256 checksum
How to use checksums
d8dde9afd8e935c49f93a6b76f997758f17fee625264a3c04c428572fc2d4855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.1

Release files / openai_tool_generator-0.2.0-py3-none-any.whl

Download URL openai_tool_generator-0.2.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cc2954a479467bda33f79b8e7ed8daaf35ac45c9c2d286c1b8055eebe6c4c8d
BLAKE2b-256 checksum
How to use checksums
3b51aa7f2f07e862f2d7909e7d5c4963d485750bbab1164a99d927f8bb942f8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.1

Security for openai-tool-generator 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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