AI is bad at dates
Deadlines depend on working days, holidays in every state and even 24 and 31 December. Code calculates them from the official rules; the model only picks the rule and explains it.
Side project · AI agent · 2026
When a household switches its electricity supplier, companies have 24 hours and a 230-page rulebook. My agent answers questions from that rulebook with a source, calculates the deadlines and checks how far a switch has got.
How it works
The agent reads a question, picks the tool it needs, checks the result and only then answers. Facts come from tools, never from the model’s memory.
Results
29 test questions with known answers, checked automatically – including whether the agent invents a date that no tool returned.
Challenges
Deadlines depend on working days, holidays in every state and even 24 and 31 December. Code calculates them from the official rules; the model only picks the rule and explains it.
29 test questions with known answers, checked on every change. The check also catches answers that restate a correct result wrongly, such as a wrong weekday.
They answered from memory. A guardrail now rejects answers without a tool result: 41% → 59% for the weakest model.
On the laptop the same model scores 79% instead of 86-90%. Not a bug but a trade-off between keeping data local and quality – the numbers make it a clear conversation.
Still open
Live demo
The demo shows each tool call with its arguments and result before the answer. It runs from my laptop and is password-protected; its interface is in German, like the people who would use it.
Toolkit
Want to see it live? I’ll show you the demo in a call.