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-mlpipeline) - ποΈ 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
- Task Parsing
- Tool Selection
- Plan Graph Construction
- Plan Optimization
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support