application
10 minTool Use: Counting & Math
tools
python
accuracy
Tools:Google AI Studio
LLMs are historically bad at math and counting because they predict tokens. In this activity, you will see how using 'tools' (code execution) solves this problem.
Step 1 of 3
The Fail Test
Paste a block of text and ask: 'How many words are in this text?' without enabling tools. Observe the likely incorrect answer.
The Success Test
Locate the Tools section in settings and toggle Code Execution to ON. Ask the same question again, or try a math problem like 'Calculate 12434 * 312'.
Observe
Watch the model write and run a Python script to get the exact answer.