Build your own agent harness, part 4: one while turns a chat into an agent

Last time, we left things broken. On purpose, I promise πŸ˜‡ Our model learned to ask for a tool, our harness ran it and sent the result back. One round trip. And when the model wanted a second one, we simply stopped listening: the answer was null. The code comment even said it: "Step 4 turns this if into a while". Well, here we are. And this tiny change is, I think, the most...

8 minute(s) read

Build your own agent harness, part 3: the model never runs anything

So far, our harness is a list we resend, and we know what it costs. Nice. But let's face it, our model is still a chatterbox. It produces text, from a history we send, and that's all. Ask it what time it is: it has no idea. Ask it to read a file: it can't. Nothing outside that text exists for it. And yet, the agents I use every day read my...

8 minute(s) read