Turn any Python function into an AI Agent Tool instantly.
Project description
🛠️ 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toolify_ai-0.1.0.tar.gz.
File metadata
- Download URL: toolify_ai-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52d24b64504976008c4c06a2ec73bb17c40c7cd391daeebde64b409a9b650d4a
|
|
| MD5 |
f178a33a5b70825df5d2fc933cd4ac47
|
|
| BLAKE2b-256 |
664b5183cd15d36112cbf174d83e202f66c7b54d8db6635099811bad2b3d7696
|
File details
Details for the file toolify_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: toolify_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d602eba5fe67b4a91809c04c043ff24c7be3501213841b0279a055e9070666bc
|
|
| MD5 |
7b06d24fe40f852c03ca342a872e2bef
|
|
| BLAKE2b-256 |
c64b9eb688dddbabdeb81d943e11077908acabc7d755ce198ae8e2ad614f76f6
|