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 engines for the main game agent. |
|
|
Build LLM engines for a player agent. |
|
Create a decision-making prompt based on player style. |
|
Create engines optimized for specific playing styles. |
|
Prepare context dictionary for final decision making. |
|
Prepare context dictionary for hand analysis. |
|
Prepare context dictionary for opponent analysis. |
|
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:
- games.hold_em.engines.build_player_engines(player_name, player_style, heads_up=False)¶
Build LLM engines for a player agent.
- 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:
- games.hold_em.engines.prepare_decision_context(game_state, player, analyses)¶
Prepare context dictionary for final decision making.
- games.hold_em.engines.prepare_hand_context(game_state, player)¶
Prepare context dictionary for hand analysis.
- games.hold_em.engines.prepare_opponent_context(game_state, opponents)¶
Prepare context dictionary for opponent analysis.