haive.games.connect4.config¶

Connect4 agent configuration module.

This module provides configuration classes for the Connect4 game agent, including:
  • Base configuration for Connect4 agents

  • LLM configuration for players and analyzers

  • Game settings and visualization options

Example

>>> from haive.games.connect4 import Connect4AgentConfig
>>>
>>> # Create a config with analysis enabled
>>> config = Connect4AgentConfig(
...     enable_analysis=True,
...     should_visualize_graph=True,
...     max_moves=42  # Maximum possible moves in Connect4
... )

Classes¶

Connect4AgentConfig

Configuration class for Connect4 game agents.

Module Contents¶

class haive.games.connect4.config.Connect4AgentConfig[source]¶

Bases: haive.core.engine.agent.agent.AgentConfig

Configuration class for Connect4 game agents.

This class defines the configuration parameters for Connect4 agents, including:
  • Game settings (max moves, analysis options)

  • LLM configurations for players and analyzers

  • Visualization settings

enable_analysis¶

Whether to enable position analysis.

Type:

bool

should_visualize_graph¶

Whether to visualize the game workflow graph.

Type:

bool

max_moves¶

Maximum number of moves before forcing a draw.

Type:

int

aug_llm_configs¶

LLM configurations for players and analyzers.

Type:

Dict[str, AugLLMConfig]

Example

>>> config = Connect4AgentConfig(
...     enable_analysis=True,
...     should_visualize_graph=True,
...     max_moves=42,
...     aug_llm_configs={
...         "red_player": red_player_config,
...         "yellow_player": yellow_player_config,
...         "red_analyzer": red_analyzer_config,
...         "yellow_analyzer": yellow_analyzer_config,
...     }
... )
class Config[source]¶

Pydantic configuration class.

This inner class configures Pydantic behavior for the Connect4AgentConfig.