Skip to content

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.

๐Ÿš€ Try it live

๐Ÿง  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

 
 
 

Contributors

Languages