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

WebLLM: run a language model in the browser on WebGPU