haive.games.monopoly.main_agent¶
Fixed Main Monopoly agent that orchestrates the complete game.
- This module provides the corrected main agent implementation that:
Ensures BaseModel consistency throughout (no dict conversions)
Properly handles state schema compatibility
Fixes the validation error by maintaining BaseModel state
Classes¶
Main Monopoly agent that orchestrates the complete game. |
Module Contents¶
- class haive.games.monopoly.main_agent.MonopolyAgent(config)[source]¶
Bases:
haive.core.engine.agent.agent.Agent
[haive.games.monopoly.game_agent.MonopolyGameAgentConfig
]Main Monopoly agent that orchestrates the complete game.
- This agent combines:
Game rule enforcement and turn management
Player decision delegation to subgraphs
Complete game state management
Game end detection and winner determination
Initialize the monopoly agent.
- Parameters:
config (haive.games.monopoly.game_agent.MonopolyGameAgentConfig)
- save_game_history(filename=None)[source]¶
Save game history to a file.
- Parameters:
filename (str | None)
- Return type:
None