workflow

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package workflow implements agent collaboration workflows

Package workflow implements agent collaboration workflows

Index

Constants

View Source
const (
	LabelProposal      = "proposal"
	LabelProposalReady = "proposal-ready"
)

Label constants for proposal workflow

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisCycle

type AnalysisCycle struct {
	// contains filtered or unexported fields
}

AnalysisCycle represents Amara's weekly analysis workflow

func NewAnalysisCycle

func NewAnalysisCycle(agents *agent.Agents, logMgr *logger.Manager, workDir string) *AnalysisCycle

NewAnalysisCycle creates a new analysis cycle workflow

func (*AnalysisCycle) Run

Run executes Amara's analysis

type AnalysisResult

type AnalysisResult struct {
	Report          string
	Recommendations []string
	CLAUDEMDUpdates map[string]string // agent -> update content
}

AnalysisResult contains the outcome of the analysis

type ProposalResult added in v0.8.0

type ProposalResult struct {
	IssueNumber int
	Analysis    string
	Proposal    string
	Success     bool
	Error       error
}

ProposalResult contains the outcome of the proposal workflow

type ProposalWorkflow added in v0.8.0

type ProposalWorkflow struct {
	// contains filtered or unexported fields
}

ProposalWorkflow represents the proposal analysis and generation workflow

func NewProposalWorkflow added in v0.8.0

func NewProposalWorkflow(agents *agent.Agents, logMgr *logger.Manager, ghClient *github.Client) *ProposalWorkflow

NewProposalWorkflow creates a new proposal workflow

func (*ProposalWorkflow) HandleLabeledEvent added in v0.8.0

func (pw *ProposalWorkflow) HandleLabeledEvent(ctx context.Context, event *github.IssuesEvent) error

HandleLabeledEvent processes an issue labeled event and triggers workflow if applicable

func (*ProposalWorkflow) Run added in v0.8.0

func (pw *ProposalWorkflow) Run(ctx context.Context, issueNumber int) (*ProposalResult, error)

Run executes the proposal workflow for a given issue

type ReviewCycle

type ReviewCycle struct {
	MaxIterations int
	// contains filtered or unexported fields
}

ReviewCycle represents a Yuki -> Priya review cycle

func NewReviewCycle

func NewReviewCycle(agents *agent.Agents, logMgr *logger.Manager) *ReviewCycle

NewReviewCycle creates a new review cycle workflow

func (*ReviewCycle) Run

func (rc *ReviewCycle) Run(ctx context.Context, task string) (*ReviewResult, error)

Run executes the review cycle for a given task

type ReviewResult

type ReviewResult struct {
	Approved    bool
	Iterations  int
	Escalated   bool
	FinalOutput string
	History     []ReviewRound
}

ReviewResult contains the outcome of a review cycle

type ReviewRound

type ReviewRound struct {
	Round          int
	Implementation string
	Review         string
	Approved       bool
	Tags           []string
}

ReviewRound represents one round of implementation + review

Jump to

Keyboard shortcuts

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