Teknium
2a95791992
simplify(compat): run_agent/model_tools/toolsets/acp/providers — drop 42 re-exports/aliases, repoint 15 callers + 99 test files
...
run_agent.py: delete the `# noqa: F401` re-export block (agent.process_bootstrap
OpenAI/_SafeWriter/_get_proxy_*, model_tools get_tool_definitions/
handle_function_call/check_toolset_requirements, FailoverReason,
_qwen_portal_headers/_routermint_headers, session_persistence names,
estimate_request_tokens_rough, ContextCompressor + friends, jittered_backoff,
prompt_builder names, message_sanitization names, tool_dispatch_helpers
names) — 41 names run_agent never used itself — and the `_STREAM_DIAG_HEADERS`
back-compat class alias (no in-tree reader). run_agent now imports only what
it uses (get_toolset_for_tool, is_local_endpoint, coalesce/uniquify tool-call
ids, cleanup_vm/get_active_env from terminal_tool_lifecycle).
agent/*: `_ra().X` late-binds that only reached a re-export now import the
defining module directly (agent_runtime_helpers -> process_bootstrap.OpenAI,
model_tools.handle_function_call, session_persistence._safe_session_filename_component;
agent_init -> model_tools.get_tool_definitions/check_toolset_requirements,
_lazy_headers("agent.client_lifecycle", ...) for qwen/routermint;
system_prompt -> agent.prompt_builder / model_tools directly, dropping its
own _ra() shim and the `_r` parameter threading). `_ra()` stays for
run_agent-resident names (logger, AIAgent, _hermes_home, _set_interrupt, ...).
toolsets.py: remove resolve_multiple_toolsets (shim-only, restored by
34abf954bd ); tests/test_toolsets.py pins the same union behavior via
resolve_toolset over each name.
providers/__init__.py: drop the OMIT_TEMPERATURE re-export (no callers via the
package); ProviderProfile stays because __init__ uses it for annotations —
2 tests repointed to providers.base.
agent/iteration_budget.py: drop the "run_agent re-exports the class"
docstring pointer; 4 tests import IterationBudget from its home.
model_tools.py (arg_coercion names), agent/tool_executor.py, and
hermes_cli/cli_session_mixin.py repoints landed via a sibling commit on this
shared worktree.
Callers repointed: gateway/run.py, hermes_cli/cli_chat_turn_mixin.py,
hermes_cli/cli_tui_mixin.py, tui_gateway/session_workdir.py,
agent/transports/codex.py (one-line imports) + comment pointers in
tools/file_state.py, tools/schema_sanitizer.py, scripts/tool_search_livetest.py.
Tests: patch("run_agent.X") / monkeypatch.setattr(run_agent, "X") /
`from run_agent import X` -> defining module across 99 test files.
2026-09-03 13:28:22 -07:00
..
2026-09-02 16:17:31 -07:00
2026-09-03 03:48:31 +05:30
2026-09-02 05:32:20 -07:00
2026-09-03 13:16:47 -07:00
2026-09-03 13:16:47 -07:00
2026-09-01 22:42:27 +05:30
2026-09-03 13:16:47 -07:00
2026-09-03 13:16:47 -07:00
2026-09-02 16:17:31 -07:00
2026-08-31 12:05:07 -07:00
2026-08-31 11:19:05 -07:00
2026-09-03 13:16:47 -07:00
2026-08-24 03:22:57 -07:00
2026-08-22 23:25:43 -07:00
2026-08-16 06:29:53 -07:00
2026-08-29 18:34:35 -07:00
2026-08-16 22:06:24 -07:00
2026-08-21 13:01:35 -07:00
2026-08-20 01:47:06 -07:00
2026-09-03 13:05:57 -07:00
2026-08-16 06:25:46 -07:00
2026-08-22 19:30:10 -07:00
2026-09-03 09:40:49 -07:00
2026-09-01 16:01:53 -04:00
2026-08-16 06:32:08 -07:00
2026-08-29 18:13:33 -07:00
2026-09-01 16:01:53 -04:00
2026-08-29 07:25:17 -07:00
2026-08-28 02:59:17 -07:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-03 13:10:52 -07:00
2026-08-16 06:31:26 -07:00
2026-08-21 15:23:51 -07:00
2026-09-02 16:17:31 -07:00
2026-08-24 15:42:58 +05:30
2026-09-01 00:26:55 +05:30
2026-08-16 01:52:00 -07:00
2026-08-26 11:41:04 -07:00
2026-08-26 11:41:04 -07:00
2026-08-31 12:58:14 -07:00
2026-08-23 02:14:35 -07:00
2026-09-02 13:29:45 -07:00
2026-09-02 15:35:08 -07:00
2026-08-20 04:08:57 -07:00
2026-09-03 13:22:51 -07:00
2026-08-31 12:18:47 -07:00
2026-09-02 06:19:03 -07:00
2026-09-01 07:00:22 -07:00
2026-09-02 16:48:36 -07:00
2026-08-27 11:49:58 +05:30
2026-08-16 22:18:04 -07:00
2026-09-02 00:07:15 -07:00
2026-09-03 12:38:46 +05:30
2026-08-27 13:27:24 +05:30
2026-09-02 05:34:28 -07:00
2026-09-01 16:01:53 -04:00
2026-08-19 19:22:48 -07:00
2026-09-02 20:51:07 +05:30
2026-08-31 03:37:43 -07:00
2026-09-03 02:07:05 +05:30
2026-09-01 08:31:37 -07:00
2026-09-02 06:27:24 -07:00
2026-08-31 10:00:29 -07:00
2026-08-31 06:02:32 -07:00
2026-09-02 00:56:52 -07:00
2026-09-02 04:53:59 -07:00
2026-08-23 21:12:20 -07:00
2026-08-29 19:14:15 -07:00
2026-08-24 15:45:52 +05:30
2026-08-20 20:21:12 -07:00
2026-08-18 14:26:16 -07:00
2026-09-03 13:22:48 -07:00
2026-09-01 11:47:38 +10:00
2026-08-27 10:35:22 -07:00
2026-08-23 16:09:14 -07:00
2026-08-31 15:57:21 +10:00
2026-08-23 15:49:44 -07:00
2026-09-01 11:47:38 +10:00
2026-08-21 22:33:45 +05:30
2026-08-26 07:57:04 -07:00
2026-08-26 04:03:21 -07:00
2026-08-23 19:55:17 -07:00
2026-08-28 05:27:15 -07:00
2026-08-19 19:24:41 -07:00
2026-08-24 03:14:30 -07:00
2026-09-02 06:53:20 -07:00
2026-08-22 21:36:44 -07:00
2026-09-01 16:01:53 -04:00
2026-09-03 13:10:52 -07:00
2026-09-03 13:10:52 -07:00
2026-09-03 13:10:52 -07:00
2026-09-01 10:56:49 -07:00
2026-08-15 03:54:07 -07:00
2026-08-22 13:39:04 -04:00
2026-08-22 13:38:56 -04:00
2026-08-31 03:37:43 -07:00
2026-08-15 03:54:07 -07:00
2026-09-02 20:51:07 +05:30
2026-09-02 09:57:39 -07:00
2026-09-02 06:06:47 -07:00
2026-08-23 05:12:59 -07:00
2026-08-26 16:14:32 -07:00
2026-09-02 20:29:34 -07:00
2026-09-03 11:35:13 +05:30
2026-08-21 14:13:28 +10:00
2026-08-16 01:54:35 -07:00
2026-08-16 02:01:15 -07:00
2026-09-01 11:43:36 -07:00
2026-09-02 06:36:16 -07:00
2026-08-21 03:51:03 -07:00
2026-09-03 13:05:57 -07:00
2026-08-27 20:39:11 +05:30
2026-09-01 10:06:06 -07:00
2026-08-16 06:26:12 -07:00
2026-09-02 13:31:44 -07:00
2026-09-03 13:05:57 -07:00
2026-08-31 12:21:46 -07:00
2026-08-26 16:45:22 -07:00
2026-08-21 02:48:14 +08:00
2026-08-18 16:08:29 -07:00
2026-09-02 05:32:01 -07:00
2026-09-02 06:53:20 -07:00
2026-08-19 19:42:31 -07:00
2026-09-01 16:01:53 -04:00
2026-09-02 16:05:46 -07:00
2026-09-03 13:22:51 -07:00
2026-08-30 19:46:14 -07:00
2026-09-03 13:08:31 +05:30
2026-08-19 23:28:14 -05:00
2026-09-03 13:16:47 -07:00
2026-08-27 17:45:43 -05:00
2026-08-18 11:58:48 -07:00
2026-09-02 16:46:52 -07:00
2026-09-03 12:40:26 +05:30
2026-09-02 05:32:01 -07:00
2026-08-17 14:16:21 +05:30
2026-09-01 10:52:42 -07:00
2026-08-17 14:16:21 +05:30
2026-09-02 05:32:10 -07:00
2026-08-28 22:38:01 -05:00
2026-09-03 13:05:57 -07:00
2026-09-01 22:42:27 +05:30
2026-09-02 16:11:26 -07:00
2026-09-01 22:09:24 -05:00
2026-09-01 02:32:39 -07:00
2026-08-18 14:26:16 -07:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-02 15:03:42 -07:00
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-09-02 15:03:42 -07:00
2026-09-01 16:01:53 -04:00
2026-09-02 05:32:01 -07:00
2026-09-03 13:10:52 -07:00
2026-09-03 13:10:52 -07:00
2026-09-02 15:03:42 -07:00
2026-09-03 13:22:48 -07:00
2026-09-03 13:10:52 -07:00
2026-08-31 12:50:29 -07:00
2026-09-01 16:01:53 -04:00
2026-08-26 09:54:31 -07:00
2026-08-25 04:21:37 -07:00
2026-09-03 13:10:52 -07:00
2026-08-26 17:42:58 -07:00
2026-09-03 03:48:39 +05:30
2026-08-26 15:48:39 -07:00
2026-09-02 15:43:44 -07:00
2026-08-26 15:48:39 -07:00
2026-08-17 12:58:51 -07:00
2026-09-02 15:03:42 -07:00
2026-08-31 10:59:45 -07:00
2026-08-31 04:40:24 -07:00
2026-09-02 06:16:54 -07:00
2026-09-02 21:22:53 -07:00
2026-09-01 12:07:35 -07:00
2026-08-21 14:38:19 -07:00
2026-08-31 04:40:24 -07:00
2026-09-02 16:17:31 -07:00
2026-08-27 11:31:21 -05:00
2026-08-17 12:58:51 -07:00
2026-09-03 13:16:47 -07:00
2026-09-02 05:33:33 -07:00
2026-09-03 09:40:49 -07:00
2026-09-03 03:31:03 -07:00
2026-08-29 20:39:44 +05:30
2026-09-01 07:00:22 -07:00
2026-09-02 10:33:43 -07:00
2026-09-02 10:22:30 -07:00
2026-09-02 15:46:40 -07:00
2026-09-01 16:37:36 -03:00
2026-09-01 16:34:48 -03:00
2026-08-19 23:28:14 -05:00
2026-09-03 08:16:44 -07:00
2026-09-03 13:28:22 -07:00
2026-08-19 19:41:52 -07:00
2026-09-03 00:57:55 -07:00
2026-09-02 15:03:42 -07:00
2026-08-31 11:19:26 -07:00
2026-09-03 05:20:11 -07:00
2026-08-23 00:52:50 -07:00
2026-09-02 15:35:08 -07:00
2026-08-31 01:04:11 -07:00
2026-09-02 15:03:42 -07:00
2026-08-23 04:45:29 -07:00
2026-09-02 06:59:11 -07:00
2026-09-02 15:32:17 -07:00
2026-08-31 08:41:15 -07:00
2026-09-02 15:41:50 -07:00
2026-08-16 22:08:37 -07:00
2026-08-31 00:56:41 -07:00
2026-08-19 08:52:03 -07:00
2026-09-03 13:05:57 -07:00
2026-09-02 07:00:13 -07:00
2026-09-02 16:14:49 -07:00
2026-08-20 04:30:33 -07:00
2026-09-01 16:35:47 -03:00
2026-08-20 04:47:38 -07:00
2026-08-18 02:27:18 -07:00
2026-09-02 15:03:42 -07:00
2026-09-01 01:00:23 -07:00
2026-09-01 22:42:19 -05:00
2026-09-02 15:03:42 -07:00
2026-08-21 00:24:32 -07:00
2026-08-27 11:31:21 -05:00
2026-08-21 00:24:32 -07:00
2026-09-03 01:56:32 +05:30
2026-09-01 10:12:21 -07:00
2026-08-20 01:46:20 -07:00
2026-08-15 14:24:35 -07:00
2026-08-23 01:47:26 -07:00
2026-08-19 23:28:14 -05:00
2026-09-03 13:10:52 -07:00
2026-09-03 13:05:57 -07:00
2026-08-17 15:47:17 -07:00
2026-09-01 07:00:38 -07:00
2026-08-20 04:50:39 -07:00
2026-09-02 00:42:53 -07:00
2026-09-01 09:27:47 -07:00
2026-08-29 20:29:04 +05:30
2026-09-01 16:01:53 -04:00
2026-09-01 16:01:53 -04:00
2026-08-28 02:04:54 -07:00
2026-09-03 13:16:47 -07:00
2026-08-21 14:38:41 -07:00
2026-09-01 01:30:09 -07:00
2026-09-02 15:03:42 -07:00
2026-08-28 05:15:06 -07:00
2026-09-02 06:19:08 -07:00
2026-08-16 02:14:35 -07:00
2026-08-27 17:11:56 +05:30
2026-09-01 07:00:54 -07:00
2026-08-20 12:37:16 -05:00
2026-08-15 02:04:49 -07:00
2026-08-31 12:08:30 -07:00
2026-09-01 22:42:19 -05:00
2026-08-31 14:40:09 -07:00
2026-08-27 02:17:56 -07:00
2026-09-03 03:32:18 +05:30
2026-09-02 00:00:55 -07:00
2026-08-15 02:04:49 -07:00
2026-09-03 02:06:29 -07:00
2026-08-20 02:06:05 -07:00
2026-08-16 22:09:17 -07:00
2026-09-02 06:19:03 -07:00
2026-09-03 13:27:01 -07:00
2026-08-24 15:45:52 +05:30
2026-08-24 15:45:52 +05:30
2026-08-27 10:42:31 +10:00
2026-09-02 13:29:29 -07:00
2026-08-27 13:30:25 +10:00
2026-08-27 09:47:47 +10:00
2026-08-26 15:39:47 +10:00
2026-08-27 13:30:25 +10:00
2026-08-28 15:22:16 +10:00
2026-08-28 15:22:16 +10:00
2026-08-27 09:09:47 +10:00
2026-08-22 19:30:10 -07:00
2026-08-23 05:12:59 -07:00
2026-09-03 13:10:52 -07:00
2026-09-03 13:22:48 -07:00
2026-09-03 13:22:48 -07:00
2026-08-19 10:19:35 -07:00
2026-08-20 02:58:31 +05:30
2026-08-20 02:58:31 +05:30
2026-09-03 03:31:03 -07:00
2026-09-01 10:12:21 -07:00
2026-08-26 07:03:04 -07:00
2026-08-31 10:41:54 -07:00
2026-09-01 12:07:35 -07:00
2026-08-24 03:20:37 -07:00
2026-09-02 15:03:42 -07:00
2026-09-03 13:10:52 -07:00
2026-09-03 13:10:52 -07:00
2026-08-16 01:54:35 -07:00
2026-09-03 13:17:25 -07:00
2026-08-20 03:05:46 -07:00
2026-09-02 13:29:44 -07:00
2026-08-31 10:41:54 -07:00
2026-09-03 00:09:14 -07:00
2026-08-29 20:51:17 +05:30
2026-08-15 18:15:18 -07:00
2026-08-24 15:45:52 +05:30
2026-09-02 06:17:10 -07:00
2026-09-02 16:11:56 -07:00
2026-08-31 10:08:31 -07:00
2026-08-24 03:20:37 -07:00
2026-08-25 12:09:08 -07:00
2026-09-01 16:01:53 -04:00
2026-08-22 23:10:32 -04:00
2026-09-02 13:30:54 -07:00
2026-09-02 01:50:21 +05:30
2026-09-03 12:38:46 +05:30
2026-09-02 12:34:26 -07:00
2026-08-26 16:45:31 -07:00
2026-08-31 10:41:54 -07:00
2026-09-01 08:27:58 -07:00
2026-08-26 17:42:50 -07:00
2026-08-26 11:41:04 -07:00
2026-09-01 08:34:51 -07:00
2026-09-01 08:27:58 -07:00
2026-08-31 12:58:14 -07:00
2026-09-02 16:11:02 -07:00
2026-09-02 21:18:02 -07:00
2026-08-26 18:23:33 -07:00
2026-09-02 00:42:53 -07:00
2026-08-16 10:51:50 -07:00
2026-08-23 04:25:18 -07:00
2026-08-20 04:14:42 -07:00
2026-09-01 08:27:58 -07:00
2026-08-24 03:21:28 -07:00
2026-08-17 23:53:05 -07:00
2026-09-01 00:26:55 +05:30
2026-08-23 04:45:29 -07:00
2026-08-23 04:45:29 -07:00
2026-08-25 14:10:10 -07:00
2026-08-25 14:10:10 -07:00
2026-09-02 16:11:02 -07:00
2026-08-31 10:41:54 -07:00
2026-08-21 15:23:49 -07:00
2026-08-23 00:50:41 -07:00
2026-09-01 07:00:54 -07:00
2026-09-01 07:00:54 -07:00
2026-08-15 13:28:14 -07:00
2026-09-02 23:00:49 -07:00
2026-09-01 07:00:54 -07:00
2026-08-22 19:30:10 -07:00
2026-08-20 03:43:00 -07:00
2026-08-20 12:41:33 -05:00
2026-09-01 08:27:58 -07:00
2026-09-01 07:00:54 -07:00
2026-08-20 05:02:36 -07:00
2026-08-23 02:16:33 -07:00
2026-09-02 01:52:11 +05:30
2026-08-28 13:33:56 -04:00
2026-08-31 12:00:33 -07:00
2026-08-31 10:04:40 -07:00
2026-08-16 22:07:09 -07:00
2026-09-02 00:07:17 -07:00
2026-09-02 20:50:28 -07:00
2026-08-21 22:08:16 -07:00
2026-08-21 22:08:16 -07:00
2026-09-02 16:25:31 -07:00
2026-08-21 19:11:55 -07:00
2026-08-31 13:11:54 -07:00
2026-09-02 16:05:46 -07:00
2026-09-03 13:20:22 -07:00
2026-08-29 18:34:35 -07:00
2026-09-03 01:56:47 +05:30
2026-09-03 01:56:47 +05:30
2026-09-02 16:11:26 -07:00
2026-08-19 01:23:39 -05:00
2026-08-30 22:19:06 -07:00
2026-08-29 19:19:40 -07:00
2026-08-26 21:38:20 -07:00
2026-08-15 01:53:34 -07:00
2026-08-16 20:32:09 -07:00
2026-08-16 20:53:44 -07:00
2026-08-23 19:55:17 -07:00
2026-09-01 12:07:00 -07:00
2026-09-02 15:36:53 -07:00
2026-08-24 03:21:49 -07:00
2026-09-03 13:20:22 -07:00
2026-09-03 03:31:03 -07:00
2026-08-16 01:59:58 -07:00
2026-08-26 16:45:31 -07:00
2026-09-01 11:43:36 -07:00
2026-08-22 13:38:56 -04:00
2026-09-02 13:30:54 -07:00
2026-08-20 01:45:56 -07:00
2026-08-19 23:55:20 -07:00
2026-09-02 21:27:17 -07:00