Code
T7003 limits-incomplete
A limit that is stated can never bound, so a run or a model could use without end. The check finds it, and the app is not built.
Details
- A limit that names no unit:
perDay: {},perCallerPerDay: {},perRun: {}. - A limit that names a unit which nothing in the project counts, where every model of the project is of a provider that ships or over a service call: the units of the fixed calls are
calls,failed,tokensIn,tokensOut,tokensCached,tokensStored,secondsandcharacters, beside the keys ofunitsof each model over a service call, and of a run alsoworkSeconds,lostSeconds,cpuMs,mainCpuMsandworkedMs. A provider of the builder's own may report any unit, so with one in the project the names are not held. unitsof a model over a service call that names a unit of the engine's own, such asbytesOut.countBy: 'app'on a model that statesperCallerPerDay: such a model is counted with no caller.
The fix
Name a unit that is counted, with its most, or leave the limit out.
TypeScript
export const helper = agent('helper', { model: writer, instructions: 'You help.', tools: [], limits: { steps: 12, perRun: { tokensOut: 50000 } } })