Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeConfig ¶
type CodeConfig struct { CodePrompt string // The prompt to use when generating code OpenAIAPIKey string // The OpenAI API key to use when generating code GenerationFolder string // The folder to generate code in }
func LoadCodeConfig ¶
func LoadCodeConfig(generationFolder string) (*CodeConfig, error)
func NewCodeConfig ¶
func NewCodeConfig(generationFolder string, openAIAPIKey string) *CodeConfig
func (*CodeConfig) ToAIConfig ¶
func (c *CodeConfig) ToAIConfig() *ai.AIConfig
type CodeGenerator ¶
type CodeGenerator struct { Conversation *chat.Conversation ProjectState string // contains filtered or unexported fields }
func NewCodeGenerator ¶
func NewCodeGenerator(generationFolder string, config *CodeConfig) *CodeGenerator
Creates a new CodeGenerator The code generator will use the given input data to generate the code for the project.
func (*CodeGenerator) Generate ¶
func (c *CodeGenerator) Generate() error
Generates the code for the project based on the given directory state.
Click to show internal directories.
Click to hide internal directories.