From f1ba3a6a6adeceaa6d8a3fa661f5eb807d561522 Mon Sep 17 00:00:00 2001 From: Wenyueh Date: Thu, 28 May 2026 02:19:07 -0400 Subject: [PATCH 1/2] update config --- src/agentopt/routing/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/agentopt/routing/config.py b/src/agentopt/routing/config.py index b7f199c..fd1bda8 100644 --- a/src/agentopt/routing/config.py +++ b/src/agentopt/routing/config.py @@ -66,7 +66,9 @@ def _resolve_class(policy: str) -> Type[Router]: except ImportError as exc: raise ValueError( f"Could not import routing policy module {module_name!r}: {exc}. " - "Custom routers must be importable on the daemon's PYTHONPATH." + f"Restart the daemon with `agentopt serve --policy-module " + f"path/to/{module_name}.py` so the file is pre-imported, or put " + "its parent directory on the daemon's PYTHONPATH before starting." ) from exc try: cls = getattr(module, class_name) From 0f530d8ed594d1b4479f87ccb24fc252724f113a Mon Sep 17 00:00:00 2001 From: Wenyueh Date: Thu, 28 May 2026 02:19:17 -0400 Subject: [PATCH 2/2] skill --- .codex/skills/agentopt/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codex/skills/agentopt/SKILL.md b/.codex/skills/agentopt/SKILL.md index cf99bfc..8f792f4 100644 --- a/.codex/skills/agentopt/SKILL.md +++ b/.codex/skills/agentopt/SKILL.md @@ -69,7 +69,7 @@ results.export_config("artifacts/best_config.yaml") print("best:", results.get_best_combo(), "cost:", results.selection_cost) ``` -A working fuller version lives at `examples/custom_agent_example.py`. +A working fuller version lives at `examples/selection/local/custom_agent.py`. ---