games.fox_and_geese.fixed_runner¶
Fixed runner for Fox and Geese game without LangGraph streaming issues.
Classes¶
Fixed Fox and Geese agent that handles state directly. |
Functions¶
|
Run the Fox and Geese game with the fixed runner. |
Parse command line arguments. |
Module Contents¶
- class games.fox_and_geese.fixed_runner.FixedFoxAndGeeseAgent(config=FoxAndGeeseConfig())¶
Bases:
haive.games.fox_and_geese.agent.FoxAndGeeseAgent
Fixed Fox and Geese agent that handles state directly.
Initialize the Fox and Geese agent.
- Parameters:
config (FoxAndGeeseConfig) – The configuration for the Fox and Geese game.
- run_fixed_game(delay=1.0, max_moves=100)¶
Run the Fox and Geese game step by step, managing state directly.
This bypasses LangGraph’s stream method, which can have issues with certain state types.
- Parameters:
- Returns:
Final game state
- Return type:
- games.fox_and_geese.fixed_runner.main()¶
Run the Fox and Geese game with the fixed runner.
- games.fox_and_geese.fixed_runner.parse_arguments()¶
Parse command line arguments.