Skip to content

Paste your function, hit convert, and get a clean summary ready for use in LLM-based systems.

13Aluminium/ToolScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ Function-to-Tool Converter

Turn any well-typed Python function into a structured tool description — perfect for AI agents, function-calling models, and LLM-powered applications.

This tool takes your function and extracts:

  • 🔍 Function name
  • 🧾 Docstring as description
  • 🧩 Parameters and types (with default values)
  • 📤 Return type
  • 🧠 Outputs a standardized tool summary for use with agents

🌐 Live Demo

Paste your Python function and convert it instantly into a structured tool description.

🧠 Why This Matters

Modern LLM agents (like those powered by OpenAI, LangChain, LlamaIndex, and more) require well-structured metadata about tools they can use. This app helps bridge that gap between raw Python and AI usability.

It’s especially useful for:

  • Tool registration with OpenAI Function Calling or LangChain
  • Building self-documenting APIs
  • Teaching LLMs to understand your code dynamically

📽️ Demo

Here’s a quick walkthrough of what the tool can do:

[Watch the demo]


✨ Features

  • Paste a function with @tool decorator
  • Click "Convert" to extract a tool summary
  • Optional syntax highlighting
  • Built-in example functions
  • Copy-ready output for your AI agent

📦 Example Input

@tool
def get_weather(city: str, units: str = "metric") -> dict:
    """Fetch the current weather for a given city using METAR data.

    Units can be 'metric' or 'imperial'.
    """
    ...

About

Paste your function, hit convert, and get a clean summary ready for use in LLM-based systems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages