Download src/world_simulator/agents/scripted.py from build-small-hackathon/world-simulator: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/world-simulator/resolve/refs%2Fpr%2F2/src/world_simulator/agents/scripted.py
- Command line
-
hf download hf://spaces/build-small-hackathon/world-simulator@refs/pr/2/src/world_simulator/agents/scripted.py
-
curl -L -o scripted.py https://huggingface.co/spaces/build-small-hackathon/world-simulator/resolve/refs%2Fpr%2F2/src/world_simulator/agents/scripted.py
313 Bytes
| from __future__ import annotations | |
| from world_simulator.agents.base import AgentAction | |
| from world_simulator.domain import WorldState | |
| class IdlePlanner: | |
| def plan(self, world: WorldState, actor_id: str) -> AgentAction: | |
| return AgentAction(actor_id=actor_id, kind="idle", payload={"tick": world.tick}) | |