Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codex/skills/agentopt/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

---

Expand Down
4 changes: 3 additions & 1 deletion src/agentopt/routing/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading