teamrunner

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NestedResult

type NestedResult struct {
	ExitCode   int
	StopReason string
	SessionID  string
	Reason     string
}

type PhaseAttemptResult

type PhaseAttemptResult struct {
	ExitCode      int
	SessionID     string
	StopReason    string
	LoopDirective string
	LoopLabel     string
	Output        string
	FinalReply    string
	BrokerRunID   string
}

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 RunResult

type RunResult struct {
	ExitCode   int
	StopReason string
	SessionID  string
	Reason     string
}

func Run

func Run(ctx context.Context, opts RunOptions) (RunResult, error)

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

Jump to

Keyboard shortcuts

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