The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(agent/agent_init): reuse agent_runtime_helpers._ra instead of a duplicate lazy run_agent shim
Teknium3635f9aa4a3f
diff --git a/agent/agent_init.py b/agent/agent_init.pyindex 7e81542832b..ec6656df7af 100644--- a/agent/agent_init.py+++ b/agent/agent_init.py@@ -24,6 +24,7 @@ from typing import Any, Callable, Dict, List, Optionalfrom urllib.parse import parse_qs, urlparse, urlunparsefrom agent.context_compressor import ContextCompressor+from agent.agent_runtime_helpers import _rafrom agent.iteration_budget import IterationBudgetfrom agent.memory_manager import StreamingContextScrubberfrom agent.session_activity import ActivityProvenance@@ -71,12 +72,6 @@ def _warn_memory_provider_unavailable(name: str, reason: str = "") -> None:)-def _ra():- """Lazy ``run_agent`` so ``patch("run_agent.OpenAI")`` & co. reach this code path."""- import run_agent- return run_agent--# Canonicalize an endpoint URL for model-route identity comparisons._normalize_route_base_url = normalize_route_base_url