prompt

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PromptAnalyzeRepo string

Functions

This section is empty.

Types

type FilePrompt

type FilePrompt struct {
	Type PromptType `json:"type"`
	Path string     `json:"path"`
	Data any        `json:"data"`
	// contains filtered or unexported fields
}

func (FilePrompt) String

func (p FilePrompt) String() string

type Prompt

type Prompt interface {
	String() string
}

func NewFilePrompt

func NewFilePrompt(c *FilePrompt) Prompt

func NewTextPrompt

func NewTextPrompt(content string) Prompt

type PromptType

type PromptType string
const (
	PromptTypePlainText  PromptType = "text"
	PromptTypeDummy      PromptType = "dummy"
	PromptTypeGoTemplate PromptType = "go-template"
)

type TextPrompt

type TextPrompt string

func (TextPrompt) String

func (p TextPrompt) String() string

Jump to

Keyboard shortcuts

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