aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tools/calc.toml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-26 08:24:02 +0200
committerDanilo M. <danix@danix.xyz>2026-09-26 08:24:02 +0200
commit3b6f56f93c829a741df4ded189a4b8c98ce7fdff (patch)
tree1c947731ed3704bdf60d6660f21d10c6ae8b157f /examples/tools/calc.toml
parentb1816ed443d715d0c706a40fd202d595d4a11926 (diff)
downloaddesktop-assistant-3b6f56f93c829a741df4ded189a4b8c98ce7fdff.tar.gz
desktop-assistant-3b6f56f93c829a741df4ded189a4b8c98ce7fdff.zip
Add calc, mail, playing and finance example tools
All read-only: each command is fixed in its tool file, so the model fills parameters but can never reach mailctl tag or firefly tx add. qalc reads "17.5% of 240" as a modulo, so the calc hint shows percent as a factor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'examples/tools/calc.toml')
-rw-r--r--examples/tools/calc.toml7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/tools/calc.toml b/examples/tools/calc.toml
new file mode 100644
index 0000000..c97ef04
--- /dev/null
+++ b/examples/tools/calc.toml
@@ -0,0 +1,7 @@
+description = "Calculator: arithmetic, percentages, unit and currency conversion, date math (days between dates). Use it instead of computing yourself."
+command = ["qalc", "-t", "{expression}"]
+timeout = 10
+
+[params.expression]
+type = "string"
+description = "A qalc expression. Percent as a factor: 240 * 17.5%, 80 - 15% (not \"17.5% of 240\", qalc reads % there as modulo). Also 70 mph to km/h, 100 EUR to USD, days(today; 2026-12-25)."