The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(run_agent): drop unused logger in api_request_hooks
Tekniumd69afde2d399
diff --git a/agent/api_request_hooks.py b/agent/api_request_hooks.pyindex 04e8d78977d..ae58a2013e8 100644--- a/agent/api_request_hooks.py+++ b/agent/api_request_hooks.py@@ -4,7 +4,6 @@ JSON-safe coercion, secret-key redaction, size caps, and the ``api_request_errorExtracted from ``run_agent.py``; every method resolves through ``AIAgent``'s MRO unchanged."""import json-import loggingimport osimport timefrom types import SimpleNamespace@@ -12,9 +11,6 @@ from typing import Any, Dict, Optionalfrom agent.usage_pricing import normalize_usage-# Same logger name as the origin module so log records / caplog filters are unchanged.-logger = logging.getLogger("run_agent")-class ApiRequestHooksMixin:"""Hook payload sanitising + ``api_request_error`` dispatch (see module docstring)."""