Problem
The examples aren't tested, so an API change can break them without anyone noticing (for example when Router became keyword-only).
Proposal
Add tests/test_examples.py:
- import
examples/basic.py and examples/agent.py
- patch
model_router.router.fetch_catalog, model_router.jev.request_json and the chat call
- run each
main() with a fake key set in the environment
Done when
Problem
The examples aren't tested, so an API change can break them without anyone noticing (for example when
Routerbecame keyword-only).Proposal
Add
tests/test_examples.py:examples/basic.pyandexamples/agent.pymodel_router.router.fetch_catalog,model_router.jev.request_jsonand the chat callmain()with a fake key set in the environmentDone when