Add skip_condition logic to feedback prompts to prevent AI from generating false ship destruction messages when no ships were actually destroyed. Changes: - Add skip_condition parameter support in provide_feedback_prompts() - Support all_null, all_false, and all_true condition types - Apply skip_condition to battleship Ship Status and Game Over prompts - Add comprehensive unit tests covering all skip condition scenarios - Test real battleship scenario that was causing hallucinations This prevents the AI from creating false positive ship destruction messages when metadata indicates no ships were actually sunk (all null values). |
||
|---|---|---|
| .. | ||
| test_activity_yaml_validator.py | ||
| test_app.py | ||
| test_app_feedback.py | ||
| test_guarded_ai.py | ||
| test_yaml_loading.py | ||