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-03 02:32:15 -07:00
2026-09-01 08:30:26 -07:00
2026-09-02 13:30:17 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 20:51:07 +05:30
2026-09-03 13:28:22 -07:00
2026-09-03 13:16:47 -07:00
2026-08-14 21:54:56 -07:00
2026-08-29 18:34:35 -07:00
2026-08-29 18:34:35 -07:00
2026-09-03 13:16:47 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-09-01 16:27:20 +05:30
2026-09-03 13:16:47 -07:00
2026-08-29 18:34:35 -07:00
2026-09-03 13:16:47 -07:00
2026-09-03 13:16:47 -07:00
2026-09-03 13:16:47 -07:00
2026-08-15 00:34:29 -07:00
2026-08-29 18:34:35 -07:00
2026-08-18 20:34:46 -04:00
2026-09-03 13:16:47 -07:00
2026-08-20 12:29:11 -05:00
2026-09-03 13:16:47 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-08-23 02:54:30 -07:00
2026-08-31 10:51:19 -07:00
2026-07-29 13:10:23 -07:00
2026-08-31 13:00:24 -07:00
2026-08-31 11:18:53 -07:00
2026-09-01 23:56:06 -07:00
2026-09-01 23:56:06 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 15:37:24 -07:00
2026-09-03 13:16:47 -07:00
2026-07-15 07:47:18 -07:00
2026-09-02 21:22:07 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-08-03 23:01:03 +05:30
2026-09-03 02:06:51 -07:00
2026-08-13 11:45:27 -07:00
2026-08-02 22:15:20 +05:30
2026-08-11 23:36:47 -05:00
2026-09-01 22:42:27 +05:30
2026-08-31 13:00:24 -07:00
2026-08-02 20:12:50 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 13:29:47 -07:00
2026-08-26 10:10:11 -07:00
2026-09-02 19:12:32 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 09:39:57 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:16:47 -07:00
2026-08-16 01:55:00 -07:00
2026-09-01 08:30:26 -07:00
2026-07-29 13:10:23 -07:00
2026-08-14 21:54:56 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-14 13:56:58 -07:00
2026-09-02 13:29:47 -07:00
2026-07-31 23:16:58 -07:00
2026-08-20 20:20:23 -07:00
2026-08-02 11:52:59 +05:30
2026-08-07 16:57:11 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 03:09:06 +05:30
2026-08-15 01:04:19 -07:00
2026-07-29 13:10:23 -07:00
2026-08-31 14:02:55 -07:00
2026-08-31 13:00:18 -07:00
2026-08-31 13:00:18 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 15:37:24 -07:00
2026-09-01 12:08:11 -07:00
2026-08-12 12:42:39 +05:30
2026-08-28 04:58:14 -07:00
2026-08-23 19:02:30 -07:00
2026-07-29 13:10:23 -07:00
2026-09-01 22:14:06 -07:00
2026-08-24 11:25:04 -07:00
2026-07-29 13:10:23 -07:00
2026-08-15 03:16:21 -07:00
2026-08-23 18:27:07 -07:00
2026-08-26 21:38:20 -07:00
2026-07-22 08:11:40 -07:00
2026-08-31 12:36:02 -07:00
2026-07-29 13:10:23 -07:00
2026-07-23 08:19:14 -07:00
2026-07-29 13:10:23 -07:00
2026-08-09 22:29:39 +05:30
2026-08-23 18:27:07 -07:00
2026-09-02 04:14:10 -07:00
2026-09-02 05:33:22 -07:00
2026-08-30 09:03:57 -07:00
2026-08-28 12:38:49 +05:30
2026-09-02 04:12:12 -07:00
2026-09-03 11:27:55 +05:30
2026-07-29 13:10:23 -07:00
2026-08-02 22:15:20 +05:30
2026-07-29 15:37:24 -07:00
2026-08-07 13:24:56 +05:30
2026-07-29 13:10:23 -07:00
2026-08-30 19:46:21 -07:00
2026-08-31 09:58:11 -07:00
2026-08-26 07:16:04 -07:00
2026-08-31 14:09:42 +05:30
2026-08-28 02:29:27 +05:30
2026-08-30 19:46:21 -07:00
2026-08-31 13:00:33 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-28 06:32:43 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-23 15:03:29 +05:30
2026-07-31 23:16:58 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-31 10:39:55 -07:00
2026-07-31 23:16:58 -07:00
2026-07-29 13:10:23 -07:00
2026-08-31 20:43:00 -05:00
2026-07-29 13:10:23 -07:00
2026-08-23 18:27:07 -07:00
2026-08-26 07:16:04 -07:00
2026-07-29 13:10:23 -07:00
2026-08-14 01:08:13 -07:00
2026-09-01 22:28:52 -07:00
2026-07-29 13:10:23 -07:00
2026-07-23 19:44:35 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-08 05:44:18 -07:00
2026-07-29 21:30:53 -07:00
2026-08-04 11:00:04 +05:30
2026-08-24 04:14:26 +05:30
2026-09-02 20:51:07 +05:30
2026-08-29 18:34:35 -07:00
2026-08-03 19:08:09 +05:30
2026-08-04 11:35:06 -06:00
2026-08-04 13:12:24 +05:30
2026-07-17 13:08:46 -04:00
2026-09-02 21:22:07 -07:00
2026-09-03 13:16:47 -07:00
2026-08-29 18:34:35 -07:00
2026-09-03 03:31:54 +05:30
2026-09-01 22:42:27 +05:30
2026-08-04 13:20:15 +05:30
2026-08-12 23:47:28 -07:00
2026-08-14 21:54:56 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:34:35 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-22 04:20:48 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 11:27:40 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 01:43:22 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 13:30:25 -07:00
2026-08-03 20:43:38 +05:30
2026-08-23 20:01:18 -07:00
2026-08-14 16:37:36 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 13:29:48 -07:00
2026-09-01 02:14:35 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:23:07 -07:00
2026-07-29 13:10:23 -07:00
2026-08-02 21:48:06 -07:00
2026-09-03 03:41:52 -07:00
2026-08-15 01:04:19 -07:00
2026-08-03 21:53:13 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 05:20:11 -07:00
2026-08-23 18:43:12 -07:00
2026-08-30 20:40:43 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-13 15:24:47 +05:30
2026-08-28 13:05:06 +05:30
2026-09-02 05:33:13 -07:00
2026-09-02 14:43:45 -07:00
2026-09-03 13:10:52 -07:00
2026-09-02 18:58:42 -07:00
2026-09-02 13:29:48 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-19 14:58:59 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-27 21:07:21 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 02:30:44 -07:00
2026-08-31 13:00:33 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 03:07:33 +05:30
2026-09-03 03:07:33 +05:30
2026-07-29 13:10:23 -07:00
2026-08-28 12:15:24 -07:00
2026-08-14 02:04:24 +05:30
2026-09-02 13:29:31 -07:00
2026-08-23 18:25:19 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:16:47 -07:00
2026-08-30 09:03:57 -07:00
2026-08-08 05:09:43 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 12:06:48 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 12:42:38 -07:00
2026-07-29 13:10:23 -07:00
2026-08-19 22:41:05 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 21:30:53 -07:00
2026-08-13 23:15:25 +05:30
2026-08-24 21:45:30 -07:00
2026-08-13 23:15:25 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-15 01:04:19 -07:00
2026-08-20 00:03:50 +05:30
2026-09-03 13:16:47 -07:00
2026-08-17 12:58:51 -07:00
2026-09-02 16:46:33 -07:00
2026-08-14 22:04:16 -07:00
2026-09-03 13:16:47 -07:00
2026-08-01 14:27:12 +05:30
2026-08-03 22:43:15 +05:30
2026-07-23 16:17:27 -07:00
2026-08-13 23:10:16 +05:30
2026-08-14 21:36:41 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-23 18:40:09 -07:00
2026-08-13 15:24:47 +05:30
2026-08-13 15:24:47 +05:30
2026-08-19 13:56:11 -05:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-24 03:20:57 -07:00
2026-07-29 15:12:28 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 00:58:16 -07:00
2026-08-14 03:31:22 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 13:12:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 18:29:20 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 15:53:44 -07:00
2026-09-02 21:46:36 -07:00
2026-07-29 15:37:24 -07:00
2026-09-01 07:00:38 -07:00
2026-09-02 19:36:12 -07:00
2026-09-03 04:51:51 +05:30
2026-09-02 07:00:13 -07:00
2026-09-03 02:44:24 -07:00
2026-08-28 23:38:59 -05:00
2026-09-02 13:29:47 -07:00
2026-09-03 13:27:01 -07:00
2026-08-29 19:14:15 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-08-12 18:41:59 -07:00
2026-08-12 16:25:20 -07:00
2026-07-29 13:10:23 -07:00
2026-08-30 01:20:27 -07:00
2026-07-29 13:10:23 -07:00
2026-08-03 22:55:36 +05:30
2026-09-02 20:37:46 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-31 11:18:53 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 15:37:24 -07:00
2026-09-03 12:26:22 +05:30
2026-08-06 02:22:08 +05:30
2026-09-03 12:23:55 +05:30
2026-08-23 17:47:50 -07:00
2026-09-03 13:28:22 -07:00
2026-09-02 13:53:57 -07:00
2026-09-03 13:24:04 -07:00
2026-09-02 13:53:57 -07:00
2026-08-29 11:33:05 +05:30
2026-09-02 16:37:14 -07:00
2026-09-02 16:10:07 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 09:57:39 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 13:52:51 -07:00
2026-08-19 16:04:22 -07:00
2026-08-27 03:24:20 -07:00
2026-08-06 22:02:37 -05:00
2026-09-01 12:07:16 -07:00
2026-08-22 16:47:39 +02:00
2026-08-05 22:40:51 -07:00
2026-09-02 13:28:41 +05:30
2026-08-28 08:28:21 -04:00
2026-08-13 12:23:36 -07:00
2026-08-19 08:52:03 -07:00
2026-08-28 08:28:21 -04:00
2026-08-15 00:33:01 -07:00
2026-08-19 09:14:12 -07:00
2026-08-28 08:28:21 -04:00
2026-08-16 01:55:51 -07:00
2026-08-08 17:42:34 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-08-07 19:44:35 +05:30
2026-08-23 19:04:37 -07:00
2026-09-01 16:01:53 -04:00
2026-07-21 12:11:31 +05:30
2026-08-19 16:32:17 -07:00
2026-07-29 13:10:23 -07:00
2026-08-20 11:36:54 +05:30
2026-09-02 18:58:42 -07:00
2026-08-23 20:00:30 -07:00
2026-09-01 22:28:52 -07:00
2026-09-02 16:27:44 -07:00
2026-08-16 11:32:02 -07:00
2026-08-02 16:16:36 -07:00
2026-08-23 13:34:32 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 02:35:21 -07:00
2026-07-29 13:10:23 -07:00
2026-08-12 19:44:04 -07:00
2026-08-15 23:03:52 -07:00
2026-08-29 08:23:47 -07:00
2026-07-31 07:30:30 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 07:00:13 -07:00
2026-07-29 13:10:23 -07:00
2026-08-30 04:53:39 -07:00
2026-08-29 20:39:04 -07:00
2026-08-16 06:24:56 -07:00
2026-09-02 19:41:47 -07:00
2026-08-08 00:07:14 +05:30
2026-09-03 13:28:22 -07:00
2026-08-14 14:15:42 -07:00
2026-08-08 15:10:24 +05:30
2026-07-29 13:10:23 -07:00
2026-08-08 14:09:41 -07:00
2026-09-02 13:29:48 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-18 20:34:46 -04:00
2026-09-03 13:28:22 -07:00
2026-08-23 18:25:19 -07:00
2026-09-02 01:06:24 -07:00
2026-08-27 16:13:45 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 04:56:59 +05:30
2026-09-03 02:07:33 -07:00
2026-07-29 13:10:23 -07:00
2026-08-29 18:23:07 -07:00
2026-08-07 19:44:35 +05:30
2026-07-29 13:10:23 -07:00
2026-07-30 21:07:36 +05:30
2026-09-02 19:11:11 -07:00
2026-08-29 19:13:00 -07:00
2026-07-28 03:54:16 -05:00
2026-08-29 11:33:05 +05:30
2026-09-03 13:28:22 -07:00
2026-08-24 20:10:44 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-15 00:33:01 -07:00
2026-09-02 13:30:25 -07:00
2026-07-29 13:10:23 -07:00
2026-08-23 18:24:43 -07:00
2026-07-20 13:04:12 -07:00
2026-09-02 00:26:57 -07:00
2026-07-29 13:10:23 -07:00
2026-09-01 20:55:35 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 13:05:57 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 19:46:07 -07:00
2026-09-02 16:42:25 -07:00
2026-07-29 13:10:23 -07:00
2026-08-31 11:18:53 -07:00
2026-09-03 03:31:03 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 09:54:04 -07:00
2026-07-29 13:10:23 -07:00
2026-08-16 01:56:18 -07:00
2026-09-01 03:19:59 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 05:20:11 -07:00
2026-07-29 13:10:23 -07:00
2026-08-20 12:35:20 +05:30
2026-07-29 13:10:23 -07:00
2026-07-16 04:23:12 -07:00
2026-08-28 07:51:31 -07:00
2026-09-03 04:00:51 +05:30
2026-07-24 15:55:08 -07:00
2026-08-16 00:14:58 -07:00
2026-08-03 20:43:38 +05:30
2026-08-12 01:15:25 -07:00
2026-08-29 12:33:44 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 18:55:10 -07:00
2026-08-22 16:07:12 +05:30