Sulba
ReviewSign inAccount
Theme
Editor theme
Light
Dark

Intermediate · Building on model APIs

Tools, streaming and MCP

Give the bicycle repair shop's assistant tools: the shop's functions described for the model, the loop that runs the calls it makes, its replies read as they stream in, a review of an assistant's tool loop, and the shop's tools served over the Model Context Protocol.

You build
tools.py, then loop.py, then stream.py, then assistant.py, then server.py
Stages
3 Build, 1 Catch, 1 Ship
Time
About 3.5 hours
Runs on
Your machine

Loading the workspace…