Tool Planner LM πŸ”§πŸ§ 

ToolPlannerLM is an AI planning model that predicts the optimal sequence of tools or APIs an agent should use to complete a given task.

It converts natural-language tasks into structured, explainable execution plans, making it ideal for autonomous agents, workflow automation, and tool-augmented LLM systems.


πŸ” What Problem Does It Solve?

Agent systems often fail not because they lack intelligence, but because they:

  • Choose the wrong tools
  • Use tools in the wrong order
  • Miss dependencies between actions

ToolPlannerLM solves this by generating a graph-based plan that defines:

  • Which tools to use
  • In what order
  • Why each step is needed

✨ Key Features

  • 🧠 Natural-language task parsing
  • πŸ”§ Intelligent tool selection
  • πŸ—ΊοΈ Graph-based execution planning
  • ⚑ Plan optimization (ordering & cost awareness)
  • 🧩 Explainable, modular design
  • πŸ€— Hugging Face–ready (graph-ml pipeline)
  • πŸŽ›οΈ Gradio demo included
  • πŸ§ͺ Unit-tested core logic

πŸ“‚ Project Structure

toolplanner-lm/
β”œβ”€β”€ config/
β”œβ”€β”€ data/
β”œβ”€β”€ src/
β”œβ”€β”€ training/
β”œβ”€β”€ pipelines/
β”œβ”€β”€ scripts/
β”œβ”€β”€ tests/
β”œβ”€β”€ notebooks/
β”œβ”€β”€ app.py
β”œβ”€β”€ README.md
β”œβ”€β”€ model_card.md
β”œβ”€β”€ requirements.txt
└── LICENSE

βš™οΈ Installation

pip install -r requirements.txt

πŸš€ Quick Usage

from src.inference import ToolPlannerPipeline

pipeline = ToolPlannerPipeline()

task = "Find the population of France and calculate growth rate"
result = pipeline(task)

print(result)

πŸŽ›οΈ Gradio Demo

python app.py

🧠 How It Works

  1. Task Parsing
  2. Tool Selection
  3. Plan Graph Construction
  4. Plan Optimization
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Evaluation results