AI_Diplomacy/.vscode/launch.json
Tyler Marques c09d5bfe7e
WIP: Exposing errors that cause bot to fail
Working to remove all the lower level try except statements that catch
barely, and don't offer any information to top level about what went
wrong. Better to throw exceptions and let the consumers catch if needed.
2025-07-29 16:00:40 -07:00

151 lines
3.5 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Chrome Debug 5173",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/ai_animation/",
"sourceMapPathOverrides": {
"http://localhost:5173/*": "${webRoot}/*"
},
"runtimeArgs": [
"--remote-debugging-port=9223"
],
"sourceMaps": true
},
{
"name": "Multi Bot Launcher",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/bot_client/multi_bot_launcher.py",
"args": [
"--hostname",
"localhost",
"--port",
"8432",
"--username-base",
"bot",
"--password",
"password",
"--log-level",
"INFO"
],
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Multi Bot Launcher (Existing Game)",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/bot_client/multi_bot_launcher.py",
"args": [
"--hostname",
"localhost",
"--port",
"8432",
"--username-base",
"bot",
"--password",
"password",
"--game-id",
"${input:gameId}",
"--log-level",
"INFO"
],
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Single Bot Player",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/bot_client/single_bot_player.py",
"args": [
"--hostname",
"localhost",
"--port",
"8432",
"--username",
"bot_${input:powerName}",
"--password",
"password",
"--power",
"${input:powerName}",
"--model",
"${input:modelName}",
"--log-level",
"INFO"
],
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${workspaceFolder}"
},
{
"name": "Single Bot Player (Existing Game)",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/bot_client/single_bot_player.py",
"args": [
"--hostname",
"localhost",
"--port",
"8432",
"--username",
"bot_${input:powerName}",
"--password",
"password",
"--power",
"${input:powerName}",
"--model",
"${input:modelName}",
"--game-id",
"${input:gameId}",
"--log-level",
"DEBUG"
],
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${workspaceFolder}"
}
],
"inputs": [
{
"id": "gameId",
"type": "promptString",
"description": "Enter the game ID to join"
},
{
"id": "powerName",
"type": "pickString",
"description": "Select the power to control",
"options": [
"AUSTRIA",
"ENGLAND",
"FRANCE",
"GERMANY",
"ITALY",
"RUSSIA",
"TURKEY"
],
"default": "FRANCE"
},
{
"id": "modelName",
"type": "pickString",
"description": "Select the AI model to use",
"options": [
"gemini-2.5-flash-lite-preview-06-17",
"gpt-3.5-turbo",
"gpt-4",
"claude-3-haiku",
"claude-3-sonnet",
"gemini-pro"
],
"default": "gpt-3.5-turbo"
}
]
}