- Added a new feature to the `z3ed` AI agent allowing testing in mock ROM mode, which creates a minimal valid ROM structure with embedded labels but no actual game data. - Updated the `agent_test_suite.sh` script to default to mock ROM mode for easier testing. - Introduced `--mock-rom` command line flag to enable mock ROM mode in various agent commands. - Enhanced documentation to cover the usage and benefits of mock ROM mode for CI/CD and development testing. - Implemented necessary changes in the codebase to support mock ROM initialization and label management.
24 lines
1.1 KiB
C++
24 lines
1.1 KiB
C++
#include <string>
|
|
|
|
#include "absl/flags/flag.h"
|
|
|
|
ABSL_FLAG(std::string, rom, "", "Path to the ROM file");
|
|
ABSL_FLAG(bool, mock_rom, false,
|
|
"Use mock ROM mode for testing without requiring an actual ROM file. "
|
|
"Loads all Zelda3 embedded labels but no actual ROM data.");
|
|
|
|
// AI Service Configuration Flags
|
|
ABSL_FLAG(std::string, ai_provider, "auto",
|
|
"AI provider to use: 'auto' (try gemini→ollama→mock), 'gemini', 'ollama', or 'mock'");
|
|
ABSL_FLAG(std::string, ai_model, "",
|
|
"AI model to use (provider-specific, e.g., 'llama3' for Ollama, "
|
|
"'gemini-1.5-flash' for Gemini)");
|
|
ABSL_FLAG(std::string, gemini_api_key, "",
|
|
"Gemini API key (can also use GEMINI_API_KEY environment variable)");
|
|
ABSL_FLAG(std::string, ollama_host, "http://localhost:11434",
|
|
"Ollama server host URL");
|
|
ABSL_FLAG(std::string, prompt_version, "default",
|
|
"Prompt version to use: 'default' or 'v2'");
|
|
ABSL_FLAG(bool, use_function_calling, false,
|
|
"Enable native Gemini function calling (incompatible with JSON output mode)");
|