Limits for a run
An agent decides its own steps, so nobody knows before the run how long it takes or what it costs. A harness gives each run a budget: a limit of time, a limit of cost and a limit of failed steps. Before each step, the harness checks the three limits. If one is reached, the step does not run, and the run stops with a clear reason. The reason tells the user what to change.
About this lesson
Words to know
- harness
- The program around a model that makes the model an agent: it runs the tools, keeps the context, requests permission and sets the limits.
- run budget
- The limits that one run of an agent gets, for example the most time, the most cost and the most failed steps.
Why it matters
Each product with agents has these limits, because one run with no limit can use the budget of a month. The trace of the run records the reason of the stop.
With a year
How it works, a worked example, the exercise with its tests, three hints and the explained solution are in the app, with a year of Algo150 for $29 or ₾49. The first chapter, Model foundations, is free for everyone: start with Vector dot product.