← Back to events
ActiveTech

How AI tool calling works (40 lines of vanilla JavaScript)

What happened

Lesson 2 of the free buttercup.sh agent course: the twenty-line loop that turns a chat model into an agent, working JavaScript and Python, what each turn costs in tokens, and an exercise you run in the browser.

Summary assembled by rule from the sources below

Why it's spreading

Sources