Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NestedResult ¶
type PhaseAttemptResult ¶
type RunOptions ¶
type RunOptions struct {
WorkDir string
RunID string
EventSink phaseconfig.EventWriter
Config *TeamConfig
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, prevSessionID string) (PhaseAttemptResult, error)
NestedRun func(ctx context.Context, configPath string, runType string) (NestedResult, error)
ConfigDir string
Roster *rosterconfig.Config
}
type TeamConfig ¶
type TeamConfig struct {
RosterFile string `json:"roster_file,omitempty"`
Pre []phaseconfig.Phase `json:"pre"`
Team []phaseconfig.Phase `json:"team"`
Post []phaseconfig.Phase `json:"post"`
}
func LoadTeamConfig ¶
func LoadTeamConfig(path string) (*TeamConfig, error)
func LoadTeamConfigWithRoster ¶ added in v0.25.0
func LoadTeamConfigWithRoster(path string, inherited *rosterconfig.Config, fallbackPath string) (*TeamConfig, *rosterconfig.Config, error)
LoadTeamConfigWithRoster loads a team config and resolves its effective roster. A declared roster file is relative to the team config, then the inherited loaded roster is used, and finally fallbackPath is used.
func (*TeamConfig) InsertInitialPrompt ¶
func (c *TeamConfig) InsertInitialPrompt(prompt string)
func (*TeamConfig) Validate ¶
func (c *TeamConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.