Function Calling Explained: one diagram is enough
The model doesn't call your functions — it only outputs a structured 'call this tool with these args', and your code runs it. One diagram + 30 lines to make function calling click.
3 posts
The model doesn't call your functions — it only outputs a structured 'call this tool with these args', and your code runs it. One diagram + 30 lines to make function calling click.
MCP isn't magic: it's a JSON-RPC protocol that turns last post's hardcoded cat tool into a standalone process any LLM app can use. 30 lines of runnable server + client.
Strip away the frameworks and an agent is just a loop: call the API to ask the model → run the tool → feed the result back. One complete runnable example, using DeepSeek.
Subscribe via RSS to get new posts automatically.
Technical questions, feedback and leads: use the guestbook.