haive.games.chess.example_configurable_players¶

Example of using configurable chess players.

This example demonstrates how to create chess games with different LLM configurations for players without hardcoding them.

Functions¶

example_1_simple_models()

Example 1: Simple model strings.

example_2_canonical_strings()

Example 2: Canonical model strings with providers.

example_3_example_configs()

Example 3: Using predefined example configurations.

example_4_custom_player_configs()

Example 4: Custom player agent configurations.

example_5_budget_friendly()

Example 5: Budget-friendly configuration.

example_6_same_model()

Example 6: Using the same model for all roles.

main()

Run all examples.

run_short_game(config[, max_moves])

Run a short chess game to test the configuration.

Module Contents¶

haive.games.chess.example_configurable_players.example_1_simple_models()¶

Example 1: Simple model strings.

haive.games.chess.example_configurable_players.example_2_canonical_strings()¶

Example 2: Canonical model strings with providers.

haive.games.chess.example_configurable_players.example_3_example_configs()¶

Example 3: Using predefined example configurations.

haive.games.chess.example_configurable_players.example_4_custom_player_configs()¶

Example 4: Custom player agent configurations.

haive.games.chess.example_configurable_players.example_5_budget_friendly()¶

Example 5: Budget-friendly configuration.

haive.games.chess.example_configurable_players.example_6_same_model()¶

Example 6: Using the same model for all roles.

haive.games.chess.example_configurable_players.main()¶

Run all examples.

async haive.games.chess.example_configurable_players.run_short_game(config, max_moves=10)¶

Run a short chess game to test the configuration.

Parameters: