Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoopConfig ¶
type LoopConfig struct {
MaxIterations int `json:"max_iterations"`
Pre []phaseconfig.Phase `json:"pre"`
Loop []phaseconfig.Phase `json:"loop"`
Post []phaseconfig.Phase `json:"post"`
}
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 NestedResult ¶ added in v0.14.0
type PhaseAttemptResult ¶
type RunOptions ¶
type RunOptions struct {
WorkDir string
RunID string
EventSink phaseconfig.EventWriter
Config *LoopConfig
MaxRetries int
Broker *broker.Broker
SeedMessage *broker.AgentMessage // pushed to the attempt's brokerRunID after creation
PhaseAttempt func(ctx context.Context, phase phaseconfig.Phase, attemptNum int, iteration int, prevSessionID string) (PhaseAttemptResult, error)
NestedRun func(ctx context.Context, configPath string, runType string) (NestedResult, error)
ConfigDir string
}
Click to show internal directories.
Click to hide internal directories.