| """Constants for the LLM agent prompt builder and action parser.""" |
|
|
| |
| MAX_ACTION_TOKENS = 64 |
|
|
| |
| TRAIN_TEMPERATURE_NUMERATOR = 7 |
| TRAIN_TEMPERATURE_DENOMINATOR = 10 |
|
|
| |
| EVAL_TEMPERATURE_NUMERATOR = 0 |
| EVAL_TEMPERATURE_DENOMINATOR = 1 |
|
|
| |
| TOP_P_NUMERATOR = 95 |
| TOP_P_DENOMINATOR = 100 |
|
|
| |
| MAX_PROMPT_HISTORY_ROUNDS = 10 |
|
|
| |
| PROMPT_SECTION_GAME = "GAME" |
| PROMPT_SECTION_HISTORY = "HISTORY" |
| PROMPT_SECTION_SCORES = "SCORES" |
| PROMPT_SECTION_ACTIONS = "AVAILABLE ACTIONS" |
| PROMPT_SECTION_INSTRUCTION = "INSTRUCTION" |
|
|
| |
| SYSTEM_PROMPT = ( |
| "You are playing a game-theory game. Analyse the situation and choose " |
| "the best action. Respond with ONLY the action name, nothing else." |
| ) |
|
|
| |
| PARSE_FAILURE_SENTINEL = "__PARSE_FAILURE__" |
|
|
| |
| NPLAYER_PROMPT_SECTION_PLAYERS = "PLAYERS" |
| NPLAYER_PROMPT_SECTION_ALL_SCORES = "ALL SCORES" |
|
|
| |
| COALITION_PROMPT_SECTION_PHASE = "PHASE" |
| COALITION_PROMPT_SECTION_PROPOSALS = "PENDING PROPOSALS" |
| COALITION_PROMPT_SECTION_COALITIONS = "ACTIVE COALITIONS" |
|
|
| |
| GOVERNANCE_PROMPT_SECTION_RULES = "GOVERNANCE RULES" |
| GOVERNANCE_PROMPT_SECTION_PENDING = "PENDING GOVERNANCE" |
|
|
| |
| NPLAYER_SYSTEM_PROMPT = ( |
| "You are playing an N-player game-theory game. Analyse the situation " |
| "and choose the best action. Respond with ONLY the action name, " |
| "nothing else." |
| ) |
|
|
| |
| COALITION_SYSTEM_PROMPT = ( |
| "You are playing a coalition formation game. You can form coalitions " |
| "with other players and propose governance changes. Respond with " |
| "valid JSON when negotiating, or ONLY the action name when acting." |
| ) |
|
|
| |
| COALITION_MAX_ACTION_TOKENS = 256 |
|
|