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 model strings. |
|
Example 2: Canonical model strings with providers. |
|
Example 3: Using predefined example configurations. |
|
Example 4: Custom player agent configurations. |
|
Example 5: Budget-friendly configuration. |
|
Example 6: Using the same model for all roles. |
|
|
Run all examples. |
|
Run a short chess game to test the configuration. |
Module Contents¶
- games.chess.example_configurable_players.example_1_simple_models()¶
Example 1: Simple model strings.
- games.chess.example_configurable_players.example_2_canonical_strings()¶
Example 2: Canonical model strings with providers.
- games.chess.example_configurable_players.example_3_example_configs()¶
Example 3: Using predefined example configurations.
- games.chess.example_configurable_players.example_4_custom_player_configs()¶
Example 4: Custom player agent configurations.
- games.chess.example_configurable_players.example_5_budget_friendly()¶
Example 5: Budget-friendly configuration.
- games.chess.example_configurable_players.example_6_same_model()¶
Example 6: Using the same model for all roles.
- games.chess.example_configurable_players.main()¶
Run all examples.
- async games.chess.example_configurable_players.run_short_game(config, max_moves=10)¶
Run a short chess game to test the configuration.
- Parameters:
config (haive.games.chess.configurable_config.ConfigurableChessConfig)
max_moves (int)