Workflow
API calls
icon
Search documents
Agents Gone Wild? Use Tool Call Limits in LangChainJS to Keep Them in Check!
LangChain· 2025-11-20 16:30
Hi, this is Christian from LChain. Have you ever built an agent that just goes nuts with your API calls. Tools can give an agent incredible power, but can also cost you a lot of money to run.In this video, I will show you how you could keep your agent under control without any hard-coded guardrails within your system prompt. Today, we're taking a look at the tool called middleware within LChain. It's a clean declarative way to set credit limits, rate limits, or usage caps on any tools your agent uses.Think ...
How Swarm Prompting Changed the Game
We've started playing around with this idea of swarms of LLMs being thrown at a problem and instead of doing one API call, you do 100 or a thousand. And I mean the quality of improvement or the quality of the output is drastically improved. So if you take something like writing a legal research memo, if you just use one model, one deeper research model or one sort of reasoning model call, you get some output.But if you use a hundred calls and you let them rebuild and and improve what you already have over a ...