How does a model become an agent?
A friend of mine summed it up perfectly when he said,I mean, what the fuck is going on?
It's like this..
An LLM is just a clever prediction engine, sure; text in text out. So how can it take over the world? Or organize your movies? Here's how..
The answer is "tools". And the bigger answer is "harness", which is a program that keeps all the other programs, the LLM, the tools and such, under control. Some are brilliant. Some are best run in their own user account.
LLM understands plain text. You feed it a prompt like, "Hot sauce or Mayonnaise?", you get back Mayonnaise, of course1. BUT, what if you ask, "Is that hot sauce or mayonnaise spilt on my carpet?", well, that's a whole different question.
The LLM would be like, "I need to see the carpet, let's employ a tool a for this, user's camera.. (and when that comes back blank and because the harness won't let it off with such failure it says..) User's camera was denied. Erm, let's try connecting to the user's phone through this API I discovered", and so on, until it can get an image it can send to some other tool for analysis, and so on.
Every way, every time, it's just plain text going in and out, unless you are dealing with a multi-modal model2 which understands what images look like, and even then it's still going to need some other tool to capture the actual image of your carpet so it can look at that stream of data instead.
Data in, data out. The data in might start with your prompt, but then the agent is sending its own prompts off in all directions getting back data it can then use to construct other "tool calls", which is just commands designed to get back the text the LLM needs to make the next decision.
And so on.
Until the goal is accomplished.
If the AGENTS.md says, keep going until the goal is accomplished, then all the movies across the entire planet get organised onto your hard drive, or some other outcome.
Some harnesses are better than others at spotting attempted world domination attempts, and other conditions, but you get the picture.
;o)
references:
1. Yes, I KNOW it will be Hot Sauce, but this keeps things spicy!
2. Trying saying that when you're drunk! (over 40s only, please)
2. Trying saying that when you're drunk! (over 40s only, please)
)