Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler handles the assembly of prompts
func NewCompiler ¶
NewCompiler creates a new prompt compiler
func NewCompilerFromFS ¶
NewCompilerFromFS creates a compiler from a given FS (useful for testing or external loading)
func (*Compiler) CompileModeUserPrompt ¶ added in v0.11.0
CompileModeUserPrompt compiles mode-specific user prompt template at modes/<mode>/user.md.
func (*Compiler) CompileSystemPrompt ¶
type Config ¶
type Config struct {
Mode string
Language string
WorkingDir string
ContextFiles []string
ContextEntries []ContextEntry
// GitHub actor identity fields (optional)
ActorLogin string // GitHub username or bot name
ActorType string // "User" or "App"
ActorSource string // "token" or "app"
ActorAppSlug string // App slug if type is "App"
}
Config represents the prompt configuration
type ContextEntry ¶
ContextEntry represents a context file with optional description
Click to show internal directories.
Click to hide internal directories.