How do AI agents actually use tools like web search? The model can't magically go online, it can only predict text. So when it wants to search, it outputs a structured message that looks like code, saying it wants to use the search tool. The code running the model (the agent harness) sees that, runs the tool, gets the result, and hands it back to the model to process. That handoff (model decides, harness executes) is the whole way AI agents work at scale. #techwithtim #ai #aiengineer
How do AI agents actually use tools like web search? The model can't magically go online, it can only predict text. So when it wants to search, it outputs a structured message that looks like code, saying it wants to use the search tool.
The code running the model (the agent harness) sees that, runs the tool, gets the result, and hands it back to the model to process. That handoff (model decides, harness executes) is the whole way AI agents work at scale.
#techwithtim #ai #aiengineer