yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
service_factory.h
Go to the documentation of this file.
1
#ifndef YAZE_CLI_SERVICE_AI_SERVICE_FACTORY_H_
2
#define YAZE_CLI_SERVICE_AI_SERVICE_FACTORY_H_
3
4
#include <memory>
5
#include <string>
6
7
#include "
cli/service/ai/ai_service.h
"
8
9
namespace
yaze
{
10
namespace
cli {
11
12
struct
AIServiceConfig
{
13
std::string
provider
=
"auto"
;
// "auto" (try gemini→ollama→mock), "gemini", "ollama", or "mock"
14
std::string
model
;
// Provider-specific model name
15
std::string
gemini_api_key
;
// For Gemini
16
std::string
ollama_host
=
"http://localhost:11434"
;
// For Ollama
17
bool
verbose
=
false
;
// Enable debug logging
18
};
19
20
// Create AI service using command-line flags
21
std::unique_ptr<AIService>
CreateAIService
();
22
23
// Create AI service with explicit configuration
24
std::unique_ptr<AIService>
CreateAIService
(
const
AIServiceConfig
& config);
25
26
}
// namespace cli
27
}
// namespace yaze
28
29
#endif
// YAZE_CLI_SERVICE_AI_SERVICE_FACTORY_H_
ai_service.h
yaze::cli::CreateAIService
std::unique_ptr< AIService > CreateAIService()
Definition
service_factory.cc:26
yaze
Main namespace for the application.
Definition
asar_wrapper.cc:14
yaze::cli::AIServiceConfig
Definition
service_factory.h:12
yaze::cli::AIServiceConfig::provider
std::string provider
Definition
service_factory.h:13
yaze::cli::AIServiceConfig::model
std::string model
Definition
service_factory.h:14
yaze::cli::AIServiceConfig::gemini_api_key
std::string gemini_api_key
Definition
service_factory.h:15
yaze::cli::AIServiceConfig::ollama_host
std::string ollama_host
Definition
service_factory.h:16
yaze::cli::AIServiceConfig::verbose
bool verbose
Definition
service_factory.h:17
src
cli
service
ai
service_factory.h
Generated by
1.9.8