yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
anonymous_namespace{service_factory.cc} Namespace Reference

Functions

std::string NormalizeProviderAlias (std::string provider)
 
bool IsLikelyOracleRomPath (absl::string_view rom_path)
 
std::string ReadAssetFile (absl::string_view relative_path)
 
bool HasOllamaHint (const yaze::cli::AIServiceConfig &config)
 
bool HasOpenAiEndpointHint (const yaze::cli::AIServiceConfig &config)
 
void ApplyEnvironmentFallbacks (yaze::cli::AIServiceConfig &config)
 
yaze::cli::AIServiceConfig NormalizeConfig (yaze::cli::AIServiceConfig config)
 
std::string ResolveOracleSystemInstruction (const yaze::cli::AIServiceConfig &config)
 
std::unique_ptr< yaze::cli::AIServiceFinalizeService (std::unique_ptr< yaze::cli::AIService > service, const yaze::cli::AIServiceConfig &config)
 

Variables

constexpr char kDefaultOpenAiBaseUrl [] = "https://api.openai.com"
 
constexpr char kDefaultOllamaHost [] = "http://localhost:11434"
 
constexpr char kOraclePromptAsset [] = "agent/oracle_of_secrets_guide.txt"
 

Function Documentation

◆ NormalizeProviderAlias()

◆ IsLikelyOracleRomPath()

bool anonymous_namespace{service_factory.cc}::IsLikelyOracleRomPath ( absl::string_view rom_path)

Definition at line 57 of file service_factory.cc.

◆ ReadAssetFile()

std::string anonymous_namespace{service_factory.cc}::ReadAssetFile ( absl::string_view relative_path)

Definition at line 66 of file service_factory.cc.

References yaze::util::PlatformPaths::FindAsset().

Referenced by ResolveOracleSystemInstruction().

Here is the call graph for this function:

◆ HasOllamaHint()

bool anonymous_namespace{service_factory.cc}::HasOllamaHint ( const yaze::cli::AIServiceConfig & config)

◆ HasOpenAiEndpointHint()

bool anonymous_namespace{service_factory.cc}::HasOpenAiEndpointHint ( const yaze::cli::AIServiceConfig & config)

◆ ApplyEnvironmentFallbacks()

◆ NormalizeConfig()

yaze::cli::AIServiceConfig anonymous_namespace{service_factory.cc}::NormalizeConfig ( yaze::cli::AIServiceConfig config)

◆ ResolveOracleSystemInstruction()

std::string anonymous_namespace{service_factory.cc}::ResolveOracleSystemInstruction ( const yaze::cli::AIServiceConfig & config)

Definition at line 146 of file service_factory.cc.

References yaze::cli::DetectPromptProfile(), yaze::cli::kOracleOfSecrets, kOraclePromptAsset, and ReadAssetFile().

Here is the call graph for this function:

◆ FinalizeService()

std::unique_ptr< yaze::cli::AIService > anonymous_namespace{service_factory.cc}::FinalizeService ( std::unique_ptr< yaze::cli::AIService > service,
const yaze::cli::AIServiceConfig & config )

Definition at line 155 of file service_factory.cc.

References yaze::cli::AIServiceConfig::rom_context.

Variable Documentation

◆ kDefaultOpenAiBaseUrl

constexpr char anonymous_namespace{service_factory.cc}::kDefaultOpenAiBaseUrl[] = "https://api.openai.com"
constexpr

Definition at line 30 of file service_factory.cc.

Referenced by ApplyEnvironmentFallbacks(), and HasOpenAiEndpointHint().

◆ kDefaultOllamaHost

constexpr char anonymous_namespace{service_factory.cc}::kDefaultOllamaHost[] = "http://localhost:11434"
constexpr

Definition at line 31 of file service_factory.cc.

Referenced by ApplyEnvironmentFallbacks(), and HasOllamaHint().

◆ kOraclePromptAsset

constexpr char anonymous_namespace{service_factory.cc}::kOraclePromptAsset[] = "agent/oracle_of_secrets_guide.txt"
constexpr

Definition at line 32 of file service_factory.cc.

Referenced by ResolveOracleSystemInstruction().