haive.games.chess.example_configurable¶

Example of running chess with configurable LLMs.

This example demonstrates how to run chess games with different LLM providers and models, showing the flexibility of the new configuration system.

Functions¶

list_available_providers()

List all available LLM providers for chess.

run_advanced_chess_example()

Run an example with advanced configuration.

run_chess_with_custom_llms([white_provider, ...])

Run a chess game with custom LLM configurations.

Module Contents¶

haive.games.chess.example_configurable.list_available_providers()¶

List all available LLM providers for chess.

haive.games.chess.example_configurable.run_advanced_chess_example()¶

Run an example with advanced configuration.

haive.games.chess.example_configurable.run_chess_with_custom_llms(white_provider='anthropic', white_model=None, black_provider='anthropic', black_model=None, max_moves=50, enable_analysis=True)¶

Run a chess game with custom LLM configurations.

Parameters:
  • white_provider (str) – LLM provider for white (e.g., “anthropic”, “openai”)

  • white_model (str) – Model for white (uses default if None)

  • black_provider (str) – LLM provider for black

  • black_model (str) – Model for black (uses default if None)

  • max_moves (int) – Maximum moves before draw

  • enable_analysis (bool) – Whether to enable position analysis