Demo: offer only the tools a request needs
A small coding agent (Qwen3.5-4B on llmman) with every built-in tool on. Before each turn, a decision model (LiquidAI d1-3B, agent.decider.yaml) answers one yes/no question per tool group of agent.yaml — shell, files, web, plan — and a group it gives less than 0.2 is not sent to the model for that turn (toolRouting). The tools in no group (ask_user, unload_model) are always sent.
Editable source: decision-tools-flow.drawio (draw.io); decision-tools-flow.svg is the same picture.
Run it
Pull the models into llmman once:
llmman pull hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M
llmman pull hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
Then, from the playground (a Go module of one file):
cd demos/decision-tools/playground
mm ../agent.yaml
What was measured (2026-10-22, from the sandbox, llmman on the host)
mm ../agent.yaml -p …, the whole turn included:
| Request | Notice | Tools the model used | Time |
|---|---|---|---|
explain what a goroutine is, in two sentences |
🧰 tools: dropped shell (0.04), web (0.08) |
none | 13 s |
what does main.go print? read it |
🧰 tools: all kept |
bash ×2 |
22 s |
run go vet on this module and tell me the result |
🧰 tools: dropped web (0.08) |
bash ×4 |
29 s |
Not measured: whether the shorter tool list makes the model choose better. The groups' scores on eight requests (decider alone) are in the explanation: every group a request needed scored 0.37 or more; plan scored high whatever the request, so it is rarely dropped.
Read more
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|