From 8018bce252d576cdebdccad804b27e98930f50db Mon Sep 17 00:00:00 2001 From: user Date: Thu, 26 Dec 2024 07:08:28 -0500 Subject: [PATCH] Fix variable reference. --- ra_aid/agent_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ra_aid/agent_utils.py b/ra_aid/agent_utils.py index d972d25..82779ef 100644 --- a/ra_aid/agent_utils.py +++ b/ra_aid/agent_utils.py @@ -459,12 +459,12 @@ def run_agent_with_retry(agent, prompt: str, config: dict) -> Optional[str]: with InterruptibleSection(): try: - logger.debug("Attempt %d/%d", attempt + 1, max_retries) # Track agent execution depth current_depth = _global_memory.get('agent_depth', 0) _global_memory['agent_depth'] = current_depth + 1 for attempt in range(max_retries): + logger.debug("Attempt %d/%d", attempt + 1, max_retries) check_interrupt() try: for chunk in agent.stream({"messages": [HumanMessage(content=prompt)]}, config):