Agents, Tool Use & Product Post-Training · Problem 3 of 7
Implement a tool-calling loop with retries, timeouts, and error handling.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
import time
def run_agent(model, tools, user_goal, max_steps=10, max_retries=2, timeout_s=5.0):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Implement a tool-calling loop with retries, timeouts, and error handling.
Implement the function/class skeleton in the editor. Any correct approach is accepted.