Guitar
Public Member Functions | Public Attributes | List of all members
_PromptJsonGenerator Struct Reference

Generate a JSON string for the given AI model. More...

Inheritance diagram for _PromptJsonGenerator:
Inheritance graph
[legend]
Collaboration diagram for _PromptJsonGenerator:
Collaboration graph
[legend]

Public Member Functions

 _PromptJsonGenerator (std::string const &modelname, std::string const &prompt)
 
std::string case_Unknown ()
 
std::string case_OpenAI ()
 
std::string case_Anthropic ()
 
std::string case_Google ()
 
std::string case_DeepSeek ()
 
std::string case_Ollama ()
 
std::string case_OpenRouter ()
 
std::string case_LMStudio ()
 
- Public Member Functions inherited from GenerativeAI::AbstractVisitor< std::string >
virtual ~AbstractVisitor ()=default
 
std::string visit (AI provider)
 

Public Attributes

std::string modelname
 
std::string prompt
 

Detailed Description

Generate a JSON string for the given AI model.

Parameters
modelThe AI model.
diffThe diff to generate the commit message for.
max_message_countThe maximum number of messages to generate.
Returns
The JSON string.

Constructor & Destructor Documentation

◆ _PromptJsonGenerator()

_PromptJsonGenerator::_PromptJsonGenerator ( std::string const &  modelname,
std::string const &  prompt 
)
inline

Member Function Documentation

◆ case_Anthropic()

std::string _PromptJsonGenerator::case_Anthropic ( )
inlinevirtual

Implements GenerativeAI::AbstractVisitor< std::string >.

Here is the call graph for this function:

◆ case_DeepSeek()

std::string _PromptJsonGenerator::case_DeepSeek ( )
inlinevirtual

Implements GenerativeAI::AbstractVisitor< std::string >.

Here is the call graph for this function:

◆ case_Google()

std::string _PromptJsonGenerator::case_Google ( )
inlinevirtual

Implements GenerativeAI::AbstractVisitor< std::string >.

Here is the call graph for this function:

◆ case_LMStudio()

std::string _PromptJsonGenerator::case_LMStudio ( )
inlinevirtual

Implements GenerativeAI::AbstractVisitor< std::string >.

Here is the call graph for this function:

◆ case_Ollama()

std::string _PromptJsonGenerator::case_Ollama ( )
inlinevirtual

Implements GenerativeAI::AbstractVisitor< std::string >.

Here is the call graph for this function:

◆ case_OpenAI()

std::string _PromptJsonGenerator::case_OpenAI ( )
inlinevirtual

Implements GenerativeAI::AbstractVisitor< std::string >.

Here is the call graph for this function:

◆ case_OpenRouter()

std::string _PromptJsonGenerator::case_OpenRouter ( )
inlinevirtual

Implements GenerativeAI::AbstractVisitor< std::string >.

Here is the call graph for this function:

◆ case_Unknown()

std::string _PromptJsonGenerator::case_Unknown ( )
inlinevirtual

Member Data Documentation

◆ modelname

std::string _PromptJsonGenerator::modelname

◆ prompt

std::string _PromptJsonGenerator::prompt

The documentation for this struct was generated from the following file: