Spaces:
Sleeping
Sleeping
Download src/persistentpoker_bench/testsupport.py from Artvv/PersistentPoker-Bench: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/Artvv/PersistentPoker-Bench/resolve/main/src/persistentpoker_bench/testsupport.py
- Command line
-
hf download hf://spaces/Artvv/PersistentPoker-Bench/src/persistentpoker_bench/testsupport.py
-
curl -L -o testsupport.py https://huggingface.co/spaces/Artvv/PersistentPoker-Bench/resolve/main/src/persistentpoker_bench/testsupport.py
585 Bytes
| from __future__ import annotations | |
| from persistentpoker_bench.hand_runner import StaticDecisionAgent | |
| from persistentpoker_bench.schemas import LLMDecision, WinnerPoolDecision | |
| def static_agent_factory() -> StaticDecisionAgent: | |
| # Keep demo/smoke agents deterministic but with enough scripted actions to | |
| # survive longer multi-hand runs without exhausting the stub. | |
| decisions = [LLMDecision("call", None, (), WinnerPoolDecision.CONTINUE)] * 1024 + [ | |
| LLMDecision("check", None, (), WinnerPoolDecision.CONTINUE) | |
| ] * 2048 | |
| return StaticDecisionAgent(decisions) | |