haive.games.chess.api_client_example¶
Example client for the Chess API.
This shows how to interact with the chess API to create and play games.
Classes¶
Simple client for the Chess API. |
Functions¶
|
Example usage of the Chess API client. |
Module Contents¶
- class haive.games.chess.api_client_example.ChessAPIClient(base_url='http://localhost:8000')¶
Simple client for the Chess API.
Init .
- Parameters:
base_url (str) – [TODO: Add description]
- create_game(white_provider='anthropic', white_model=None, black_provider='anthropic', black_model=None, enable_analysis=True, max_moves=200)¶
Create a new game.
- list_games()¶
List all active games.
- list_providers()¶
Get available LLM providers.
- haive.games.chess.api_client_example.main()¶
Example usage of the Chess API client.