Commit graph

8 commits

Author SHA1 Message Date
Earl Potters
ad21f178a1 Update choice history display in DynastAI prompt formatting
- Modified the prompt generation to include all choices made by the player instead of limiting to the last three.
- Enhanced the formatting to ensure clarity by stripping existing numbering from character prompts.
- Improved readability of the decision and effects displayed for each choice in the history.
2025-05-18 22:35:12 +00:00
Earl Potters
790e3848f5 Enhance DynastAI evaluation and prompt formatting with detailed debug logging
- Added debug print statements throughout the evaluation process to track the processing of test cards, input data, and generated prompts.
- Improved the `format_prompt` method to include detailed logging of kingdom state and choice history.
- Enhanced logging for training data selection to aid in debugging and understanding scenario generation.
2025-05-18 22:23:51 +00:00
Earl Potters
6f1a4f9a0b Merge branch 'main' into dynastai-reward-env 2025-05-18 21:59:52 +00:00
Earl Potters
7101aad190 Add DynastAI integration documentation and setup scripts
- Introduced `ATROPOS_INTEGRATION.md` for detailed instructions on using DynastAI with Atropos.
- Added `INSTALL_AND_RUN.md` to guide users through installation and running the game.
- Created `run_dynastai.py` for a simplified testing experience without full Atropos setup.
- Implemented `setup.py` to manage dependencies and ensure compatibility.
- Updated `requirements.txt` to include additional dependencies and version constraints.
- Enhanced `README.md` with new sections on installation, running the game, and integration with Atropos.
- Added installation verification script `verify_install.py` to check for required packages.
- Updated game logic to support local card generation and improved API integration.
- Enhanced web interface with new features for user interaction and game metrics display.
2025-05-18 21:59:12 +00:00
David van Vliet
38049522c8 formatting changes so that the game works 2025-05-18 14:52:32 -07:00
Earl Potters
b9a1940d12 Enhance evaluation process in DynastAI with detailed logging
- Added print statements to track the evaluation process, including the number of test scenarios and accuracy after evaluation.
- Improved JSON validation with additional logging for missing fields and invalid data types.
- Introduced counters for valid and invalid scenario generations during scoring.
- Enhanced feedback on scenario generation and processing errors for better debugging.
2025-05-18 21:23:33 +00:00
Earl Potters
fba2a42bb7 Enhance DynastAI scenario generation with structured point system and history tracking
- Updated point system guidelines to restrict values for Piety, Stability, Power, and Wealth to a range of -20 to 20.
- Introduced a category field for scenario classification.
- Added examples for scenario generation to improve clarity.
- Implemented choice history tracking to maintain a record of player decisions and their effects on the kingdom's state.
- Enhanced prompt formatting to include current kingdom state and recent choices for better context in scenario generation.
2025-05-18 21:13:13 +00:00
Earl Potters
e0dabe1225 Add DynastAI game environment with FastAPI backend and web frontend
- Introduced `dynastai_local_server.py` for local development and testing.
- Implemented `dynastai_server.py` as the main server entry point.
- Created FastAPI endpoints for game state management, card generation, and player choices.
- Developed a web interface with HTML, CSS, and JavaScript for user interaction.
- Added game logic for managing metrics and decision effects.
- Included configuration management and utility functions.
- Established a testing framework for API and environment functionality.
- Updated README.md with project overview and setup instructions.
2025-05-18 19:37:31 +00:00