For tools you can specify if there is a maximum number of invocations allowed. This sample shows a tool that can only be invoked once. print(f"Number of tool calls ...
Abstract: The increasing adoption of photovoltaic (PV) systems for renewable energy generation necessitates efficient maximum power point tracking (MPPT) under partial shading conditions (PSC), where ...