games.hold_em.engines¶

Texas Hold’em engines and prompts module - FIXED VERSION.

This module provides LLM configurations and prompts for Hold’em agents. Fixed variable naming consistency issues.

Functions¶

build_holdem_game_engines()

Build engines for the main game agent.

build_player_engines(player_name, player_style[, heads_up])

Build LLM engines for a player agent.

create_player_decision_prompt([player_style])

Create a decision-making prompt based on player style.

create_style_specific_engines(player_style)

Create engines optimized for specific playing styles.

prepare_decision_context(game_state, player, analyses)

Prepare context dictionary for final decision making.

prepare_hand_context(game_state, player)

Prepare context dictionary for hand analysis.

prepare_opponent_context(game_state, opponents)

Prepare context dictionary for opponent analysis.

prepare_situation_context(game_state, player)

Prepare context dictionary for situation analysis with correct variable names.

Module Contents¶

games.hold_em.engines.build_holdem_game_engines()¶

Build engines for the main game agent.

Return type:

dict[str, haive.core.engine.aug_llm.AugLLMConfig]

games.hold_em.engines.build_player_engines(player_name, player_style, heads_up=False)¶

Build LLM engines for a player agent.

Parameters:
  • player_name (str)

  • player_style (str)

  • heads_up (bool)

Return type:

dict[str, haive.core.engine.aug_llm.AugLLMConfig]

games.hold_em.engines.create_player_decision_prompt(player_style='balanced')¶

Create a decision-making prompt based on player style.

Parameters:

player_style (str)

Return type:

langchain_core.prompts.ChatPromptTemplate

games.hold_em.engines.create_style_specific_engines(player_style)¶

Create engines optimized for specific playing styles.

Parameters:

player_style (str)

Return type:

dict[str, haive.core.engine.aug_llm.AugLLMConfig]

games.hold_em.engines.prepare_decision_context(game_state, player, analyses)¶

Prepare context dictionary for final decision making.

Return type:

dict[str, str]

games.hold_em.engines.prepare_hand_context(game_state, player)¶

Prepare context dictionary for hand analysis.

Return type:

dict[str, str]

games.hold_em.engines.prepare_opponent_context(game_state, opponents)¶

Prepare context dictionary for opponent analysis.

Return type:

dict[str, str]

games.hold_em.engines.prepare_situation_context(game_state, player)¶

Prepare context dictionary for situation analysis with correct variable names.

Return type:

dict[str, str]