Metadata-Version: 2.4
Name: toolify-ai
Version: 0.1.0
Summary: Turn any Python function into an AI Agent Tool instantly.
Project-URL: Homepage, https://github.com/moussa/toolify
Project-URL: Bug Tracker, https://github.com/moussa/toolify/issues
Author-email: Moustapha Moussa <your.email@example.com>
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# 🛠️ 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

```bash
pip install toolify-ai
```

## Usage

```python
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:**

```json
{
  "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.
