Skip to main content

🛠️ Toolify

Stop writing JSON schemas by hand.

Toolify converts your Python functions into OpenAI/Anthropic/Gemini-compatible tool schemas instantly using a simple decorator.

Installation

pip install toolify-ai

Usage

import json
from toolify import agent_tool

@agent_tool
def calculate_vat(amount: float, country_code: str):
    """
    Calculates the Value Added Tax for a given country.
    """
    # Your actual logic here...
    return amount * 0.2

# Generate the schema automatically
print(json.dumps(calculate_vat.to_schema(), indent=2))

Output:

{
  "name": "calculate_vat",
  "description": "Calculates the Value Added Tax for a given country.",
  "parameters": {
    "type": "object",
    "properties": {
      "amount": { "type": "number", "description": "Value for amount" },
      "country_code": { "type": "string", "description": "Value for country_code" }
    },
    "required": ["amount", "country_code"]
  }
}

Why?

Agent engineering shouldn't mean writing boilerplate JSON. Keep your code and your schemas in sync automatically.

Release files for toolify-ai 0.1.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 toolify-ai 0.1.0
File Size Uploaded
toolify_ai-0.1.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for toolify-ai 0.1.0
File Interpreter ABI Platform
toolify_ai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / toolify_ai-0.1.0.tar.gz

Download URL toolify_ai-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
52d24b64504976008c4c06a2ec73bb17c40c7cd391daeebde64b409a9b650d4a
BLAKE2b-256 checksum
How to use checksums
664b5183cd15d36112cbf174d83e202f66c7b54d8db6635099811bad2b3d7696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / toolify_ai-0.1.0-py3-none-any.whl

Download URL toolify_ai-0.1.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d602eba5fe67b4a91809c04c043ff24c7be3501213841b0279a055e9070666bc
BLAKE2b-256 checksum
How to use checksums
c64b9eb688dddbabdeb81d943e11077908acabc7d755ce198ae8e2ad614f76f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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