Download polyguard-rl/tests/test_agents.py from TheJackBright/polyguard-openenv-workbench: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/TheJackBright/polyguard-openenv-workbench/resolve/main/polyguard-rl/tests/test_agents.py
- Command line
-
hf download hf://spaces/TheJackBright/polyguard-openenv-workbench/polyguard-rl/tests/test_agents.py
-
curl -L -o test_agents.py https://huggingface.co/spaces/TheJackBright/polyguard-openenv-workbench/resolve/main/polyguard-rl/tests/test_agents.py
333 Bytes
| from app.agents.orchestrator import Orchestrator | |
| from app.env.env_core import PolyGuardEnv | |
| def test_orchestrator_run_step() -> None: | |
| env = PolyGuardEnv() | |
| env.reset(seed=55, difficulty="easy") | |
| orchestrator = Orchestrator(env) | |
| out = orchestrator.run_step() | |
| assert "final_action" in out | |
| assert "reward" in out | |