Feature request: Control # function calls per run

I am seeing some runs execute nearly every function call possible, which is unnecessarily expensive both in time and money.

I’d like to have a parameter (perhaps on assistant definition or calling the assistant) to control the max number of function calls it can use to accomplish any given run.