Spaces:
Sleeping
Sleeping
Upload src/persistentpoker_bench/testsupport.py with huggingface_hub
Browse files
src/persistentpoker_bench/testsupport.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from persistentpoker_bench.hand_runner import StaticDecisionAgent
|
| 4 |
+
from persistentpoker_bench.schemas import LLMDecision, WinnerPoolDecision
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
def static_agent_factory() -> StaticDecisionAgent:
|
| 8 |
+
# Keep demo/smoke agents deterministic but with enough scripted actions to
|
| 9 |
+
# survive longer multi-hand runs without exhausting the stub.
|
| 10 |
+
decisions = [LLMDecision("call", None, (), WinnerPoolDecision.CONTINUE)] * 1024 + [
|
| 11 |
+
LLMDecision("check", None, (), WinnerPoolDecision.CONTINUE)
|
| 12 |
+
] * 2048
|
| 13 |
+
return StaticDecisionAgent(decisions)
|