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

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.
10 points by stephenblum 37 days ago buttercup.sh 2 comments
Summary not yet generated for this article.

Comments (2 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open