haive.games.monopoly.game_agent =============================== .. py:module:: haive.games.monopoly.game_agent .. autoapi-nested-parse:: Fixed Monopoly game agent implementation. This module provides the corrected main game agent for orchestrating a Monopoly game, with proper handling of BaseModel objects from LangGraph instead of dictionaries. Classes ------- .. autoapisummary:: haive.games.monopoly.game_agent.MonopolyGameAgent haive.games.monopoly.game_agent.MonopolyGameAgentConfig Module Contents --------------- .. py:class:: MonopolyGameAgent(config) Bases: :py:obj:`haive.core.engine.agent.agent.Agent`\ [\ :py:obj:`MonopolyGameAgentConfig`\ ] Main game agent for orchestrating Monopoly. Initialize the game agent. .. py:method:: check_doubles(state) Check if doubles were rolled and handle accordingly. .. py:method:: check_game_end_node(state) Check if the game should end. .. py:method:: end_turn(state) End the current player's turn. .. py:method:: handle_jail_turn(state) Handle a turn when player is in jail. .. py:method:: handle_landing(state) Handle the player landing on a space. .. py:method:: handle_property_space(state, property_name) Handle landing on a property space. .. py:method:: handle_special_space(state, space_name) Handle landing on special spaces like GO, Jail, etc. .. py:method:: move_player_node(state) Move the current player based on dice roll. .. py:method:: offer_property_purchase(state, property_obj) Offer property purchase to current player. .. py:method:: pay_rent(state, property_obj) Handle rent payment. .. py:method:: roll_dice_node(state) Roll dice for the current player. .. py:method:: route_after_doubles(state) Route based on doubles status. .. py:method:: route_game_end(state) Route based on game end status. .. py:method:: setup_workflow() Set up the main game workflow. .. py:method:: start_turn(state) Start a player's turn. .. py:class:: MonopolyGameAgentConfig Bases: :py:obj:`haive.core.engine.agent.config.AgentConfig` Configuration for monopoly game agent.