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

Functions

std::string NormalizeOpenAIApiBase (std::string base)
 
bool IsLikelyOracleRomPath (absl::string_view rom_path)
 
std::string NormalizeBrowserProviderAlias (std::string provider)
 
bool IsOpenAiCompatibleProvider (absl::string_view provider)
 
bool IsBrowserSupportedProvider (absl::string_view provider)
 
std::string ReadAssetFile (absl::string_view relative_path)
 
std::string ResolveOracleSystemInstruction (const yaze::cli::AIServiceConfig &config)
 
yaze::cli::AIServiceConfig NormalizeConfig (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 kOraclePromptAsset [] = "agent/oracle_of_secrets_guide.txt"
 

Function Documentation

◆ NormalizeOpenAIApiBase()

std::string anonymous_namespace{service_factory_browser.cc}::NormalizeOpenAIApiBase ( std::string base)

Definition at line 23 of file service_factory_browser.cc.

References yaze::cli::NormalizeOpenAiBaseUrl().

Here is the call graph for this function:

◆ IsLikelyOracleRomPath()

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

Definition at line 34 of file service_factory_browser.cc.

◆ NormalizeBrowserProviderAlias()

◆ IsOpenAiCompatibleProvider()

bool anonymous_namespace{service_factory_browser.cc}::IsOpenAiCompatibleProvider ( absl::string_view provider)

◆ IsBrowserSupportedProvider()

bool anonymous_namespace{service_factory_browser.cc}::IsBrowserSupportedProvider ( absl::string_view provider)

Definition at line 68 of file service_factory_browser.cc.

References IsOpenAiCompatibleProvider(), yaze::cli::kProviderGemini, and yaze::cli::kProviderMock.

Here is the call graph for this function:

◆ ReadAssetFile()

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

Definition at line 74 of file service_factory_browser.cc.

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

Referenced by ResolveOracleSystemInstruction().

Here is the call graph for this function:

◆ ResolveOracleSystemInstruction()

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

Definition at line 88 of file service_factory_browser.cc.

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

Here is the call graph for this function:

◆ NormalizeConfig()

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

◆ FinalizeService()

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

Variable Documentation

◆ kDefaultOpenAiBaseUrl

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

Definition at line 20 of file service_factory_browser.cc.

◆ kOraclePromptAsset

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

Definition at line 21 of file service_factory_browser.cc.

Referenced by ResolveOracleSystemInstruction().