prompts

package
v0.0.0-...-8e82d8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompts

type Prompts struct {
	CreateSystemPrompt string `prompt:"create_system_prompt.txt"`
	CodeReviewPrompt   string `prompt:"code_review_prompt.txt"`
	EditInstructPrompt string `prompt:"edit_instruct_prompt.txt"`
	ApplyEditsPrompt   string `prompt:"apply_edits_prompt.txt"`
	PlanningPrompt     string `prompt:"planning_prompt.txt"`
	SearchPrompt       string `prompt:"search_prompt.txt"`
}

Prompts holds all the prompt strings with associated filenames via struct tags

func LoadPrompts

func LoadPrompts() (*Prompts, error)

LoadPrompts reads the embedded prompt files based on struct tags and returns a Prompts struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL