haive.games.monopoly.main_agent =============================== .. py:module:: haive.games.monopoly.main_agent .. autoapi-nested-parse:: 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 ------- .. autoapisummary:: haive.games.monopoly.main_agent.MonopolyAgent Module Contents --------------- .. py:class:: MonopolyAgent(config) Bases: :py:obj:`haive.core.engine.agent.agent.Agent`\ [\ :py:obj:`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. .. py:method:: get_game_summary() Get a summary of the game configuration and status. .. py:method:: save_game_history(filename = None) Save game history to a file. .. py:method:: setup_workflow() Set up the complete monopoly workflow. This creates the main game workflow nodes and connects them properly. .. py:method:: start_game() Start a new monopoly game. CRITICAL: Keep everything as BaseModel - no dict conversions! :returns: Final game state as MonopolyState BaseModel