haive.games.go.engines¶

Go game engines using AugLLMConfig.

This module provides LLM engine configurations for Go game agents, including:
  • Player engines for black and white players

  • Analyzer engines for position evaluation and strategy

  • Prompt templates with Go-specific instructions

  • Structured output models for moves and analysis

The engines use LLM configurations optimized for strategic gameplay, with prompt templates designed to generate high-quality moves and analysis.

Functions¶

build_go_aug_llms()

Build augmented LLM configurations for Go game.

generate_analysis_prompt()

Generate analysis prompt for Go position evaluation.

generate_black_prompt()

Generate prompt for black player.

generate_white_prompt()

Generate prompt for white player.

get_analyzer_engine()

Get the game analyzer engine.

get_black_engine()

Get the black player engine.

get_white_engine()

Get the white player engine.

Module Contents¶

haive.games.go.engines.build_go_aug_llms()[source]¶

Build augmented LLM configurations for Go game.

Returns:

Dictionary of engine configurations

Return type:

dict[str, AugLLMConfig]

haive.games.go.engines.generate_analysis_prompt()[source]¶

Generate analysis prompt for Go position evaluation.

Returns:

A prompt template for position analysis

Return type:

ChatPromptTemplate

haive.games.go.engines.generate_black_prompt()[source]¶

Generate prompt for black player.

Returns:

A prompt template for black player gameplay

Return type:

ChatPromptTemplate

haive.games.go.engines.generate_white_prompt()[source]¶

Generate prompt for white player.

Returns:

A prompt template for white player gameplay

Return type:

ChatPromptTemplate

haive.games.go.engines.get_analyzer_engine()[source]¶

Get the game analyzer engine.

Return type:

haive.core.engine.aug_llm.AugLLMConfig

haive.games.go.engines.get_black_engine()[source]¶

Get the black player engine.

Return type:

haive.core.engine.aug_llm.AugLLMConfig

haive.games.go.engines.get_white_engine()[source]¶

Get the white player engine.

Return type:

haive.core.engine.aug_llm.AugLLMConfig