Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureGitDelta ¶
func RenderPrompt ¶
func RenderPrompt(tmpl string, ctx TemplateContext) (string, error)
Types ¶
type EventWriter ¶
type LoopConfig ¶
type LoopConfig struct {
MaxIterations int `json:"max_iterations"`
Pre []Phase `json:"pre"`
Loop []Phase `json:"loop"`
}
func LoadLoopConfig ¶
func LoadLoopConfig(path string) (*LoopConfig, error)
func (*LoopConfig) InsertInitialPrompt ¶
func (c *LoopConfig) InsertInitialPrompt(prompt string)
func (*LoopConfig) Validate ¶
func (c *LoopConfig) Validate() error
type PhaseAttemptResult ¶
type RunOptions ¶
type RunOptions struct {
WorkDir string
RunID string
EventSink EventWriter
Config *LoopConfig
MaxRetries int
PhaseAttempt func(ctx context.Context, phase Phase, attemptNum int, iteration int, prevSessionID string) (PhaseAttemptResult, error)
}
Click to show internal directories.
Click to hide internal directories.