games.tic_tac_toe.engines¶

Prompt generation and engine configuration for Tic Tac Toe agents.

This module defines prompt templates and model configurations for both move generation and board analysis. These are used by agents to communicate with LLMs in a structured and strategic way.

Functions¶

generate_analysis_prompt(player_symbol)

Generate a prompt template for analyzing a board position in Tic Tac Toe.

generate_move_prompt(player_symbol)

Generate a prompt template for making a move in Tic Tac Toe.

Module Contents¶

games.tic_tac_toe.engines.generate_analysis_prompt(player_symbol)¶

Generate a prompt template for analyzing a board position in Tic Tac Toe.

Parameters:

player_symbol (str) – The symbol (‘X’ or ‘O’) for the analyzing player.

Returns:

A structured prompt for board analysis.

Return type:

ChatPromptTemplate

games.tic_tac_toe.engines.generate_move_prompt(player_symbol)¶

Generate a prompt template for making a move in Tic Tac Toe.

Parameters:

player_symbol (str) – The symbol (‘X’ or ‘O’) for which to generate the prompt.

Returns:

A structured prompt for move generation.

Return type:

ChatPromptTemplate