fix(#92): read BRAIN_TIMEOUT env for ai_decision_timeout + add import os in turn_manager.py
This commit is contained in:
1 parent
49fc817187
commit
5e9685ba70
1 file changed
+2
-1
@@ -46,6 +46,7 @@ from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from collections import deque
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
@@ -98,7 +99,7 @@ class GameEvent:
|
||||
class TurnManagerConfig:
|
||||
"""Tunable parameters for the turn manager."""
|
||||
max_turns: int = 40
|
||||
ai_decision_timeout: float = 30.0 # seconds before fallback
|
||||
ai_decision_timeout: float = float(os.environ.get("BRAIN_TIMEOUT", "300.0")) # seconds before fallback
|
||||
ai_narration_enabled: bool = True
|
||||
ai_decision_delay: float = 0.0 # cosmetic pause (set > 0 for UI readability)
|
||||
priority_pass_limit: int = 8 # max APNAP passes per phase before auto-advance
|
||||
|
||||
Reference in new issue
Block a user