games.base.config¶

Base configuration module for game agents.

This module provides the foundational configuration class for game agents, defining common settings and parameters that all game agents need.

Example

>>> config = GameConfig(
...     state_schema=ChessState,
...     engines={"player1": player1_engine},
...     enable_analysis=True
... )
Typical usage:
  • Inherit from GameConfig to create game-specific configurations

  • Override default values to customize game behavior

  • Use as configuration for game agents

Classes¶

GameConfig

Base configuration for game agents.

Module Contents¶

class games.base.config.GameConfig¶

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

Base configuration for game agents.

This class defines the core configuration parameters that all game agents need, including state schema, LLM engines, and analysis settings.

state_schema¶

The state schema class for the game.

Type:

Type[GameState]

engines¶

Configurations for game LLMs.

Type:

Dict[str, AugLLMConfig]

enable_analysis¶

Whether to enable move analysis.

Type:

bool

visualize¶

Whether to visualize the game.

Type:

bool

Example

>>> class ChessConfig(GameConfig):
...     state_schema: Type[GameState] = ChessState
...     engines: Dict[str, AugLLMConfig] = {
...         "player1": player1_engine,
...         "player2": player2_engine
...     }
...     enable_analysis: bool = True
class Config¶

Pydantic configuration.