Web search for AI agents: one read-only tool, compact results, and what it really costs
Giving an LLM web search is a tool call: the model writes a query, your code runs the search, and compact results come back for the model to read and cite. The part most tutorials skip is what that co