Function-calling tester
The second test set of testing/: function calling alone. A coordinator follows the function-calling-check skill: it sends eight requests, one at a time, to the candidate agent with ask_agent. The candidate's only tools are the ones declared in its agent file (tools:); every call it makes is logged and checked by a script. At the end, a Markdown report in reports/.
| Agent | File | Model | Role |
|---|---|---|---|
| 🧪 coordinator | agent.yaml |
Gemma 4 12B (hf.co/unsloth/gemma-4-12b-it-GGUF:Q4_K_M) |
runs the loop, writes notes and a verdict |
| 🎯 candidate | agent.candidate.yaml |
Luciole 1B Instruct 1.1 (hf.co/OpenLLM-France/Luciole-1B-Instruct-1.1-GGUF:Q4_K_M) |
the model under test: no built-in tool, six declared tools |
Run
llmman pull hf.co/unsloth/gemma-4-12b-it-GGUF:Q4_K_M
llmman pull hf.co/OpenLLM-France/Luciole-1B-Instruct-1.1-GGUF:Q4_K_M
llmman serve
cd testing/function-calling
../common/run.sh # mm -p "Test the candidate.", then the report even if the run stops early
# or, in the window:
mm -tui # then type: $function-calling-check
Run it from testing/function-calling/. python3 must be on the PATH (the tools and the checks). Both agents run commands without asking (yolo: true): the coordinator only runs ./bench.sh, the candidate only its declared tools. Both models stay loaded during a run (unloadModels: false): reloading the coordinator after each request made it re-read the whole conversation, and the server then broke its stream.
The candidate's tools
Declared in agent.candidate.yaml, each one runs tools/call.sh, which logs the call (tool name and arguments, as mm passed them) in work/calls.jsonl and answers with a fixed, made-up result — nothing is looked up or booked.
| Tool | Parameters | Made-up answer |
|---|---|---|
get_weather |
city string · unit enum celsius/fahrenheit, optional, default celsius |
Paris: 18°C, cloudy |
convert_currency |
amount number · from, to enum EUR/USD/JPY/GBP |
250 EUR = 270.00 USD |
find_user |
email string |
user_id: 4217, name: Alice Martin for alice@example.com |
list_orders |
user_id integer · status enum open/shipped/all, optional |
two open orders for 4217 |
create_reminder |
text, when string · urgent boolean, optional |
reminder created: … |
book_table |
restaurant, date string · people integer |
table booked … |
To test other tools, change them here and the checks in skills/function-calling-check/check.py, which read the calls by tool and argument name.
The eight tests
| Test | Capability | Request | PASS when |
|---|---|---|---|
| F1 | one call, a string argument | the weather in Paris | one get_weather(city=Paris), default unit kept |
| F2 | an enum argument | the weather in Tokyo in fahrenheit | one get_weather(city=Tokyo, unit=fahrenheit) |
| F3 | a number and two enums | convert 250 euros to US dollars | one convert_currency(250, EUR, USD) |
| F4 | a boolean argument | remind me to call Alice tomorrow at 9:00, urgent | one create_reminder with the text, a time, urgent=true |
| F5 | chained calls | find alice@example.com, then her open orders | find_user, then list_orders(user_id=4217, status=open) with the id it returned |
| F6 | two calls in one request | the weather in Rome and in Oslo | two get_weather, Rome and Oslo |
| F7 | no call when no tool fits | 12 times 12 | no call |
| F8 | no invented arguments | book a table (nothing more said) | no call |
The exact prompts are in skills/function-calling-check/tests.tsv. One try per test.
How a run goes
The bench script drives the loop: the coordinator repeats ./bench.sh next, then ask_agent with the prompt next printed. Each next checks the calls of the test just run, empties the call log, and hands out the following test, so no check can be skipped. When all are done, the coordinator writes its notes and verdict in reports/.notes.md and runs ./bench.sh report, which writes reports/<date>-<model>.md: model, score, results table, notes, list of tests. If the coordinator stops early, ../common/run.sh writes the report from what was recorded (unchecked tests show as NOT RUN).
Measured results
2026-10-26, on the author's llmman, Gemma 4 12B checking Luciole 1B: the full run took 13 min 04 s and scored 5 of 8 — the report, written by the coordinator itself.
| PASS | FAIL |
|---|---|
| F1, F2, F4 (string, enum, boolean arguments), F6 (two calls), F8 (no booking with invented values) | F3: runaway tool call · F5: max_tokens hit while writing a call · F7: a tool called for 12 × 12, then a loop |
Luciole is not stable from one run to the next (temperature 0.7, the GGUF's own setting). Over the runs made that day: F3 passed twice and failed twice — once with 42 convert_currency calls with made-up amounts in a single answer; F2 failed once with two calls (celsius, then fahrenheit); F5 invented user_id values and damaged the e-mail address once. One run is a sample, not a verdict.
What the first runs taught the bench (all fixed before the run above): with the coordinator reloaded after each request, its stream broke on the long conversation; with a first procedure that let the coordinator call the checks itself, it skipped all of them once, and twice rewrote the script's path with underscores (hence ./bench.sh and the next loop); it recorded a result under the literal id test (now refused).
Files
testing/function-calling/
├── agent.yaml the coordinator
├── agent.candidate.yaml the agent under test: its model and its six declared tools
├── bench.sh the short way to call the bench: ./bench.sh next
├── tools/call.sh the program behind every tool: logs the call, answers a made-up result
├── skills/function-calling-check/
│ ├── SKILL.md the procedure: the loop, then the report
│ ├── bench.sh start · next · record <id> FAIL "why" · calls · table · report
│ ├── check.py the check of each test, from work/calls.jsonl
│ └── tests.tsv one line per test: id, capability, summary, mode, the exact prompt, a note
├── reports/ one Markdown report per run
└── work/ the call log of the test in progress (git-ignored)
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|